With Maemo PC Connectivity, you can easily setup Internet connection and share it from maemo device to host PC. For that, you should setup from which interface (Wlan, Usb or Bluetooth) maemo device accesses Internet and share it with other interfaces (Wlan, Usb and/or Bluetooth). Also, you can share Internet from host PC (Linux, Windows or Mac OS) to maemo device as described in the following documentation.
Next, it will be described how to get Internet shared from maemo device to host PC:
Once you installed host-pc-connectivity package, you automatically shared Internet connection from your Linux host PC to maemo device.
If you want, you can share the Internet of your Linux host PC manually. Suppose you have Internet connection through ``cable interface'', normally eth0. You can share with any other interface (Usb, Bluetooth and/or Wlan) executing the following commands:
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE echo 1 > /proc/sys/net/ipv4/ip_forward
You can replace eth0 by any other interface (usb0, bnep0 or wlan0) that has Internet connection. To disable Internet sharing, you should execute the following commands:
iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE echo 0 > /proc/sys/net/ipv4/ip_forward
If you want to permanently share the Internet of your Linux host PC, you should edit the /etc/network/interfaces file. For example: you can add the following lines to share Internet every time the Usb interface (usb0) is up:
mapping hotplug script grep map usb0 iface usb0 inet dhcp # commands to enable internet sharing up iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE up echo 1 > /proc/sys/net/ipv4/ip_forward # commands to disable internet sharing down iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE down echo 0 > /proc/sys/net/ipv4/ip_forward
To share the Internet of your Windows host PC, you should follow the next steps:
Follow the next steps to share Internet on Mac OS: