The /etc/sysconfig/iptables-config
file stores information used by the kernel to set up packet filtering services at boot time or whenever the service is started.
Do not modify this file by hand unless you are familiar with constructing iptables
rules. The easiest way to add rules is to use the Security Level Configuration Tool (system-config-securitylevel
) application to create a firewall. These applications automatically edit this file at the end of the process.
Rules can also be created manually using the /sbin/iptables
command. Once created, add the rule(s) to the/etc/sysconfig/iptables
file by typing the following command:
/sbin/service iptables save
Once this file exists, any firewall rules saved in it persists through a system reboot or a service restart.