http://wiki.dd-wrt.com/wiki/index.php?title=Port_Blocking&action=history&feed=atom
Port Blocking - Revision history
2024-03-28T12:16:22Z
Revision history for this page on the wiki
MediaWiki 1.10.1
http://wiki.dd-wrt.com/wiki/index.php?title=Port_Blocking&diff=55044&oldid=prev
Atatob: Add language list and table of contents
2019-12-04T07:25:05Z
<p>Add language list and table of contents</p>
<table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;">
<tr>
<td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td>
<td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 07:25, 4 December 2019</td>
</tr>
<tr><td colspan="2" align="left"><strong>Line 1:</strong></td>
<td colspan="2" align="left"><strong>Line 1:</strong></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;">{{Languages|Port_Blocking}}</td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;">__TOC__</td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">This tutorial will show you basic commands for blocking traffic from accessing your network.</td><td> </td><td style="background: #eee; font-size: smaller;">This tutorial will show you basic commands for blocking traffic from accessing your network.</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
</table>
Atatob
http://wiki.dd-wrt.com/wiki/index.php?title=Port_Blocking&diff=53082&oldid=prev
Ian5142: /* External Resources */
2017-11-16T17:44:59Z
<p><span class="autocomment">External Resources</span></p>
<table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;">
<tr>
<td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td>
<td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 17:44, 16 November 2017</td>
</tr>
<tr><td colspan="2" align="left"><strong>Line 56:</strong></td>
<td colspan="2" align="left"><strong>Line 56:</strong></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Traffic moderation]]</td><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Traffic moderation]]</td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;">[[Category:Advanced <del style="color: red; font-weight: bold; text-decoration: none;">Tutorials</del>]]</td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Category:Advanced <ins style="color: red; font-weight: bold; text-decoration: none;">tutorials</ins>]]</td></tr>
</table>
Ian5142
http://wiki.dd-wrt.com/wiki/index.php?title=Port_Blocking&diff=53081&oldid=prev
Ian5142: /* External Resources */
2017-11-16T17:44:13Z
<p><span class="autocomment">External Resources</span></p>
<table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;">
<tr>
<td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td>
<td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 17:44, 16 November 2017</td>
</tr>
<tr><td colspan="2" align="left"><strong>Line 56:</strong></td>
<td colspan="2" align="left"><strong>Line 56:</strong></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Traffic moderation]]</td><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Traffic moderation]]</td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Category:Advanced Tutorials]]</td></tr>
</table>
Ian5142
http://wiki.dd-wrt.com/wiki/index.php?title=Port_Blocking&diff=31783&oldid=prev
Glenn: catspec
2010-04-30T16:25:01Z
<p>catspec</p>
<table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;">
<tr>
<td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td>
<td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 16:25, 30 April 2010</td>
</tr>
<tr><td colspan="2" align="left"><strong>Line 55:</strong></td>
<td colspan="2" align="left"><strong>Line 55:</strong></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">[http://portforward.com/cports.htm PortForward] - List of the most commonly used ports<br></td><td> </td><td style="background: #eee; font-size: smaller;">[http://portforward.com/cports.htm PortForward] - List of the most commonly used ports<br></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;">[[Category:<del style="color: red; font-weight: bold; text-decoration: none;">Categories</del>]]</td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Category:<ins style="color: red; font-weight: bold; text-decoration: none;">Traffic moderation</ins>]]</td></tr>
</table>
Glenn
http://wiki.dd-wrt.com/wiki/index.php?title=Port_Blocking&diff=31450&oldid=prev
Glenn: +Category:Categories
2010-04-30T09:20:23Z
<p>+<a href="/wiki/index.php/Category:Categories" title="Category:Categories">Category:Categories</a></p>
<table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;">
<tr>
<td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td>
<td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 09:20, 30 April 2010</td>
</tr>
<tr><td colspan="2" align="left"><strong>Line 54:</strong></td>
<td colspan="2" align="left"><strong>Line 54:</strong></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">== External Resources ==</td><td> </td><td style="background: #eee; font-size: smaller;">== External Resources ==</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">[http://portforward.com/cports.htm PortForward] - List of the most commonly used ports<br></td><td> </td><td style="background: #eee; font-size: smaller;">[http://portforward.com/cports.htm PortForward] - List of the most commonly used ports<br></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Category:Categories]]</td></tr>
</table>
Glenn
http://wiki.dd-wrt.com/wiki/index.php?title=Port_Blocking&diff=29549&oldid=prev
Phuzi0n: /* Commands */ - cleanup
2010-01-16T02:19:45Z
<p><span class="autocomment">Commands -</span> - cleanup</p>
<table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;">
<tr>
<td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td>
<td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 02:19, 16 January 2010</td>
</tr>
<tr><td colspan="2" align="left"><strong>Line 10:</strong></td>
<td colspan="2" align="left"><strong>Line 10:</strong></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">== Commands ==</td><td> </td><td style="background: #eee; font-size: smaller;">== Commands ==</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;">'''Port Blocking - Block all users to <del style="color: red; font-weight: bold; text-decoration: none;">this </del>port <del style="color: red; font-weight: bold; text-decoration: none;">(''Example: Port </del>80<del style="color: red; font-weight: bold; text-decoration: none;">'')</del>:'''</td><td>+</td><td style="background: #cfc; font-size: smaller;">'''Port Blocking - Block all users to port 80:'''</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;">:iptables -I FORWARD <del style="color: red; font-weight: bold; text-decoration: none;">1 </del>-p tcp --dport 80 -j DROP</td><td>+</td><td style="background: #cfc; font-size: smaller;">:iptables -I FORWARD -p tcp --dport 80 -j DROP</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;">'''Port Blocking - Block a SINGLE user to <del style="color: red; font-weight: bold; text-decoration: none;">this </del>port <del style="color: red; font-weight: bold; text-decoration: none;">(''Example: Port </del>21<del style="color: red; font-weight: bold; text-decoration: none;">'')</del>:'''</td><td>+</td><td style="background: #cfc; font-size: smaller;">'''Port Blocking - Block a SINGLE user to port 21:'''</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;">:iptables -I FORWARD <del style="color: red; font-weight: bold; text-decoration: none;">1 </del>-s 192.168.1.101 -p tcp --dport 21 -j DROP</td><td>+</td><td style="background: #cfc; font-size: smaller;">:iptables -I FORWARD -s 192.168.1.101 -p tcp --dport 21 -j DROP</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;">'''Port Blocking - Block a RANGE of users to <del style="color: red; font-weight: bold; text-decoration: none;">this </del>port (''<del style="color: red; font-weight: bold; text-decoration: none;">Example: Port 21</del>''):'''</td><td>+</td><td style="background: #cfc; font-size: smaller;">'''Port Blocking - Block a RANGE of users to port <ins style="color: red; font-weight: bold; text-decoration: none;">21 </ins>(''<ins style="color: red; font-weight: bold; text-decoration: none;">not available in most embedded builds</ins>''):'''</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;">:iptables -I FORWARD <del style="color: red; font-weight: bold; text-decoration: none;">1 </del>-s 192.168.1.1-192.168.1.101 -p tcp --dport 21 -j DROP</td><td>+</td><td style="background: #cfc; font-size: smaller;">:iptables -I FORWARD -s 192.168.1.1-192.168.1.101 -p tcp --dport 21 -j DROP</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;">'''Port Blocking - Block a RANGE of users to <del style="color: red; font-weight: bold; text-decoration: none;">this </del>port based upon a SUBNET <del style="color: red; font-weight: bold; text-decoration: none;">(''Example: Port 21'')</del>:'''</td><td>+</td><td style="background: #cfc; font-size: smaller;">'''Port Blocking - Block a RANGE of users to port <ins style="color: red; font-weight: bold; text-decoration: none;">21 </ins>based upon a SUBNET:'''</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">:iptables -I FORWARD 1 -s 192.168.1.0/24 -p tcp --dport 21 -j DROP</td><td> </td><td style="background: #eee; font-size: smaller;">:iptables -I FORWARD 1 -s 192.168.1.0/24 -p tcp --dport 21 -j DROP</td></tr>
<tr><td colspan="2" align="left"><strong>Line 38:</strong></td>
<td colspan="2" align="left"><strong>Line 38:</strong></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">:iptables -F</td><td> </td><td style="background: #eee; font-size: smaller;">:iptables -F</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;">'''Multiple Ports - <del style="color: red; font-weight: bold; text-decoration: none;">Use a semi-colon to separate </del>multiple rules<del style="color: red; font-weight: bold; text-decoration: none;">, Use a unique rulenum per command (-I FORWARD 1, -I FORWARD 2, -I FORWARD 3)</del>:'''</td><td>+</td><td style="background: #cfc; font-size: smaller;">'''Multiple Ports - <ins style="color: red; font-weight: bold; text-decoration: none;">Create </ins>multiple rules:'''</td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;">:iptables -I FORWARD <del style="color: red; font-weight: bold; text-decoration: none;">1 </del>-p tcp --dport <del style="color: red; font-weight: bold; text-decoration: none;">80 </del>-j DROP<del style="color: red; font-weight: bold; text-decoration: none;">; </del>iptables -I FORWARD <del style="color: red; font-weight: bold; text-decoration: none;">2 </del>-p tcp --dport <del style="color: red; font-weight: bold; text-decoration: none;">21 </del>-j DROP</td><td>+</td><td style="background: #cfc; font-size: smaller;">:iptables -I FORWARD -p tcp --dport <ins style="color: red; font-weight: bold; text-decoration: none;">21 </ins>-j DROP</td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">:</ins>iptables -I FORWARD -p tcp --dport <ins style="color: red; font-weight: bold; text-decoration: none;">80 </ins>-j DROP</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">''Or, just use one rule to accomplish the same thing:''</td><td> </td><td style="background: #eee; font-size: smaller;">''Or, just use one rule to accomplish the same thing:''</td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;">:iptables -I FORWARD -p tcp -m multiport --dport <del style="color: red; font-weight: bold; text-decoration: none;">80,</del>21 -j DROP</td><td>+</td><td style="background: #cfc; font-size: smaller;">:iptables -I FORWARD -p tcp -m multiport --dport 21<ins style="color: red; font-weight: bold; text-decoration: none;">,80 </ins>-j DROP</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">'''Port Range - Use a colon to select a port range (''Port 21 through 80 will be closed''):'''</td><td> </td><td style="background: #eee; font-size: smaller;">'''Port Range - Use a colon to select a port range (''Port 21 through 80 will be closed''):'''</td></tr>
</table>
Phuzi0n
http://wiki.dd-wrt.com/wiki/index.php?title=Port_Blocking&diff=25875&oldid=prev
Vespian at 09:14, 17 June 2009
2009-06-17T09:14:01Z
<p></p>
<table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;">
<tr>
<td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td>
<td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 09:14, 17 June 2009</td>
</tr>
<tr><td colspan="2" align="left"><strong>Line 21:</strong></td>
<td colspan="2" align="left"><strong>Line 21:</strong></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">:iptables -I FORWARD 1 -s 192.168.1.1-192.168.1.101 -p tcp --dport 21 -j DROP</td><td> </td><td style="background: #eee; font-size: smaller;">:iptables -I FORWARD 1 -s 192.168.1.1-192.168.1.101 -p tcp --dport 21 -j DROP</td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;">'''Port Blocking - Block a RANGE of users to this port based upon a SUBNET (''Example: Port 21''):'''</td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;">:iptables -I FORWARD 1 -s 192.168.1.0/24 -p tcp --dport 21 -j DROP</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">'''List iptables - List the rules in a chain or all chains:'''</td><td> </td><td style="background: #eee; font-size: smaller;">'''List iptables - List the rules in a chain or all chains:'''</td></tr>
</table>
Vespian
http://wiki.dd-wrt.com/wiki/index.php?title=Port_Blocking&diff=25874&oldid=prev
Vespian at 09:12, 17 June 2009
2009-06-17T09:12:39Z
<p></p>
<table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;">
<tr>
<td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td>
<td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 09:12, 17 June 2009</td>
</tr>
<tr><td colspan="2" align="left"><strong>Line 17:</strong></td>
<td colspan="2" align="left"><strong>Line 17:</strong></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">:iptables -I FORWARD 1 -s 192.168.1.101 -p tcp --dport 21 -j DROP</td><td> </td><td style="background: #eee; font-size: smaller;">:iptables -I FORWARD 1 -s 192.168.1.101 -p tcp --dport 21 -j DROP</td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;">'''Port Blocking - Block a RANGE of users to this port (''Example: Port 21''):'''</td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;">:iptables -I FORWARD 1 -s 192.168.1.1-192.168.1.101 -p tcp --dport 21 -j DROP</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">'''List iptables - List the rules in a chain or all chains:'''</td><td> </td><td style="background: #eee; font-size: smaller;">'''List iptables - List the rules in a chain or all chains:'''</td></tr>
</table>
Vespian
http://wiki.dd-wrt.com/wiki/index.php?title=Port_Blocking&diff=19362&oldid=prev
Soulstace: /*Port Blocking*/
2008-02-29T13:05:14Z
<p><span class="autocomment">Port Blocking</span></p>
<table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;">
<tr>
<td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td>
<td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 13:05, 29 February 2008</td>
</tr>
<tr><td colspan="2" align="left"><strong>Line 30:</strong></td>
<td colspan="2" align="left"><strong>Line 30:</strong></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">:iptables -F</td><td> </td><td style="background: #eee; font-size: smaller;">:iptables -F</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;">'''Multiple Ports - Use a semi-colon to separate multiple <del style="color: red; font-weight: bold; text-decoration: none;">ports</del>, Use a unique rulenum per command (-I FORWARD 1, -I FORWARD 2, -I FORWARD 3):'''</td><td>+</td><td style="background: #cfc; font-size: smaller;">'''Multiple Ports - Use a semi-colon to separate multiple <ins style="color: red; font-weight: bold; text-decoration: none;">rules</ins>, Use a unique rulenum per command (-I FORWARD 1, -I FORWARD 2, -I FORWARD 3):'''</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">:iptables -I FORWARD 1 -p tcp --dport 80 -j DROP; iptables -I FORWARD 2 -p tcp --dport 21 -j DROP</td><td> </td><td style="background: #eee; font-size: smaller;">:iptables -I FORWARD 1 -p tcp --dport 80 -j DROP; iptables -I FORWARD 2 -p tcp --dport 21 -j DROP</td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;">''Or, just use one rule to accomplish the same thing:''</td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;">:iptables -I FORWARD -p tcp -m multiport --dport 80,21 -j DROP</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">'''Port Range - Use a colon to select a port range (''Port 21 through 80 will be closed''):'''</td><td> </td><td style="background: #eee; font-size: smaller;">'''Port Range - Use a colon to select a port range (''Port 21 through 80 will be closed''):'''</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">:iptables -I FORWARD 1 -p tcp --dport 21:80 -j DROP</td><td> </td><td style="background: #eee; font-size: smaller;">:iptables -I FORWARD 1 -p tcp --dport 21:80 -j DROP</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;">== <del style="color: red; font-weight: bold; text-decoration: none;">External Resources </del>==</td><td>+</td><td style="background: #cfc; font-size: smaller;">== <ins style="color: red; font-weight: bold; text-decoration: none;">See Also </ins>==</td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">[[Iptables command]] - Lists all available commands for use in iptables<br></td><td> </td><td style="background: #eee; font-size: smaller;">[[Iptables command]] - Lists all available commands for use in iptables<br></td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;">[http://portforward.com/cports.htm PortForward] - List of the most commonly used ports<br></td><td colspan="2"> </td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">[[Telnet/SSH and the Command Line]] - How to on Telnet and SSH</td><td> </td><td style="background: #eee; font-size: smaller;">[[Telnet/SSH and the Command Line]] - How to on Telnet and SSH</td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;">== External Resources ==</td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;">[http://portforward.com/cports.htm PortForward] - List of the most commonly used ports<br></td></tr>
</table>
Soulstace
http://wiki.dd-wrt.com/wiki/index.php?title=Port_Blocking&diff=18409&oldid=prev
Cyph3r: /* Commands */
2008-01-05T10:05:49Z
<p><span class="autocomment">Commands</span></p>
<table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;">
<tr>
<td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td>
<td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 10:05, 5 January 2008</td>
</tr>
<tr><td colspan="2" align="left"><strong>Line 30:</strong></td>
<td colspan="2" align="left"><strong>Line 30:</strong></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">:iptables -F</td><td> </td><td style="background: #eee; font-size: smaller;">:iptables -F</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;">'''Multiple Ports - Use a semi-colon to separate multiple ports, Use a <del style="color: red; font-weight: bold; text-decoration: none;">different </del>rulenum per command (-I FORWARD 1, -I FORWARD 2, -I FORWARD 3):'''</td><td>+</td><td style="background: #cfc; font-size: smaller;">'''Multiple Ports - Use a semi-colon to separate multiple ports, Use a <ins style="color: red; font-weight: bold; text-decoration: none;">unique </ins>rulenum per command (-I FORWARD 1, -I FORWARD 2, -I FORWARD 3):'''</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">:iptables -I FORWARD 1 -p tcp --dport 80 -j DROP; iptables -I FORWARD 2 -p tcp --dport 21 -j DROP</td><td> </td><td style="background: #eee; font-size: smaller;">:iptables -I FORWARD 1 -p tcp --dport 80 -j DROP; iptables -I FORWARD 2 -p tcp --dport 21 -j DROP</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
</table>
Cyph3r