2006-11-15 17:26:14 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<refentry>
|
|
|
|
<refmeta>
|
2006-11-16 01:16:15 +01:00
|
|
|
<refentrytitle>shorewall-blacklist</refentrytitle>
|
2006-11-15 17:26:14 +01:00
|
|
|
|
|
|
|
<manvolnum>5</manvolnum>
|
|
|
|
</refmeta>
|
|
|
|
|
|
|
|
<refnamediv>
|
2006-11-16 01:16:15 +01:00
|
|
|
<refname>blacklist</refname>
|
2006-11-15 17:26:14 +01:00
|
|
|
|
2006-11-16 01:16:15 +01:00
|
|
|
<refpurpose>Shorewall Blacklist file</refpurpose>
|
2006-11-15 17:26:14 +01:00
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsynopsisdiv>
|
|
|
|
<cmdsynopsis>
|
2006-11-16 01:16:15 +01:00
|
|
|
<command>/etc/shorewall/blacklist</command>
|
2006-11-15 17:26:14 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
</refsynopsisdiv>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
|
2006-11-16 01:16:15 +01:00
|
|
|
<para>The blacklist file is used to perform static blacklisting. You can
|
|
|
|
blacklist by source address (IP or MAC), or by application. </para>
|
|
|
|
|
2006-11-15 17:26:14 +01:00
|
|
|
<para>The columns in the file are as follows.</para>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
2006-11-16 01:16:15 +01:00
|
|
|
<term><emphasis role="bold">ADDRESS/SUBNET</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Host address, network address, MAC address, IP address range
|
|
|
|
(if your kernel and iptables contain iprange match support) or ipset
|
|
|
|
name prefaced by "+" (i your kernel supports ipset match).</para>
|
|
|
|
|
|
|
|
<para>MAC addresses must be prefixed with "~" and use "-" as a
|
|
|
|
separator.</para>
|
|
|
|
|
|
|
|
<para>Example: ~00-A0-C9-15-39-78</para>
|
|
|
|
|
|
|
|
<para>A dash ("-") in this column means that any source address will
|
|
|
|
match. This is useful if you want to blacklist a particular
|
|
|
|
application.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">PROTOCOL</emphasis> (Optional)</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>If specified, must be a protocol number or a protocol name
|
|
|
|
from protocols(5).</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">PORTS</emphasis> (Optional)</term>
|
2006-11-15 17:26:14 +01:00
|
|
|
|
|
|
|
<listitem>
|
2006-11-16 01:16:15 +01:00
|
|
|
<para>May only be specified if the protocol is TCP (6) or UDP (17).
|
|
|
|
A comma-separated list of destination port numbers or service names
|
|
|
|
from services(5).</para>
|
2006-11-15 17:26:14 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2006-11-16 01:16:15 +01:00
|
|
|
|
|
|
|
<para>When a packet arrives on an interface that has the <emphasis
|
|
|
|
role="bold">blacklist</emphasis> option specified in
|
|
|
|
shorewall-interfaces(5), its source IP address and MAC address is checked
|
|
|
|
against this file and disposed of according to the <emphasis
|
|
|
|
role="bold">BLACKLIST_DISPOSITION</emphasis> and <emphasis
|
|
|
|
role="bold">BLACKLIST_LOGLEVEL</emphasis> variables in shorewall.conf(5).
|
|
|
|
If <emphasis role="bold">PROTOCOL</emphasis> or <emphasis
|
|
|
|
role="bold">PROTOCOL</emphasis> and <emphasis role="bold">PORTS</emphasis>
|
|
|
|
are supplied, only packets matching the protocol (and one of the ports if
|
|
|
|
<emphasis role="bold">PORTS</emphasis> supplied) are blocked.</para>
|
2006-11-15 17:26:14 +01:00
|
|
|
</refsect1>
|
|
|
|
|
2006-11-15 19:15:40 +01:00
|
|
|
<refsect1>
|
|
|
|
<title>Example</title>
|
|
|
|
|
2006-11-16 01:16:15 +01:00
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term>Example 1:</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>To block DNS queries from address 192.0.2.126:</para>
|
|
|
|
|
|
|
|
<programlisting> #ADDRESS/SUBNET PROTOCOL PORT
|
|
|
|
192.0.2.126 udp 53</programlisting>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>Example 2:</term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>To block some of the nuisance applicataion:</para>
|
|
|
|
|
|
|
|
<programlisting> #ADDRESS/SUBNET PROTOCOL PORT
|
|
|
|
- udp 1024:1033,1434
|
|
|
|
- tcp 57,1433,1434,2401,2745,3127,3306,3410,4899,5554,6101,8081,9898</programlisting>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2006-11-15 19:15:40 +01:00
|
|
|
</refsect1>
|
|
|
|
|
2006-11-15 17:26:14 +01:00
|
|
|
<refsect1>
|
|
|
|
<title>FILES</title>
|
|
|
|
|
2006-11-16 01:16:15 +01:00
|
|
|
<para>/etc/shorewall/blacklist</para>
|
2006-11-15 17:26:14 +01:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>See ALSO</title>
|
|
|
|
|
|
|
|
<para>shorewall(8), shorewall-accounting(5), shorewall-actions(5),
|
2006-11-16 01:16:15 +01:00
|
|
|
shorewall-hosts(5), shorewall-interfaces(5), shorewall-ipsec(5),
|
|
|
|
shorewall-maclist(5), shorewall-masq(5), shorewall-nat(5),
|
|
|
|
shorewall-netmap(5), shorewall-params(5), shorewall-policy(5),
|
|
|
|
shorewall-providers(5), shorewall-proxyarp(5), shorewall-route_routes(5),
|
|
|
|
shorewall-routestopped(5), shorewall-rules(5), shorewall.conf(5),
|
|
|
|
shorewall-tcclasses(5), shorewall-tcdevices(5), shorewall-tcrules(5),
|
|
|
|
shorewall-tos(5), shorewall-tunnels(5), shorewall-zones(5)</para>
|
2006-11-15 17:26:14 +01:00
|
|
|
</refsect1>
|
|
|
|
</refentry>
|