26.3.2.5 Saving Rules

To save your changes to the firewall rules so that they are loaded when the iptables service next starts, use the following command:

# /sbin/iptables-save /etc/sysconfig/iptables

The command saves the rules to /etc/sysconfig/iptables. For IPv6, you can use /sbin/ip6tables-save > /etc/sysconfig/ip6tables to save the rules to /etc/sysconfig/ip6tables.