Show Table of Contents
22.214.171.124. Saving and Restoring IPTables Rules
iptablesare transitory; if the system is rebooted or if the
iptablesservice is restarted, the rules are automatically flushed and reset. To save the rules so that they are loaded when the
iptablesservice is started, use the following command:
service iptables save
The rules are stored in the file
/etc/sysconfig/iptablesand are applied whenever the service is started or the machine is rebooted.