aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2014-10-16 04:28:48 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2014-10-16 04:28:48 +0800
commitf59c178b740997c11cb8819ff2c16a089d1511d1 (patch)
tree0a5de9da63907fd6bd46632870e03ced327da6af /security
parentdcbe0793484a871babb396b81930ebac306a6c06 (diff)
downloadfreebsd-ports-gnome-f59c178b740997c11cb8819ff2c16a089d1511d1.tar.gz
freebsd-ports-gnome-f59c178b740997c11cb8819ff2c16a089d1511d1.tar.zst
freebsd-ports-gnome-f59c178b740997c11cb8819ff2c16a089d1511d1.zip
- Fix regex to match all sshd auth errors
PR: 194382 Submitted by: ronald-lists@klop.ws MFH: 2014Q4
Diffstat (limited to 'security')
-rw-r--r--security/bruteblock/Makefile2
-rw-r--r--security/bruteblock/files/patch-etc-ssh.conf2
2 files changed, 2 insertions, 2 deletions
diff --git a/security/bruteblock/Makefile b/security/bruteblock/Makefile
index 30107887eb62..3d9829e28c94 100644
--- a/security/bruteblock/Makefile
+++ b/security/bruteblock/Makefile
@@ -3,7 +3,7 @@
PORTNAME= bruteblock
PORTVERSION= 0.0.5
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= security
MASTER_SITES= http://samm.kiev.ua/bruteblock/ \
http://mirror.amdmi3.ru/distfiles/
diff --git a/security/bruteblock/files/patch-etc-ssh.conf b/security/bruteblock/files/patch-etc-ssh.conf
index fd9be082ce49..a701b837afb8 100644
--- a/security/bruteblock/files/patch-etc-ssh.conf
+++ b/security/bruteblock/files/patch-etc-ssh.conf
@@ -15,7 +15,7 @@
+#
+regexp = sshd.*(?:Illegal|Invalid) user \S+ from (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
+regexp1 = sshd.*Failed \S+ for (?:(?:illegal|invalid) user )?\S+ from (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
-+regexp2 = sshd.*error: PAM: authentication error for (?:(?:illegal|invalid) user )\S+ from (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
++regexp2 = sshd.*error: PAM: authentication error for (?:(?:illegal|invalid) user )?\S+ from (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
+regexp3 = sshd.*Did not receive identification string from (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
# Number of failed login attempts within time before we block