From e5e22cf50d0fd7d6e8da2188c3e8235a6db75871 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Sat, 13 Aug 2005 08:31:19 +0000 Subject: [PATCH] Adjusted description and added logrotate config --- debian/control | 9 ++++++--- debian/logrotate | 9 +++++++++ debian/rules | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 debian/logrotate diff --git a/debian/control b/debian/control index 0663810c..8b351b4a 100644 --- a/debian/control +++ b/debian/control @@ -8,11 +8,14 @@ Standards-Version: 3.6.2 Package: fail2ban Architecture: all Depends: python, iptables -Description: bans IPs that cause multiple authentication errors for ssh/apache +Description: bans IPs that cause multiple authentication errors Monitors (in daemon mode) or just scans log files (e.g. /var/log/auth.log, /var/log/apache/access.log) and temporarily bans failure-prone - addresses by updating existing firewall rules. Currently, iptables, - ipfwadm and ipfw are supported. + addresses by updating existing firewall rules. Currently, by default, + supports ssh/apache but configuration can be easily extended for scanning + the other ASCII log files. Firewall rules are given in the config file, + thus it can be adopted to be used with a variety of firewalls (e.g. iptables, + ipfwadm). . Homepage: http://www.sourceforge.net/projects/fail2ban diff --git a/debian/logrotate b/debian/logrotate new file mode 100644 index 00000000..d9136c93 --- /dev/null +++ b/debian/logrotate @@ -0,0 +1,9 @@ +/var/log/fail2ban.log { + weekly + rotate 4 + compress + missingok + postrotate + /etc/init.d/fail2ban restart >/dev/null + endscript +} diff --git a/debian/rules b/debian/rules index 56a2547d..2374eb9d 100755 --- a/debian/rules +++ b/debian/rules @@ -80,7 +80,7 @@ binary-arch: build install copy-inits # dh_install # dh_installmenu # dh_installdebconf -# dh_installlogrotate + dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime