24.3.1 Controlling the Firewall Service

To start the firewall service (iptables) and configure it to start when the system boots, enter the following commands:

# service iptables start
# chkconfig iptables on

To save any changes that you have made to the firewall rules to /etc/sysconfig/iptables and /etc/sysconfig/ip6tables, so that the service loads them when it next starts:

# service iptables save

To restart the service so that it re-reads its rules from /etc/sysconfig/iptables and /etc/sysconfig/ip6tables:

# service iptables restart

To stop the service:

# service iptables stop