From owner-svn-ports-all@freebsd.org Tue Feb 12 04:24:47 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6F77714D4BF0; Tue, 12 Feb 2019 04:24:47 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DFD8C6EE3D; Tue, 12 Feb 2019 04:24:46 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D2BDDAADF; Tue, 12 Feb 2019 04:24:46 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x1C4OkBt048282; Tue, 12 Feb 2019 04:24:46 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x1C4OkmK048280; Tue, 12 Feb 2019 04:24:46 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201902120424.x1C4OkmK048280@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Tue, 12 Feb 2019 04:24:46 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r492748 - in head/security/bruteforceblocker: . files X-SVN-Group: ports-head X-SVN-Commit-Author: pi X-SVN-Commit-Paths: in head/security/bruteforceblocker: . files X-SVN-Commit-Revision: 492748 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: DFD8C6EE3D X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.995,0]; NEURAL_HAM_SHORT(-0.96)[-0.956,0]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Feb 2019 04:24:47 -0000 Author: pi Date: Tue Feb 12 04:24:46 2019 New Revision: 492748 URL: https://svnweb.freebsd.org/changeset/ports/492748 Log: security/bruteforceblocker: update patterns - Update patterns to make them match with log messages from recent version of OpenSSH - Remove LICENSE=NONE PR: 234137 Submitted by: Yasuhiro KIMURA Approved by: danger (maintainer timeout) Added: head/security/bruteforceblocker/files/patch-bruteforceblocker.pl (contents, props changed) Modified: head/security/bruteforceblocker/Makefile Modified: head/security/bruteforceblocker/Makefile ============================================================================== --- head/security/bruteforceblocker/Makefile Tue Feb 12 01:58:38 2019 (r492747) +++ head/security/bruteforceblocker/Makefile Tue Feb 12 04:24:46 2019 (r492748) @@ -3,23 +3,23 @@ PORTNAME= bruteforceblocker PORTVERSION= 1.2.6 +PORTREVISION= 1 CATEGORIES= security MAINTAINER= danger@FreeBSD.org COMMENT= Checks for SSH bruteforce and blocks given IPs -LICENSE= NONE - RUN_DEPENDS= p5-Unix-Syslog>=0:sysutils/p5-Unix-Syslog \ p5-Sys-Hostname-Long>=0:sysutils/p5-Sys-Hostname-Long \ p5-libwww>=0:www/p5-libwww \ p5-Net-DNS>=0:dns/p5-Net-DNS +USES= perl5 shebangfix USE_GITHUB= yes GH_ACCOUNT= dgerzo -NO_BUILD= yes -USES= perl5 shebangfix USE_PERL5= run + +NO_BUILD= yes OPTIONS_DEFINE= DOCS Added: head/security/bruteforceblocker/files/patch-bruteforceblocker.pl ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/bruteforceblocker/files/patch-bruteforceblocker.pl Tue Feb 12 04:24:46 2019 (r492748) @@ -0,0 +1,22 @@ +--- bruteforceblocker.pl.orig 2018-12-18 11:17:19 UTC ++++ bruteforceblocker.pl +@@ -79,13 +79,13 @@ my $res = Net::DNS::Resolver->new; + while (<>) { + if (/.*Failed password.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/i || + /.*Failed keyboard.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/i || +- /.*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 || ++ /.*Invalid user.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/i || ++ /.*Did not receive identification string from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/i || ++ /.*Bad protocol version identification .* from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/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 || +- /.*error: PAM: authentication error for.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}).*/i || +- /.*fatal: Unable to negotiate with ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}).*/i) { ++ /.*error: maximum authentication attempts exceeded for.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/i || ++ /.*error: PAM: authentication error for.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/i || ++ /.*Unable to negotiate with ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) port.*/i) { + + my $IP = $1; + if ($IP =~ /$work->{fqdn}/i) {