I am using a Beaglebone Black with new debian
I used the new debian with reference to the following link
Through the answers to the previous question I set static IP using connmanctl
The following is ifconfig output of my beaglebone black
usb0 is a wired ethernet and wwan0 is connected with LTE modem.
I want to connect a device to eth0 and connect to the external network through wwan0
I tried the following
# sysctl net.ipv4.ip_forward=1 # iptables --table nat --append POSTROUTING --out-interface wwan0 -j MASQUERADE # iptable --append FORWARD --in-interface eth0 -j ACCEPT # route add default gw 192.168.10.1 # echo "nameserver 22.214.171.124" >> /etc/resolv.conf
But it didnot work.
Could you explain how to set NAT on beaglebone black?