Open main menu

CDOT Wiki β

Changes

OPS335 Firewall Lab

7 bytes added, 09:04, 23 January 2016
no edit summary
# Once you are happy with how your firewall works - make a backup of the original default rules: <source lang='bash'>cp /etc/sysconfig/iptables /etc/sysconfig/iptables.original</source>
# Overwrite the defaults with the current state of the firewall:<source lang='bash'>/usr/libexec/iptables/iptables.init save</source>
# Store the above commands into a shell script called: myicmp_resore'''myicmp_restore.bash'''
::<span style="color:green;font-size:1.5em;">&#x2713;</span>Listing of iptables rules.
::<span style="color:green;font-size:1.5em;">&#x2713;</span>Shell script containing your iptables rules for "Creating Customized Chains"called: '''myicmp_restore.bash'''
::<span style="color:green;font-size:1.5em;">&#x2713;</span> Run a shell script to submit your lab:<br>
13,420
edits