Internet On Your Neo FreeRunner (USB Networking)
From GeoSharing
Line 1: | Line 1: | ||
[[File:Internet-on-your-neo-1.png|thumb|400px|Internet on FreeRunner via USB]] | [[File:Internet-on-your-neo-1.png|thumb|400px|Internet on FreeRunner via USB]] | ||
- | It is always simpler to have a direct internet access from your Neo FreeRunner when you want to install or develop something on your phone. We will take advantage of the internet connection of the PC and the USB connection between the PC and the Neo. | + | It is always simpler to have a direct internet access from your Neo FreeRunner when you want to install or develop something on your phone. We will take advantage of the internet connection of the PC and the USB connection between the PC and the Neo FreeRunner. |
For this example, we are working with Ubuntu 10.10 on a laptop. | For this example, we are working with Ubuntu 10.10 on a laptop. | ||
Line 28: | Line 28: | ||
* Now, you can connect to the openmoko as root via ssh: | * Now, you can connect to the openmoko as root via ssh: | ||
$ ssh root@openmoko | $ ssh root@openmoko | ||
+ | root@om-gta02 ~ # | ||
== Configuration IP tables == | == Configuration IP tables == | ||
Line 43: | 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 |