Here is what I used the last time I tested it. the '--in-interface' value will be machine specific. fyi, copy paste messes with '-' and '--'
# required on BBB echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf sudo route add default gw 192.168.7.1 # Ubuntu 18.04 Desktop sudo iptables --table nat --append POSTROUTING --out-interface enp0s25 -j MASQUERADE sudo iptables --append FORWARD --in-interface enxb0d5cccd8ab8 -j ACCEPT echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward Hope it helps, On Tuesday, February 9, 2021 at 7:48:40 PM UTC-6 Matthew Wright wrote: > Hello I started to this procedure to connect my bbb to the internet > through my computer. > > > https://www.digikey.com/en/maker/blogs/how-to-connect-a-beaglebone-black-to-the-internet-using-usb#:~:text=You%20now%20need%20to%20share,connection%E2%80%9D%2C%20then%20click%20ok > . > > I ran > > sudo /sbin/route add default gw 192.168.7.1 > > on the bbb (debian) > > Now I can only connect to the device through wifi. I lost my usb > connection. I tried to remove the default > > sudo /sbin/route del default gw 192.168.7.1 > > but that didn't help. > > I would like the bbb to get the internet through the wifi and connect to > my computer through the usb connection. > > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/6b086c2c-00a2-4546-90f4-b35cd9950796n%40googlegroups.com.
