Changes

Jump to: navigation, search

OPS235 Lab 6 - CentOS7

21 bytes added, 11:04, 29 July 2015
no edit summary
=== Making iptables Policies Persistent ===
It should be noted that all of the commands that we do here with iptables will not be persistent unless you have your configuration. That means if you re-boot, the default iptables configuration will be loaded. When your iptables service starts or at boot time it has to load the rules from the file '''/etc/sysconfig/iptables-config'''.
The final section below teaches you to make your iptables settings permanent.
# 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</span></code></b> to save the rules you added with the iptables command, above.# Verify that the file ''''/etc/sysconfig/iptables-config''' was updated with your new rules.
# Restart your iptables service and test your configuration.
13,420
edits

Navigation menu