Changes

Jump to: navigation, search

OPS235 Lab 6 - CentOS7 - SSD

14 bytes added, 07:07, 16 June 2016
no edit summary
You can also set exceptions to the default policy for specific IP Addresses by using the options <b><code><span style="pointer-events: none;cursor: default;color:#3366CC;font-size:1.2em;">-sd IPADDR</span></code></b> or <b><code><span style="pointer-events: none;cursor: default;color:#3366CC;font-size:1.2em;">-sIPADDR</span></code></b>
<table width="100%" cellpadding="10" cellspacing="0" border="1">
<tr>
<td width="5040%">'''iptables -A INPUT -p tcp -s 192.168.0.0/24 -sport 22 -j ACCEPT'''</td><td>Set default policy to drop all incoming connections for ALL protocols, ALL communication ports, ALL IP addresses</td>
</tr><tr>
<td>'''iptables -A OUTPUT -p tcp -d 192.168.0.0/24 -dport 80 -j REJECT'''</td><td>Set default policy to drop all outgoing connections for ALL protocols, ALL communication ports, ALL IP addresses</td>
13,420
edits

Navigation menu