13,420
edits
Changes
no edit summary
# Make a backup of the file '''/etc/sysconfig/iptables'''
# Examine the file to see how rules are added.
# Issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">iptables-save > /etc/sysconfig/iptables-config.bk</span></code></b> to save the rules you added with the iptables command, above. #To make the iptables rules '''persistent''' (i.e. keeps rules when system restarts), you can issue the command: <br><b><code><span style="color:#3366CC;font-size:1.2em;">iptables-save > /etc/sysconfig/iptables</span></code></b>
# Verify that the file '''/etc/sysconfig/iptables''' exists.
# Restart your iptables service and test your configuration.