Open main menu

CDOT Wiki β

Changes

OPS235 Lab 6 - Fedora17

64 bytes added, 15:48, 4 March 2010
Investigation 8: How do I view and configure the IPTABLES firewall? -- Basic Function/Configuration
See the MAN page for <code>iptables</code> for detailed information on switches and options.}}
2. * Set the default policy for the INPUT chain to DROP:** <code>iptables -P INPUT DROP</code>
'''iptables {{Admon/note| |The <code>-P </code> switch stands for POLICY. This tells <code>iptables</code> that we are changing the policy for the INPUT chain. The policy is to be changed to DROP'''.
The -P switch stands for POLICY. This tells ip tables that we are changing the policy for the INPUT chain. The policy is to be changed to DROP. Note that <code>iptables </code> commands (as well as all other Linux commands) are case sensitive. Check your syntax carefully.}}
3. Now try on your own to change the default policies for the OUPUT and FORWARD chains to DROP
9
edits