The two most important parts are setting /proc/sys/net/ipv4/ip_forward to "1" and adding an iptables line to your firewall script with a "-j MASQ". You need to look at the IP MASQUERADE HOWTO.
You can set the /proc/sys/net/ipv4/ip_forward to one by adding a line at the start of your firewall script:
echo 1 > /proc/sys/net/ipv4/ip_forward
or adding "net.ipv4.ip_forward = 0" to your /etc/sysctl.conf file (this is all on your gateway machine by the way).
I actually use ipchains rather than iptables only because my gateway box is an old P100 running Red Hat 6. I have never set up an 8.0 box as a gateway but it should be similar. If I were to do an 8.0 box I would put all of my firewall/masquerade rules in /etc/sysconfig/iptables which is the default location for your firewall rules in Red Hat 8.0. If you do a good enough search on google you might find the exact thing you are looking for. If you can get it working with the proper rules in /etc/sysconfig/iptables I would like to add it as a HOWTO if you don't mind.
Here's a link that might help you. Looks like what I had in mind:
http://www.wbglinks.net/pages/reads/cha ... smasq.html
However, the network map at the bottom of the page looks wrong to me. I don't see how it could possibly work with his configuration. To me the gateway should have been assigned 192.168.0.1, not the client. If the IP addresses on the map were switched then I would buy his instructions.
And as a side note, if you want a nice graphical interface for adding/removing general firewall rules Webmin is a great utility for this. Comes in handy when you have lots of rules.
Thanks!




