2002-08-07 16:28:04 +02:00
|
|
|
|
<html>
|
|
|
|
|
|
|
|
|
|
<head>
|
|
|
|
|
<meta http-equiv="Content-Language" content="en-us">
|
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
|
|
|
|
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
|
|
|
|
|
<meta name="ProgId" content="FrontPage.Editor.Document">
|
|
|
|
|
<title>Blacklisting Support</title>
|
|
|
|
|
</head>
|
|
|
|
|
|
2002-08-22 23:33:54 +02:00
|
|
|
|
<body>
|
2002-08-07 16:28:04 +02:00
|
|
|
|
|
2002-08-22 23:33:54 +02:00
|
|
|
|
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" bgcolor="#400169" height="90">
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="100%">
|
|
|
|
|
<h1 align="center"><font color="#FFFFFF">Blacklisting Support</font></h1>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
2002-08-07 16:28:04 +02:00
|
|
|
|
<p>Shorewall supports two different forms of blacklisting; static and dynamic.</p>
|
2002-08-22 23:33:54 +02:00
|
|
|
|
<h2>Static Blacklisting</h2>
|
2002-08-07 16:28:04 +02:00
|
|
|
|
<p>Shorewall
|
|
|
|
|
static blacklisting support has the following configuration parameters:</p>
|
2002-08-22 23:33:54 +02:00
|
|
|
|
<ul>
|
|
|
|
|
<li>You specify whether you want packets from blacklisted hosts dropped or
|
2002-08-07 16:28:04 +02:00
|
|
|
|
rejected using the <a href="Documentation.htm#BLDisposition">BLACKLIST_DISPOSITION</a>
|
2002-08-22 23:33:54 +02:00
|
|
|
|
setting in /etc/shorewall/shorewall.conf</li>
|
|
|
|
|
<li>You specify whether you want packets from blacklisted hosts logged and at
|
2002-08-07 16:28:04 +02:00
|
|
|
|
what syslog level using the <a href="Documentation.htm#BLLoglevel">BLACKLIST_LOGLEVEL</a>
|
2002-08-22 23:33:54 +02:00
|
|
|
|
setting in /etc/shorewall/shorewall.conf</li>
|
|
|
|
|
<li>You list the IP addresses/subnets that you wish to blacklist in <a href="Documentation.htm#Blacklist">/etc/shorewall/blacklist</a></li>
|
|
|
|
|
<li>You specify the interfaces whose incoming packets you want checked against
|
2002-08-07 16:28:04 +02:00
|
|
|
|
the blacklist using the "<a href="Documentation.htm#BLInterface">blacklist</a>"
|
2002-08-22 23:33:54 +02:00
|
|
|
|
option in /etc/shorewall/interfaces.</li>
|
|
|
|
|
<li>The black list is refreshed from /etc/shorewall/blacklist by the "<a href="Documentation.htm#Starting">shorewall
|
|
|
|
|
refresh</a>" command.</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<h2>Dynamic Blacklisting</h2>
|
2002-08-07 16:28:04 +02:00
|
|
|
|
<p>Dynamic blacklisting support was added in version 1.3.2. Dynamic blacklisting
|
|
|
|
|
doesn't use any configuration parameters but is rather controlled using
|
|
|
|
|
/sbin/shorewall commands:</p>
|
2002-08-22 23:33:54 +02:00
|
|
|
|
<ul>
|
|
|
|
|
<li>deny <i><ip address list> </i>- causes packets from the listed IP
|
|
|
|
|
addresses to be silently dropped by the firewall.</li>
|
|
|
|
|
<li>reject <i><ip address list> </i>- causes packets from the listed IP
|
|
|
|
|
addresses to be rejected by the firewall.</li>
|
|
|
|
|
<li>allow <i><ip address list> </i>- re-enables receipt of packets from hosts
|
|
|
|
|
previously blacklisted by a <i>deny</i> or <i>reject</i> command.</li>
|
|
|
|
|
<li>save - save the dynamic blacklisting configuration so that it will be
|
|
|
|
|
automatically restored the next time that the firewall is restarted.</li>
|
|
|
|
|
<li>show dynamic - displays the dynamic blacklisting configuration.</li>
|
|
|
|
|
</ul>
|
2002-08-07 16:28:04 +02:00
|
|
|
|
<p>Example 1:</p>
|
2002-08-22 23:33:54 +02:00
|
|
|
|
<pre> shorewall deny 192.0.2.124 192.0.2.125</pre>
|
2002-08-07 16:28:04 +02:00
|
|
|
|
<p> Drops packets from hosts 192.0.2.124 and 192.0.2.125</p>
|
|
|
|
|
<p>Example 2:</p>
|
2002-08-22 23:33:54 +02:00
|
|
|
|
<pre> shorewall allow 192.0.2.125</pre>
|
2002-08-07 16:28:04 +02:00
|
|
|
|
<p> Reenables access from 192.0.2.125.</p>
|
|
|
|
|
<p><font size="2">Last updated 6/16/2002 - <a href="support.htm">Tom
|
|
|
|
|
Eastep</a></font></p>
|
|
|
|
|
|
|
|
|
|
<p><font face="Trebuchet MS"><a href="copyright.htm"><font size="2">Copyright</font>
|
|
|
|
|
<EFBFBD> <font size="2">2002 Thomas M. Eastep.</font></a></font></p>
|
|
|
|
|
|
2002-08-22 23:33:54 +02:00
|
|
|
|
</body>
|
2002-08-07 16:28:04 +02:00
|
|
|
|
|
|
|
|
|
</html>
|