N900 USB router
(New page: = N900 as a USB router = When the only internet link is the N900, how to connect a laptop to it and use it to connect to the net ? This is the oposite use case of http://wiki.maemo.org/N90...) |
(→N900 as a USB router) |
||
Line 1: | Line 1: | ||
- | |||
When the only internet link is the N900, how to connect a laptop to it and use it to connect to the net ? This is the oposite use case of http://wiki.maemo.org/N900_USB_networking. | When the only internet link is the N900, how to connect a laptop to it and use it to connect to the net ? This is the oposite use case of http://wiki.maemo.org/N900_USB_networking. | ||
== On the N900 == | == On the N900 == |
Revision as of 18:35, 28 June 2010
When the only internet link is the N900, how to connect a laptop to it and use it to connect to the net ? This is the oposite use case of http://wiki.maemo.org/N900_USB_networking.
On the N900
/etc/apt/sources.list deb http://repository.maemo.org/extras-devel/ fremantle free apt-get install iptables http://wiki.maemo.org/Kernel_Power#I...el_from_extras apt-get install kernel-power-settings echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE iptables -t nat -A POSTROUTING -o gprs0 -j MASQUERADE cat /etc/network/interfaces iface usb0 inet static address 192.168.3.15 netmask 255.255.255.0 ifup usb0
On the laptop
sudo ifconfig usb1 192.168.3.14 sudo route add default gw 192.168.3.15