Cannot access the internet via USB connection

I am using a Jetson Orin NX 16GB on a Orin Nano devkit carrier board.
Flashed succesfully with:


tar xvf Jetson_Linux_R36.2.0_aarch64.tbz2
sudo tar xvpf Tegra_Linux_Sample-Root-Filesystem_R36.2.0_aarch64.tbz2 -C Linux_for_Tegra/rootfs/
cd Linux_for_Tegra/

sudo ./
sudo ./tools/
sudo ./tools/ -u xxx -p xxx -n xxx --accept-license
sudo ./tools/kernel_flash/ \
    --external-device nvme0n1p1 \
    -c ./tools/kernel_flash/flash_l4t_t234_nvme.xml \
    -p "-c ./bootloader/generic/cfg/flash_t234_qspi.xml" \
    --showlogs \
    --network usb0 \
    jetson-orin-nano-devkit nvme0n1p1

I can ping the jetson from my host (ping and my host from the jetson (ping via serial (picocom -b 115200 /dev/ttyUSB0).
But I cannot access the internet from the jetson via the host.
I recall that I could do this with old Jetson Nano some years ago.
Is there any way to make it work? (plugging an Ethernet cable works, but I’d like to prepare my board without having to connect it to my local network).


That would be a “standard” setup on the host PC. You need to enable forwarding. I’m assuming your host is Ubuntu 18.04. Here is just a general search for enabling that (adjust the search for your specific Linux release; note that I quoted “ubuntu 18.04” in the search):

My host is Ubuntu 22.04 and I have IPV4 port forwarding enabled.
I guess I am missing the forwarding part on the firewall (nftables).

It’s ok now, indeed it had nothing to do with Jetson itself but a Linux/network “issue”.
With the following commands it worked (it could work with iptables-nft or iptables if not using nftables):


sudo nft add table nat
sudo nft 'add chain nat POSTROUTING { type nat hook postrouting priority srcnat; policy accept; }'
sudo nft add rule nat POSTROUTING ip saddr oif $interface snat to $hostip

I’ll see later if I make it persistent.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.