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