N900 USB router
(→On the laptop) |
(→For Non-Power Users On Windows) |
||
Line 37: | Line 37: | ||
The [http://www.nokiausa.com/get-support-and-software/software/nokia-pc-suites/compatibility-and-download Nokia PC Suite] also provides this functionality for Windows users. Once it is set up, click on the green globe icon to get started - or you can just run "OneTouchAccess" from the PC Suite program files directory (<code>C:\Program Files\Nokia\Nokia PC Suite 7\</code> by default on Windows XP) | The [http://www.nokiausa.com/get-support-and-software/software/nokia-pc-suites/compatibility-and-download Nokia PC Suite] also provides this functionality for Windows users. Once it is set up, click on the green globe icon to get started - or you can just run "OneTouchAccess" from the PC Suite program files directory (<code>C:\Program Files\Nokia\Nokia PC Suite 7\</code> by default on Windows XP) | ||
+ | Note: Reportedly PC Suite do not provide USB networking as described in this article. Instead it sets up dialup networking over USB, using the phone as a wireless broadband modem. Fine for Internet access, but perhaps not what you want for advanced uses where you want to be able to communicate with the N900 as well, not just Internet. | ||
[[Category:Connectivity]] | [[Category:Connectivity]] |
Revision as of 19:59, 7 July 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 opposite use case of N900 USB networking.
On the N900
- Enable extras-devel
- Install iptables at a terminal with root access:
apt-get install iptables
- Install kernel-power-settings (see the detailed installation instructions):
apt-get install kernel-power-settings
- Setup iptables to allow forwarding:
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
- Check the IP address for USB networking:
cat /etc/network/interfaces
iface usb0 inet static address 192.168.3.15 netmask 255.255.255.0
- Bring the interface UP:
ifup usb0
- Start dnsmasq on the usb0 interface to provide DHCP & DNS
dnsmasq -I lo -z -a 192.168.3.15 -F 192.168.3.64,192.168.3.127
On the laptop
The networking configuration on the PC side should be almost automatic on most OS:es. If needed configure your PC to use DHCP on the USB interface.
For Non-Power Users On Windows
The Nokia PC Suite also provides this functionality for Windows users. Once it is set up, click on the green globe icon to get started - or you can just run "OneTouchAccess" from the PC Suite program files directory (C:\Program Files\Nokia\Nokia PC Suite 7\
by default on Windows XP)
Note: Reportedly PC Suite do not provide USB networking as described in this article. Instead it sets up dialup networking over USB, using the phone as a wireless broadband modem. Fine for Internet access, but perhaps not what you want for advanced uses where you want to be able to communicate with the N900 as well, not just Internet.