[maemo-users] Internet connection sharing

From: Marius Gedminas marius at pov.lt
Date: Thu Oct 15 00:29:10 EEST 2009
You have:

  * 1 (one) Nokia N900
  * 1 (one) USB cable for the N900
  * 1 (one) laptop running Linux
  * 1 (one) USB 3g dongle with a SIM slot for the laptop
  * 1 (one) SIM card

Your goal: get both the laptop and the N900 online.

So far I've achieved partial success:

  * insert SIM card into the N900
  * get online
  * connect the N900 to the laptop with a USB cable
  * on the N900 open a root shell and run
      ifconfig usb0 netmask up
      dnsmasq -i usb0 -a -I lo -z -d -x /var/run/dnsmasq.usb0.pid
  * on the laptop run
      ifconfig usb0 netmask up
      echo 'nameserver' > /etc/resolv.conf
So far so good, but without iptables I cannot make the N900 do network
address translation.  I've also installed openssh-server on the N900 and used
ssh -D 1080 root at from the laptop to get a SOCKS5 proxy on
localhost, so I can get online from my laptop, but that's a rather
inconvenient partial solution.

Also, I'd be happier if I could do this without cables (i.e. over wifi
or usb).

Am I reinventing the bicycle?  Are there working solutions?

Marius Gedminas
Remember the... the... uhh.....
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.maemo.org/pipermail/maemo-users/attachments/20091015/08437660/attachment.pgp 
More information about the maemo-users mailing list