|
2010-06-28
, 11:09
|
|
Posts: 2,121 |
Thanked: 1,540 times |
Joined on Mar 2008
@ Oxford, UK
|
#2
|
|
2010-06-28
, 18:35
|
Posts: 2 |
Thanked: 17 times |
Joined on Jun 2010
|
#3
|
|
2010-06-28
, 18:59
|
|
Posts: 304 |
Thanked: 20 times |
Joined on Jan 2010
@ irvine
|
#4
|
|
2010-06-28
, 20:36
|
|
Posts: 115 |
Thanked: 136 times |
Joined on Mar 2008
@ Central Ohio
|
#5
|
|
2010-06-30
, 00:45
|
Posts: 1,378 |
Thanked: 1,604 times |
Joined on Jun 2010
@ Göteborg, Sweden
|
#6
|
It's possible to do this with the Nokia PC Suite as well - the "One Touch Access" functionality seems to work with the N900
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
|
2010-07-03
, 10:28
|
Posts: 17 |
Thanked: 0 times |
Joined on Jul 2010
|
#7
|
|
2010-07-07
, 19:35
|
Posts: 2 |
Thanked: 2 times |
Joined on Jul 2010
|
#8
|
ifup usb0 echo 1 >/proc/sys/net/ipv4/ip_forward iptables -t nat -F POSTROUTING iptables -t nat -A POSTROUTING -j MASQUERADE dnsmasq -I lo -z -a 192.168.2.15 -F 192.168.2.64,192.168.2.127
auto usb0 iface usb0 inet static address 192.168.2.15 netmask 255.255.255.0 # gateway 192.168.2.14
The Following User Says Thank You to HenrikNordstrom For This Useful Post: | ||
|
2010-11-14
, 08:03
|
Posts: 293 |
Thanked: 76 times |
Joined on Jan 2008
@ Fremantle, W. Australia
|
#10
|
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