Shorewall Blacklisting Support

Shorewall supports two different forms of blacklisting; static and dynamic. Beginning with Shorewall version 1.4.8, the BLACKLISTNEWONLY option in /etc/shorewall/shorewall.conf controls the degree of blacklist filtering:

  1. BLACKLISTNEWONLY=No --  All incoming packets are checked against the blacklist. New blacklist entries can be used to terminate existing connections. Versions of Shorewall prior to 1.4.8 behave in this manner.
  2. BLACKLISTNEWONLY=Yes -- The blacklists are only consulted for new connection requests. Blacklists may not be used to terminate existing connections.
Only the source address is checked against the blacklists.

Static Blacklisting

Shorewall static blacklisting support has the following configuration parameters:

Dynamic Blacklisting

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:

Dynamic blacklisting is not dependent on the "blacklist" option in /etc/shorewall/interfaces.

Example 1:

     shorewall drop 192.0.2.124 192.0.2.125

    Drops packets from hosts 192.0.2.124 and 192.0.2.125

Example 2:

     shorewall allow 192.0.2.125

    Reenables access from 192.0.2.125.

Last updated 11/14/2003 - Tom Eastep

Copyright © 2002, 2003 Thomas M. Eastep.