Hi Terry, > At first, because the problem was related to routes, I assumed that I > had introduced the problem when I set up the routing using IP Tables.
You've assembled a system of software parts and it doesn't work. Debugging it will be hard because of the possible interactions between the parts that are unknown. I'd try to strip it back to the minimal and get that working, e.g. same hardware, eth1 configured by DHCP, as now, eth0 manual configuration, customer-mobile (another Pi?) manual too. Ping from pi-3 to Internet, and then the pi-mobile to each of the interfaces along the route to the Internet. > # interfaces(5) file used by ifup(8) and ifdown(8) > > auto lo > iface lo inet loopback > > #USB NIC connecting to the Internet > auto eth1 > iface eth1 inet dhcp > > #Onboard NIC serving as internal gateway > auto eth0 > iface eth0 inet static > address 192.168.0.9 Given `address', ... > netmask 255.255.255.0 > network 192.168.0.0 > broadcast 192.168.0.255 `netmask', `network' and `broadcast' are redundant here as they're corresponding values that can be simply computed. > gateway 192.168.0.9 > > I tried setting the gateway address to the AP instead of the RPi, but > to no avail. It's a gateway from the perspective of that interface, not how others see that interface as this isn't being used to configure those others. See interfaces(5) for that system and https://debian-handbook.info/browse/stable/sect.network-config.html#sect.interface-ethernet I don't think you want it at all, and that suggests the http://qcktech.blogspot.com/2012/08/raspberry-pi-as-router.html you reference may have other problems. These are the commands that one version of ifup(8) and friends run from package ifupdown's `inet.defn' so you can see how `gateway' is used. up ip addr add %address%[[/%netmask%]] [[broadcast %broadcast%]] \ [[peer %pointopoint%]] [[scope %scope%]] dev %iface% label %iface% ip link set dev %iface% [[mtu %mtu%]] [[address %hwaddress%]] up [[ ip route add default via %gateway% [[metric %metric%]] dev %iface% ]] down [[ ip route del default via %gateway% [[metric %metric%]] dev %iface% 2>&1 1>/dev/null || true ]] ip -4 addr flush dev %iface% label %iface% ip link set dev %iface% down \ if (iface_is_link()) Cheers, Ralph. -- Next meeting: Bournemouth, Tuesday, 2018-07-03 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:[email protected] / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

