Thread
:
N900 as a USB router
View Single Post
loic
2010-06-28 , 11:06
Posts: 2 | Thanked: 17 times | Joined on Jun 2010
#
1
Hi,
Here is how I configured a N900 as a router when connected to my laptop with the USB cable in "PC Suite" mode.
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
Quote & Reply
|
The Following 15 Users Say Thank You to loic For This Useful Post:
andree
,
cheve
,
chrget
,
Fumanchu
,
handaxe
,
kik
,
Laughing Man
,
mrover
,
myk
,
NoX
,
pavlik
,
pelago
,
qosmio
,
rustler
,
uvatbc
loic
View Public Profile
Find all posts by loic