From nobody Wed Dec 22 13:50:17 2021 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 406E818E60DB for ; Wed, 22 Dec 2021 13:50:18 +0000 (UTC) (envelope-from bugzilla-noreply@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JJvpf0WVyz4YVS for ; Wed, 22 Dec 2021 13:50:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E291D1E236 for ; Wed, 22 Dec 2021 13:50:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1BMDoHUA078040 for ; Wed, 22 Dec 2021 13:50:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BMDoHco078039 for ports-bugs@FreeBSD.org; Wed, 22 Dec 2021 13:50:17 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 260607] security/py-fail2ban regex not working in bsd-sshd filter Date: Wed, 22 Dec 2021 13:50:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: belot.nicolas@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640181018; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3MjUA7vFQZIzANQJOnTgl9W3Wr38vdtgnGC263pWWBw=; b=O8/iaRr5N3uhxEi+OjWUDGOhaAiTsRGYY01+iRsuRHLUkJrWWH3dP2LKL6p7ZhghFtST3Y rMnm5WX2T/8uuuoHhKm/6RbL8r3Ao5Lds4npIk3XYNTAR9djoN2OgYc8ieDrzRQkf1FZ8x a/Duk33Lv0/0rRPxFTTizFPCTGS3fCyBzHb7LbD084jTz1APcO67+vrt4uqYHG2EwwjStd bw4B0Q1mBSXRpiUXuo2FALVQ3J+DAFM+24/1W3VG3/jbLbxBPnvpj3wd0paiCkqjYprk2h F7XYcANXjGf3FLvDz83fDrtPtv9FdIUe+UdH/MAMm6i88ie7av0twY7NzIrcPQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640181018; a=rsa-sha256; cv=none; b=A9AQlcDINOTXj9P0yg3dziNYfJ6wJvjiso2twCsJNpDPxPpuT5eSeHrqRGxZ0w7N1BhNID xKepWwOGRTEGxk8ZlK3KUxgQLmjdajzfUlJZIvEAHGTIaVi9vmpRseaRuHhOQVEbFRLsrH OUTtKQh/FdKGaZbsDghUGoTJN1U8IiETcm9kmR9cvZtt+GR5ReEAzkb/k7BBNm6VWSKtmT v1Vd706K+8M66/OHNZgrDXsHdZOaShBl3SB4Ukv99vL9KTRCmHjV3i94H7Rmcq48YAkwtV SYucnvU6VrMoifZKe840bTrfmF83Ntv22BCxMUxdyrKhDex7U/NEG4EBRhlz/w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260607 Bug ID: 260607 Summary: security/py-fail2ban regex not working in bsd-sshd filter Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: belot.nicolas@gmail.com CC: theis@gmx.at Flags: maintainer-feedback?(theis@gmx.at) CC: theis@gmx.at Hello, The regex ^%(__prefix_line)sDid not receive identification string from $ will not match entry in /var/log/auth.log as the log entry contains tcp port number Ex : Did not receive identification string from 51.159.67.165 port 59677 we should add this regex in the filter :=20=20 ^%(__prefix_line)sDid not receive identification string from \s.*$ In the same spirit,=20 ^%(__prefix_line)sreverse mapping checking getaddrinfo for .* \[\] .* POSSIBLE BREAK-IN ATTEMPT!$ in my log i only see=20 ^%(__prefix_line)sreverse mapping checking getaddrinfo for .* \[\] failed\.$ We should add a regex accordingly And at last, in my opinion, hitting the preauth timeout is suspicious, i th= ink we should add a regex to match it ^%(__prefix_line)sConnection closed by port \d+ \[preauth\]$ Regards --=20 You are receiving this mail because: You are the assignee for the bug.=