Jump to: navigation, search

OPS235 Lab 7 - CentOS7 - HD2

307 bytes added, 23:54, 28 March 2017
Resetting default INPUT policy
:'''Perform the following steps:'''
# Issue an Flush all of your iptables rules to list by issuing the current rules to confirm that refollowing command: <b><code><span style="color:#3366CC;font-size:1.2em;">iptables -booting your c7host didn't save F</span></code></b># Set the iptables default INPUT policy or exception to ACCEPT by issuing the following command: <b><code><span style="color:#3366CC;font-size:1.2em;">iptables -P INPUT ACCEPT</span></code></b># Verify there are no iptables rules from part 2by issuing the command: <b><code><span style="color:#3366CC;font-size:1.2em;">iptables -L</span></code></b>
# Make a backup of the file '''/etc/sysconfig/iptables''' by issuing the command:<br><b><code><span style="color:#3366CC;font-size:1.2em;">iptables-save > /etc/sysconfig/iptables.bk</span></code></b>
#To make the iptables rules '''persistent''' (i.e. keeps rules when system restarts), you issue the command: <br><b><code><span style="color:#3366CC;font-size:1.2em;">iptables-save > /etc/sysconfig/iptables</span></code></b>

Navigation menu