Xmodulo posted a tutorial about setting up Internet connection sharing with iptables on Linux
How to set up Internet connection sharing with iptables on Linux
How to set up Internet connection sharing with iptables on Linux