View | Details | Raw Unified | Return to bug 234137
Collapse All | Expand All

(-)Makefile (-2 / +4 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	bruteforceblocker
4
PORTNAME=	bruteforceblocker
5
PORTVERSION=	1.2.6
5
PORTVERSION=	1.2.6
6
PORTREVISION=	1
6
CATEGORIES=	security
7
CATEGORIES=	security
7
8
8
MAINTAINER=	danger@FreeBSD.org
9
MAINTAINER=	danger@FreeBSD.org
Lines 15-26 Link Here
15
		p5-libwww>=0:www/p5-libwww \
16
		p5-libwww>=0:www/p5-libwww \
16
		p5-Net-DNS>=0:dns/p5-Net-DNS
17
		p5-Net-DNS>=0:dns/p5-Net-DNS
17
18
19
USES=		perl5 shebangfix
18
USE_GITHUB=	yes
20
USE_GITHUB=	yes
19
GH_ACCOUNT=	dgerzo
21
GH_ACCOUNT=	dgerzo
20
NO_BUILD=	yes
21
USES=		perl5 shebangfix
22
USE_PERL5=	run
22
USE_PERL5=	run
23
23
24
NO_BUILD=	yes
25
24
OPTIONS_DEFINE=	DOCS
26
OPTIONS_DEFINE=	DOCS
25
27
26
SUB_FILES=	pkg-message
28
SUB_FILES=	pkg-message
(-)files/patch-bruteforceblocker.pl (+22 lines)
Line 0 Link Here
1
--- bruteforceblocker.pl.orig	2018-12-18 11:17:19 UTC
2
+++ bruteforceblocker.pl
3
@@ -79,13 +79,13 @@ my $res   = Net::DNS::Resolver->new;
4
 while (<>) {
5
     if (/.*Failed password.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/i ||
6
 	/.*Failed keyboard.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/i ||
7
-	/.*Invalid user.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn})$/i ||
8
-	/.*Did not receive identification string from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn})$/i ||
9
-	/.*Bad protocol version identification .* from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn})$/i ||
10
+	/.*Invalid user.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/i ||
11
+	/.*Did not receive identification string from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/i ||
12
+	/.*Bad protocol version identification .* from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/i ||
13
 	/.*User.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) not allowed because.*/i ||
14
-	/.*error: maximum authentication attempts exceeded for.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}).*/i ||
15
-	/.*error: PAM: authentication error for.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}).*/i ||
16
-	/.*fatal: Unable to negotiate with ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}).*/i) {
17
+	/.*error: maximum authentication attempts exceeded for.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/i ||
18
+	/.*error: PAM: authentication error for.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/i ||
19
+	/.*Unable to negotiate with ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/i) {
20
 
21
 	my $IP = $1;
22
 	if ($IP =~ /$work->{fqdn}/i) {

Return to bug 234137