Open main menu

CDOT Wiki β

Changes

OPS235 Lab 6 - Fedora17

78 bytes added, 11:17, 13 March 2011
no edit summary
#* <code>iptables -F</code> (This flushes out or clears all of your rules from the chains)
#* <code>iptables -L</code>
#You should see something similar to this:<pre> <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 /></pre> <br /><br />{{Admon/note | | Each chain has a default policy. In my example here the default policy is ACCEPT. This means that if data packets are checked and there is no rule that matches that packet in the chain the data will be allowed to pass to it's destination. Conversely, if the policy is set to DROP then the packet will be dropped if there is no match. <br /><br />See the MAN page for <code>iptables</code> for detailed information on switches and options.}}<br /><br />
# Set the default policy for the INPUT chain to DROP:
#* <code>iptables -P INPUT DROP</code>
13,420
edits