From 9e2430a80cf417a514a7e41cb045506e1bbabcca Mon Sep 17 00:00:00 2001 From: Cyril Jaquier Date: Mon, 25 Jun 2007 21:59:38 +0000 Subject: [PATCH] - Improved regular expressions. Thanks to Yaroslav Halchenko git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@593 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- CHANGELOG | 1 + config/filter.d/sshd-ddos.conf | 2 +- config/filter.d/vsftpd.conf | 2 +- config/filter.d/wuftpd.conf | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index ff01e993..a547cb5d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -13,6 +13,7 @@ ver. 0.9.0 (2007/??/??) - alpha - Made interactive mode optional in fail2ban-client - Fixed vulnerability in sshd.conf. Thanks to Daniel B. Cid - Expand in ignoreregex. Thanks to Yaroslav Halchenko +- Improved regular expressions. Thanks to Yaroslav Halchenko ver. 0.8.0 (2007/05/03) - stable ---------- diff --git a/config/filter.d/sshd-ddos.conf b/config/filter.d/sshd-ddos.conf index 2a907e88..9720ab4a 100644 --- a/config/filter.d/sshd-ddos.conf +++ b/config/filter.d/sshd-ddos.conf @@ -14,7 +14,7 @@ # (?:::f{4,6}:)?(?P\S+) # Values: TEXT # -failregex = sshd\[\S*\]: Did not receive identification string from +failregex = sshd(?:\[\d+\])?: Did not receive identification string from $ # Option: ignoreregex # Notes.: regex to ignore. If this regex matches, the line is ignored. diff --git a/config/filter.d/vsftpd.conf b/config/filter.d/vsftpd.conf index 34e3da92..3c4bb11b 100644 --- a/config/filter.d/vsftpd.conf +++ b/config/filter.d/vsftpd.conf @@ -14,7 +14,7 @@ # (?:::f{4,6}:)?(?P\S+) # Values: TEXT # -failregex = vsftpd: .* authentication failure; .* rhost=$ +failregex = vsftpd(?:\[\d+\])?: .* authentication failure; .* rhost=$ \[.+\] FAIL LOGIN: Client ""$ # Option: ignoreregex diff --git a/config/filter.d/wuftpd.conf b/config/filter.d/wuftpd.conf index e7981e1e..2d08022d 100644 --- a/config/filter.d/wuftpd.conf +++ b/config/filter.d/wuftpd.conf @@ -2,7 +2,7 @@ # # Author: Yaroslav Halchenko # -# $Revision: $ +# $Revision$ # [Definition] @@ -11,4 +11,4 @@ # Notes.: regex to match the password failures messages in the logfile. # Values: TEXT # -failregex = wu-ftpd\[\d+\]:\s+\(pam_unix\)\s+authentication failure.* rhost= +failregex = wu-ftpd(?:\[\d+\])?:\s+\(pam_unix\)\s+authentication failure.* rhost=$