|
Redhat/Fedora actually runs IPTABLES as a startup service. One of the service options is to "save" the current state of your Iptables firewall rules into the script that is read when the service starts.
Generally, you create a script as mentioned above. You run the script manually until you're happy that all the rules are working. Once you're happy with the script, you run it manually( ./script.sh ), then run the "service iptables save" command. This saves all of the Iptables rules currently running into a file (think it might even be /etc/sysconfig/iptables).
When your computer boots again, it should start the iptables service and run through the saved rules.
Hope that made some sort of sense.
Cya round
Jinx
__________________
"... and the truth shall set you free"
========================
Two fish are in a tank.
One says to the other "I'll man the cannon, you drive."
|