maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   USB internet tether to WiFi (https://talk.maemo.org/showthread.php?t=73970)

Cue 2011-06-13 16:26

USB internet tether to WiFi
 
I tried searching for this and I've seen it the other way round only.

Can the n900 be used as a wifi adaptor for a PC. So the phone connects to wifi and the PC shares the connection through USB?

Mentalist Traceur 2011-06-13 16:44

Re: USB internet tether to WiFi
 
I think there's a wiki page on that. I never tried to do it that way though, so I don't have advice on the matter.

9000 2011-06-13 17:17

Re: USB internet tether to WiFi
 
Quote:

Originally Posted by Cue (Post 1028322)
I tried searching for this and I've seen it the other way round only.

Can the n900 be used as a wifi adaptor for a PC. So the phone connects to wifi and the PC shares the connection through USB?

I haven't tried it yet, but in theory:

1) Establish USB networking: http://wiki.maemo.org/N900_USB_networking
2) Establish WiFi connection on N900 side, such that wlan0 is up
3) Use iptables to establish NAT:

Code:

iptables -F
iptables -t nat -F

iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE

4) Enable IP forwarding:

Code:

echo 1 > /proc/sys/net/ipv4/ip_forward
Tell us if you get it working.


All times are GMT. The time now is 16:38.

vBulletin® Version 3.8.8