Internet On Your Neo FreeRunner (USB Networking)
From GeoSharing
Line 44: | Line 44: | ||
* Fifth step: add these lines: | * Fifth step: add these lines: | ||
/sbin/iptables -P FORWARD ACCEPT | /sbin/iptables -P FORWARD ACCEPT | ||
- | /sbin/iptables --table nat -A POSTROUTING -s 192.168.0.202/32 -o | + | /sbin/iptables --table nat -A POSTROUTING -s 192.168.0.202/32 -o iface -j MASQUERADE |
- | where iface corresponds to the interface connected to the internet (wlan0, eth0, eth1, ...). These changes also take effect only after a reboot. To make them effective directly, type the same command in a terminal by replacing '''/sbin/''' by '''sudo'''. | + | where '''iface''' corresponds to the interface connected to the internet (wlan0, eth0, eth1, ...). These changes also take effect only after a reboot. To make them effective directly, type the same command in a terminal by replacing '''/sbin/''' by '''sudo'''. |
== Sources == | == Sources == | ||
* http://wiki.openmoko.org/wiki/USB_Networking | * http://wiki.openmoko.org/wiki/USB_Networking | ||
* http://ubuntuforums.org/showthread.php?t=713874 | * http://ubuntuforums.org/showthread.php?t=713874 |