Yesterday was the Woking Means Business trade show, we had a stand there so we could show local businesses how they could save money by using Free and Open Source software. Here is a (bad) photo of our computer laden stand. (Alan Bell on the right, Alan Lord is on the left)

on the stand from left to right is a Novatec laptop (they are one of the few suppliers who will sell you a computer without operating system), an Elonex webbook, an OLPC XO laptop, the pink Elonex ONE and on the shelf is a monitor attached to another Novatec laptop and a little Elonex ONEt. All running Free and Open Source software.
We had internet access on all the computers, thanks to another webbook hidden in the cupboard below. The other webbook had an Orange 3G dongle plugged in and was connected to a standard wireless ADSL router (not plugged in to ADSL of course). With a bit of messing about with the settings we got the webbook to act as a NAT router and internet gateway for all the others. We were connected for about 8 hours doing all sorts of things, demonstrating updates and installation of software and using our web based vtiger CRM system. It worked flawlessly and is a really great setup for anyone who wants internet access for a bunch of computers.
To get it working there are a couple of magical incantations required on the webbook, specifically,
sudo sysctl -w net.ipv4.ip_forward=1
to allow it to forward packets from the wireless interface to the mobile broadband interface, and then
sudo iptables -t nat -A POSTROUTING -s 192.168.0.0/16 -o hso0 -j MASQUERADE
to set up a firewall rule to do network address translation (NAT) for the 192.168.0.0 subnet (the local network) with the external interface being called hso0 (if you have the Orange dongle the network card is called hso0, if it is 3 or T Mobile then substitute hso0 for ppp0). Finally on all the other computers we had to set their default route to point to the IP address of the webbook with the dongle and also edit their /etc/resolv.conf dns settings to point to the Orange DNS servers, if I had set the webbook up as a DHCP server this could all have been automatic.

