here are some for different configs that you should be able to find a good one in
http://www.linuxguruz.org/iptables/
for redhat you should do this
Code:
/etc/rc.d/init.d/iptables stop
then using the script that you choose run it to set the firewall rules
( you will need to chmod 755 scriptname to execute it )
after that is done do this
Code:
iptables-save > /etc/sysconfig/iptables
you do not need the downloaded script anymore
the firewall will be controlled by the /etc/rc.d/init.d/iptables script