Open main menu

CDOT Wiki β

Changes

OPS235 Lab 6 - CentOS7

231 bytes removed, 19:03, 4 May 2015
no edit summary
#: <b><code><span style="color:#3366CC;font-size:1.2em;">iptables -F</span></code></b>
# What did those commands issued above do? Refer to the ''manpages'' for ''iptables'' if not certain.
# You should see something similar to this:<br /><br />Chain INPUT (policy ACCEPT)<br /><br />target prot opt source destination<br /><br />Chain FORWARD (policy ACCEPT)<br /><br />target prot opt source destination<br /><br />Chain OUTPUT (policy ACCEPT)<br /><br />target prot opt source destination<br /><br /># Set the default policy for the INPUT chain to DROPby issuing the command:#* : <b><code><span style="color:#3366CC;font-size:1.2em;">iptables -P INPUT DROP</span></code></b># Now try on your own to change the default policies for the OUPUT OUTPUT and FORWARD chains to DROP
# Write the commands you executed in your lab book.
# Can we mix these policies? Try to set the FORWARD chain policy to ACCEPT. Did it work?
13,420
edits