# Run this as root to get PocketBeagle to use the internet

# You need to run talktome.sh on the PocketBeagle

# Based on information found at :

# http://jpdelacroix.com/tutorials/sharing-internet-beaglebone-black.html



ifconfig eth3 192.168.7.1

sysctl net.ipv4.ip_forward=1

iptables --table nat --append POSTROUTING --out-interface eth1 -j MASQUERADE

iptables --append FORWARD --in-interface eth3 -j ACCEPT

