Stefan Monnier, 2009-07-20 16:02:29 -0400 : > Could you describe a bit more what this is trying to do (which > problem it's trying to solve)? I've looked at the file but still > can't figure it out.
All the networking I do on the Freerunner goes through USB, via a more standard computer (desktop or laptop) that happens to have a conventional IP connection (ethernet or wireless). To share the connection, you need: - an IP link between the Freerunner and the computer (static 192.168.0.200 and .202 addresses on usb0, in /etc/network/interfaces); - NATing/masquerading and forwarding so that the computer forwards packets back and forth; - a DNS server accessible from the Freerunner; either you set it up by hand in the Freerunner's /etc/resolv.conf, and update it by hand when you're plugged into a different location (say, your laptop on the road), or you tell the Freerunner to use the computer as a DNS server, and the computer forwards the requests. The latter can be done by setting up a forwarding DNS server on the computer, or by simply doing IP forwarding to the first server mentioned in its resolv.conf. Which is what the script does. So I can plug the Freerunner into my laptop wherever that is, and the DNS traffic will be forwarded to the DNS server the laptop got from DHCP, without any manual intervention on the Freerunner. Roland. -- Roland Mas ...sur un portable, quelque part dans le monde... ...on a laptop, somewhere in the world... _______________________________________________ Smartphones-userland mailing list Smartphones-userland@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland