From owner-svn-ports-head@freebsd.org Fri Mar 27 15:45:33 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EEA65279373; Fri, 27 Mar 2020 15:45:33 +0000 (UTC) (envelope-from madpilot@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 48pmQg3Vbnz4R3D; Fri, 27 Mar 2020 15:45:31 +0000 (UTC) (envelope-from madpilot@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 D37BF2357D; Fri, 27 Mar 2020 15:29:21 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 02RFTLEN002326; Fri, 27 Mar 2020 15:29:21 GMT (envelope-from madpilot@FreeBSD.org) Received: (from madpilot@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 02RFTLYH002324; Fri, 27 Mar 2020 15:29:21 GMT (envelope-from madpilot@FreeBSD.org) Message-Id: <202003271529.02RFTLYH002324@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: madpilot set sender to madpilot@FreeBSD.org using -f From: Guido Falsi Date: Fri, 27 Mar 2020 15:29:21 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r529264 - in head/security/py-fail2ban: . files X-SVN-Group: ports-head X-SVN-Commit-Author: madpilot X-SVN-Commit-Paths: in head/security/py-fail2ban: . files X-SVN-Commit-Revision: 529264 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2020 15:45:35 -0000 Author: madpilot Date: Fri Mar 27 15:29:20 2020 New Revision: 529264 URL: https://svnweb.freebsd.org/changeset/ports/529264 Log: Add new regexp to match invalid users to bsd-ssh filter. I have observed a regression where the old expression was not working. Looks like the regression was caused by the migration to python 3. As far as I can see the quarterly branch is not affected. PR: 245097 Approved by: portmgr (blanket: run-time bugfix) Modified: head/security/py-fail2ban/Makefile head/security/py-fail2ban/files/patch-config_filter.d_bsd-sshd.conf Modified: head/security/py-fail2ban/Makefile ============================================================================== --- head/security/py-fail2ban/Makefile Fri Mar 27 15:28:45 2020 (r529263) +++ head/security/py-fail2ban/Makefile Fri Mar 27 15:29:20 2020 (r529264) @@ -2,6 +2,7 @@ PORTNAME= fail2ban PORTVERSION= 0.11.1 +PORTREVISION= 1 CATEGORIES= security python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} Modified: head/security/py-fail2ban/files/patch-config_filter.d_bsd-sshd.conf ============================================================================== --- head/security/py-fail2ban/files/patch-config_filter.d_bsd-sshd.conf Fri Mar 27 15:28:45 2020 (r529263) +++ head/security/py-fail2ban/files/patch-config_filter.d_bsd-sshd.conf Fri Mar 27 15:29:20 2020 (r529264) @@ -1,6 +1,6 @@ ---- config/filter.d/bsd-sshd.conf.orig 2015-11-03 04:11:30 UTC +--- config/filter.d/bsd-sshd.conf.orig 2020-03-27 11:15:56 UTC +++ config/filter.d/bsd-sshd.conf -@@ -0,0 +1,40 @@ +@@ -0,0 +1,41 @@ +# Fail2Ban configuration file +# +# Author: Cyril Jaquier @@ -31,6 +31,7 @@ + ^%(__prefix_line)sFailed [-/\w]+ for .* from (?: port \d*)?(?: ssh\d*)?$ + ^%(__prefix_line)sROOT LOGIN REFUSED.* FROM \s*$ + ^%(__prefix_line)s[iI](?:llegal|nvalid) user .* from \s*$ ++ ^%(__prefix_line)s[iI](?:llegal|nvalid) user .* from port \d*$ + ^%(__prefix_line)sUser \S+ from not allowed because not listed in AllowUsers$ + ^%(__prefix_line)sauthentication failure; logname=\S* uid=\S* euid=\S* tty=\S* ruser=\S* rhost=(?:\s+user=.*)?\s*$ + ^%(__prefix_line)srefused connect from \S+ \(\)\s*$