Internet Connection Sharing

Change eth1 to the network interface that is connected to the Internet (ie eth0 or ath0, usually wireless)
Run this script after connecting to the Internet. You may want to set an IP address to your network connection that will connect to the rest of the computers. The gateway on the other computers will be the IP address of the network connected interface

#!/bin/bash
iptables --flush
iptables -P FORWARD ACCEPT
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE 
echo "1" > /proc/sys/net/ipv4/ip_forward