1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

Handle "error: maximum authentication attempts exceeded for ... from ..." log messages.

Approved by:	MAINTAINER timeout (8d)
This commit is contained in:
Max Khon 2017-08-25 21:08:52 +00:00
parent 3fc8d52895
commit 89e68661bd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=448741
2 changed files with 13 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= bruteforceblocker
PORTVERSION= 1.2.3
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= http://danger.rulez.sk/projects/bruteforceblocker/ \
LOCAL/pav

View File

@ -0,0 +1,12 @@
--- bruteforceblocker.pl.orig 2017-08-17 13:42:11.038416000 +0100
+++ bruteforceblocker.pl 2017-08-17 13:46:39.555246000 +0100
@@ -81,7 +81,8 @@
/.*Invalid user.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn})$/i ||
/.*Did not receive identification string from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn})$/i ||
/.*Bad protocol version identification .* from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn})$/i ||
- /.*User.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) not allowed because.*/i ) {
+ /.*User.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) not allowed because.*/i ||
+ /.*error: maximum authentication attempts exceeded for.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}).*/i) {
my $IP = $1;
if ($IP =~ /$work->{fqdn}/i) {