First off, there should be documentation that came on your RedHat CD. That being said, "man iptables" will give you *tons* of information, which is probably too much to deal with.
That being said, here is what I do:
echo 1 > /proc/sys/net/ipv4/ip_forward
/usr/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
where eth0 is the external interface. I don't have any fancy stuff like port forwarding working, but that should do it (assuming you compiled iptables into the kernel). You may have to insmod the modules, I don't remember their names. Just add the insmods and the above lines to a startup script (I don't remember how to do that in RH) and away you go.
Beez |