iptables question

Tom Rivers tom at impact-crater.com
Mon Jun 25 17:56:29 UTC 2007


Phil wrote:
> I am using iptables and I save my iptables script in rc.local for it 
> to start when the pc starts.
>
> I there a command that will save the iptables script that is currently 
> in use to a file that will load automatically?
>
> I did a quick good search but I thought I would ask the pro's! :)
>
>

Hi Phil,

Assuming the rules currently in place are what you want to save, try the 
following command as root:

service iptables save

That will save the rules and load them automagically when the iptables 
service starts.


Tom





More information about the fedora-list mailing list