@PACKAGE@ Packages The various source and binary packages are available at http://www.five-ten-sg.com/@PACKAGE@/packages The most recent documentation is available at http://www.five-ten-sg.com/@PACKAGE@/ 2005-12-15 @PACKAGE@ 1 @PACKAGE@ @VERSION@ @PACKAGE@ a simple adaptive firewall Synopsis @PACKAGE@ Description @PACKAGE@ is a simple adaptive firewall. It maintains the INPUT chain of the iptables 1 firewall set based on syslog entries. These syslog entries are typically generated by your hardware firewall, but they could come from any source. Any syslog entry that contains a host name or ip address can be used as input to this package. The @PACKAGE@.conf 5 file specifies the syslog files to be monitored, and the regular expressions ( regex 7 ) to be applied to new lines in those files. Each regular expression needs an index to specify the matching substring that contains either an ip address or host name, and a bucket count which is added to the leaky bucket for that ip address when a matching line is read from that syslog file. Each ip address has an associated leaky bucket, which leaks one token per second. Once the bucket contains more than a configurable threshold number of tokens, that ip address is added to the INPUT chain with a DROP target. When the bucket is drained to zero, that ip address is removed from the INPUT chain. The discussion has focused on syslog files, but any ascii text file can be used, so long as some other process appends lines to that file, and those lines containing hostname or ip addresses can be matched with some regular expression. Considering syslog files in particular, these are normally rotated via logrotate. @PACKAGE@ properly detects and handles this case by closing the old file, and reopening the newly created file. Options -c Load the configuration file, print a cannonical form of the configuration on stdout, and exit. -d n Set the debug level to n. Usage @PACKAGE@ -d 2 Configuration The configuration file is documented in @PACKAGE@.conf 5 . Any change to the config file will cause it to be reloaded within three minutes. Copyright Copyright (C) 2005 by 510 Software Group <carl@five-ten-sg.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, please write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 2005-12-15 @PACKAGE@.conf 5 @PACKAGE@ @VERSION@ @PACKAGE@.conf configuration file for @PACKAGE@ Synopsis @PACKAGE@.conf Description The @PACKAGE@.conf configuration file is specified by this partial bnf description. Sample