From a889aa17020d1fde473bde5844667caed09d3bca Mon Sep 17 00:00:00 2001 From: lostcontrol Date: Mon, 13 Aug 2007 21:39:26 +0000 Subject: [PATCH] - Improved regular expressions git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@613 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- config/filter.d/sshd.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/filter.d/sshd.conf b/config/filter.d/sshd.conf index 316af802..1a601bd6 100644 --- a/config/filter.d/sshd.conf +++ b/config/filter.d/sshd.conf @@ -15,11 +15,11 @@ # Values: TEXT # failregex = (?:error: PAM: )?Authentication failure for .* from \s*$ - Failed [-/\w]+ for .* from (?: port \d*)?(?: ssh\d*)?$ + Failed [-/\w]+ for .* from (?: port \d*)?(?: ssh\d*)?\s*$ ROOT LOGIN REFUSED.* FROM \s*$ [iI](?:llegal|nvalid) user .* from \s*$ - User \S+ from not allowed because not listed in AllowUsers$ - User .+ from not allowed because none of user's groups are listed in AllowGroups$ + User .+ from not allowed because not listed in AllowUsers\s*$ + User .+ from not allowed because none of user's groups are listed in AllowGroups\s*$ # Option: ignoreregex # Notes.: regex to ignore. If this regex matches, the line is ignored.