I’m new to BeagleBoards and have a Fedora Linux background. Getting a PocketBeagle running Buster Debian (bone-debian-10.3-iot-armhf-2020-04-06-4gb.img) while connected to Fedora Core 34 Linux PC has been a challenge. From previous posts here I learned:
You first need “Internet Connection sharing” setup on your PC (laptop, whatever). Windows and Apple seem to have a GUI for handling it.
On FC34, you need to enable IP forwarding; “sudo sysctl net.ipv4.ip_forward=1”, then setup iptables; “sudo iptables --table nat --append POSTROUTING --out-interface <your_Inet_Iface> -j MASQUERADE” and “sudo iptables --append FORWARD --in-interface <tethered_Iface> -j ACCEPT”. Then “sudo route add default gw 192.168.7.1” on the PBBB, along with “sudo echo nameserver 8.8.8.8 >> /etc/resolv.conf”.
That works for the most part. I had to unlink /etc/resolve.conf from /run/connman/resolv.conf to get the last command to work. The connman Man Page said that it blacklists usb* connections, meaning it doesn’t handle them. Not sure what connman is but I figured its the equivalent to NetworkManager in FC34.
Now pings to deb.debian.org and repos.rcn-ee.com work. But I get an error from apt-get “Could not connect to deb.debian.org:80 (199.232.162.132). - connect (113: No route to host)”. Obviously wrong, I can ping it. So I tried a work around DNS. Incidentally, there is no “nslookup” or “dig” in this Debian image. Any alternatives?
I wrote the two repo IPs to /etc/hosts and modified /etc/nsswitch to use “files dns”. Again, I can ping them, by name or number but apt-get still complains there is no route to host. What am I missing? Is this an iptables issue on the PC, not forwarding connections to the web site?
Any hints would be greatly appreciated! Thanks in advance.
–Cliff