From 27b0bdfd2299c7488fc05060da4ed73cc801618a Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 25 Jan 2006 14:58:52 +0000 Subject: [PATCH] added awstats.pl capturer --- config/fail2ban.conf.default | 38 ++++++++++++++++++++++++++++++++++++ debian/changelog | 9 +++++++++ 2 files changed, 47 insertions(+) diff --git a/config/fail2ban.conf.default b/config/fail2ban.conf.default index 19093717..c510fb44 100644 --- a/config/fail2ban.conf.default +++ b/config/fail2ban.conf.default @@ -282,6 +282,44 @@ timepattern = %%a %%b %%d %%H:%%M:%%S %%Y # failregex = [[]client (?P\S*)[]] user .*(?:: authentication failure|not found) +[ApacheAttacks] +# Option: enabled +# Notes.: enable monitoring for this section. +# Values: [true | false] Default: false +# +enabled = false + +# Option: port +# Notes.: specifies port to monitor +# Values: [ NUM | STRING ] Default: +# +port = http + +# Option: logfile +# Notes.: logfile to monitor. +# Values: FILE Default: /var/log/apache/access.log +# +logfile = /var/log/apache/access.log + +# Option: timeregex +# Notes.: regex to match timestamp in Apache logfile. +# Values: [Wed Jan 05 15:08:01 2005] +# Default: \S{3} \S{3} \d{2} \d{2}:\d{2}:\d{2} \d{4} +# +timeregex = \S{3} \S{3} \d{2} \d{2}:\d{2}:\d{2} \d{4} + +# Option: timepattern +# Notes.: format used in "timeregex" fields definition. Note that '%' must be +# escaped with '%' (see http://rgruet.free.fr/PQR2.3.html#timeModule) +# Values: TEXT Default: %%a %%b %%d %%H:%%M:%%S %%Y +# +timepattern = %%a %%b %%d %%H:%%M:%%S %%Y + +# Option: failregex +# Notes.: regex to match the password failure messages in the logfile. +# Values: TEXT Default: [[]client (?P\S*)[]] user .*(?:: authentication failure|not found) +# +failregex = ^(?P\S*) -.*"GET .*awstats\.pl\?configdir=\|echo.*404 [SSH] # Option: enabled diff --git a/debian/changelog b/debian/changelog index e488d9d1..f2528b80 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +fail2ban (0.6.0-3.1) unstable; urgency=low + + * Added section ApacheAttacks to specify some common patterns of attacks on + a webserver (awstats.pl as a try). This section stays split from Apache + since it is of different nature and might be not appropriate for some + users + + -- Yaroslav Halchenko Mon, 16 Jan 2006 04:05:19 -0500 + fail2ban (0.6.0-3) unstable; urgency=low * ignoreip is now empty by default (closes: #347766)