2002-09-16 19:13:10 +02:00
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2002-08-13 22:45:21 +02:00
|
|
|
|
<html>
|
|
|
|
|
<head>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
|
2002-09-16 19:13:10 +02:00
|
|
|
|
<meta http-equiv="Content-Language" content="en-us">
|
2002-11-09 19:06:34 +01:00
|
|
|
|
|
2002-09-16 19:13:10 +02:00
|
|
|
|
<meta http-equiv="Content-Type"
|
|
|
|
|
content="text/html; charset=windows-1252">
|
2002-11-09 19:06:34 +01:00
|
|
|
|
|
2002-09-16 19:13:10 +02:00
|
|
|
|
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
|
2002-11-09 19:06:34 +01:00
|
|
|
|
|
2002-09-16 19:13:10 +02:00
|
|
|
|
<meta name="ProgId" content="FrontPage.Editor.Document">
|
|
|
|
|
<title>Blacklisting Support</title>
|
2002-08-13 22:45:21 +02:00
|
|
|
|
</head>
|
2002-09-16 19:13:10 +02:00
|
|
|
|
<body>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
|
2002-09-16 19:13:10 +02:00
|
|
|
|
<table border="0" cellpadding="0" cellspacing="0"
|
|
|
|
|
style="border-collapse: collapse;" bordercolor="#111111" width="100%"
|
|
|
|
|
id="AutoNumber1" bgcolor="#400169" height="90">
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="100%">
|
2002-09-16 19:13:10 +02:00
|
|
|
|
<h1 align="center"><font color="#ffffff">Blacklisting Support</font></h1>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
</tbody>
|
2002-08-22 23:21:41 +02:00
|
|
|
|
</table>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
|
2002-08-13 22:45:21 +02:00
|
|
|
|
<p>Shorewall supports two different forms of blacklisting; static and dynamic.</p>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
|
2002-08-13 22:45:21 +02:00
|
|
|
|
<h2>Static Blacklisting</h2>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
|
|
|
|
|
<p>Shorewall static blacklisting support has the following configuration parameters:</p>
|
|
|
|
|
|
2002-08-13 22:45:21 +02:00
|
|
|
|
<ul>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<li>You specify whether you want packets from blacklisted hosts dropped
|
|
|
|
|
or rejected using the <a href="Documentation.htm#BLDisposition">BLACKLIST_DISPOSITION</a>
|
|
|
|
|
setting in /etc/shorewall/shorewall.conf</li>
|
|
|
|
|
<li>You specify whether you want packets from blacklisted hosts logged
|
2002-09-16 19:13:10 +02:00
|
|
|
|
and at what syslog level using the <a
|
2002-11-09 19:06:34 +01:00
|
|
|
|
href="Documentation.htm#BLLoglevel">BLACKLIST_LOGLEVEL</a> setting in
|
2002-09-16 19:13:10 +02:00
|
|
|
|
/etc/shorewall/shorewall.conf</li>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<li>You list the IP addresses/subnets that you wish to blacklist in <a
|
|
|
|
|
href="Documentation.htm#Blacklist">/etc/shorewall/blacklist.</a> Beginning
|
|
|
|
|
with Shorewall version 1.3.8, you may also specify PROTOCOL and Port numbers/Service
|
2002-09-16 19:13:10 +02:00
|
|
|
|
names in the blacklist file.<br>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
</li>
|
|
|
|
|
<li>You specify the interfaces whose incoming packets you want checked
|
2002-09-16 19:13:10 +02:00
|
|
|
|
against the blacklist using the "<a
|
|
|
|
|
href="Documentation.htm#Interfaces">blacklist</a>" option in /etc/shorewall/interfaces.</li>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<li>The black list is refreshed from /etc/shorewall/blacklist by the
|
|
|
|
|
"<a href="Documentation.htm#Starting">shorewall refresh</a>" command.</li>
|
|
|
|
|
|
2002-08-13 22:45:21 +02:00
|
|
|
|
</ul>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
|
2002-08-13 22:45:21 +02:00
|
|
|
|
<h2>Dynamic Blacklisting</h2>
|
2002-11-09 19:06:34 +01: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-13 22:45:21 +02:00
|
|
|
|
<ul>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<li>drop <i><ip address list> </i>- causes packets from the listed
|
2002-09-16 19:13:10 +02:00
|
|
|
|
IP addresses to be silently dropped by the firewall.</li>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<li>reject <i><ip address list> </i>- causes packets from the listed
|
2002-09-16 19:13:10 +02:00
|
|
|
|
IP addresses to be rejected by the firewall.</li>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<li>allow <i><ip address list> </i>- re-enables receipt of packets
|
2002-09-16 19:13:10 +02:00
|
|
|
|
from hosts previously blacklisted by a <i>deny</i> or <i>reject</i> command.</li>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<li>save - save the dynamic blacklisting configuration so that it will
|
2002-09-16 19:13:10 +02:00
|
|
|
|
be automatically restored the next time that the firewall is restarted.</li>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<li>show dynamic - displays the dynamic blacklisting configuration.</li>
|
|
|
|
|
|
2002-08-13 22:45:21 +02:00
|
|
|
|
</ul>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
|
2002-08-13 22:45:21 +02:00
|
|
|
|
<p>Example 1:</p>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
|
|
|
|
|
<pre> shorewall drop 192.0.2.124 192.0.2.125</pre>
|
|
|
|
|
|
2002-09-16 19:13:10 +02:00
|
|
|
|
<p><EFBFBD><EFBFBD><EFBFBD> Drops packets from hosts 192.0.2.124 and 192.0.2.125</p>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
|
2002-08-13 22:45:21 +02:00
|
|
|
|
<p>Example 2:</p>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
|
2002-08-13 22:45:21 +02:00
|
|
|
|
<pre> shorewall allow 192.0.2.125</pre>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
|
2002-09-16 19:13:10 +02:00
|
|
|
|
<p><EFBFBD><EFBFBD><EFBFBD> Reenables access from 192.0.2.125.</p>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
|
|
|
|
|
<p><font size="2">Last updated 10/7/2002 - <a href="support.htm">Tom Eastep</a></font></p>
|
|
|
|
|
|
|
|
|
|
<p><font face="Trebuchet MS"><a href="copyright.htm"><font size="2">Copyright</font>
|
2002-09-16 19:13:10 +02:00
|
|
|
|
<20> <font size="2">2002 Thomas M. Eastep.</font></a></font></p>
|
2002-11-09 19:06:34 +01:00
|
|
|
|
<br>
|
|
|
|
|
<br>
|
2002-08-13 22:45:21 +02:00
|
|
|
|
</body>
|
2002-09-16 19:13:10 +02:00
|
|
|
|
</html>
|