diff --git a/ChangeLog b/ChangeLog index 1b6b6138..42e5b41d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -31,6 +31,8 @@ ver. 0.8.4 (2008/??/??) - stable #2310410. - Added NetBSD ipfilter (ipf command) action. Thanks to Ed Ravin. Tracker #2484115. +- Added cyrus-imap and sieve filters. Thanks to Jan Wagner. + Debian bug #513953. ver. 0.8.3 (2008/07/17) - stable ---------- diff --git a/MANIFEST b/MANIFEST index 00040912..7d8a722d 100644 --- a/MANIFEST +++ b/MANIFEST @@ -64,6 +64,7 @@ config/filter.d/apache-noscript.conf config/filter.d/apache-overflows.conf config/filter.d/courierlogin.conf config/filter.d/couriersmtp.conf +config/filter.d/cyrus-imap.conf config/filter.d/exim.conf config/filter.d/gssftpd.conf config/filter.d/named-refused.conf @@ -73,6 +74,7 @@ config/filter.d/pure-ftpd.conf config/filter.d/qmail.conf config/filter.d/pam-generic.conf config/filter.d/sasl.conf +config/filter.d/sieve.conf config/filter.d/sshd.conf config/filter.d/sshd-ddos.conf config/filter.d/vsftpd.conf diff --git a/config/filter.d/cyrus-imap.conf b/config/filter.d/cyrus-imap.conf new file mode 100644 index 00000000..07669113 --- /dev/null +++ b/config/filter.d/cyrus-imap.conf @@ -0,0 +1,26 @@ +# Fail2Ban configuration file +# +# Author: Jan Wagner +# +# $Revision$ +# + +[Definition] + +# Option: failregex +# Notes.: regex to match the password failures messages in the logfile. The +# host must be matched by a group named "host". The tag "" can +# be used for standard IP/hostname matching and is only an alias for +# (?:::f{4,6}:)?(?P\S+) +# Values: TEXT +# +failregex = : badlogin: .*\[\] plaintext .*SASL\(-13\): authentication failure: checkpass failed$ + : badlogin: .*\[\] LOGIN \[SASL\(-13\): authentication failure: checkpass failed\]$ + : badlogin: .*\[\] (?:CRAM-MD5|NTLM) \[SASL\(-13\): authentication failure: incorrect (?:digest|NTLM) response\]$ + : badlogin: .*\[\] DIGEST-MD5 \[SASL\(-13\): authentication failure: client response doesn't match what we generated\]$ + +# Option: ignoreregex +# Notes.: regex to ignore. If this regex matches, the line is ignored. +# Values: TEXT +# +ignoreregex = diff --git a/config/filter.d/sieve.conf b/config/filter.d/sieve.conf new file mode 100644 index 00000000..00e9daf1 --- /dev/null +++ b/config/filter.d/sieve.conf @@ -0,0 +1,22 @@ +# Fail2Ban configuration file +# +# Author: Jan Wagner +# +# $Revision$ +# + +[Definition] + +# Option: failregex +# Notes.: regex to match the password failures messages in the logfile. The +# host must be matched by a group named "host". The tag "" can +# be used for standard IP/hostname matching. +# Values: TEXT +# +failregex = : badlogin: .*\[\] (?:LOGIN|PLAIN|(?:CRAM|DIGEST)-MD5) authentication failure$ + +# Option: ignoreregex +# Notes.: regex to ignore. If this regex matches, the line is ignored. +# Values: TEXT +# +ignoreregex =