Date: Sun, 04 Nov 2018 20:44:32 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 224415] 460.status-mail-rejects and 520.pfdenied appear broken Message-ID: <bug-224415-227-DBXtoenuL2@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-224415-227@https.bugs.freebsd.org/bugzilla/> References: <bug-224415-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224415 sigsys@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sigsys@gmail.com --- Comment #2 from sigsys@gmail.com --- I noticed the problem with 520.pfdenied not reporting denied packets anymor= e as well. Seems like the problem appeared when support for blacklistd anchors w= as added. Here's a fix: diff --git a/usr.sbin/periodic/etc/security/520.pfdenied b/usr.sbin/periodic/etc/security/520.pfdenied index e3021ce857c..69d9df78436 100755 --- a/usr.sbin/periodic/etc/security/520.pfdenied +++ b/usr.sbin/periodic/etc/security/520.pfdenied @@ -46,7 +46,7 @@ then TMP=3D`mktemp -t security` for _a in "" $(pfctl -a "blacklistd" -sA 2>/dev/null) do - pfctl -a ${_a} -sr -v -z 2>/dev/null | \ + pfctl -a "${_a}" -sr -v -z 2>/dev/null | \ nawk '{if (/^block/) {buf=3D$0; getline; gsub(" +"," ",$0);= if ($5 > 0) print buf$0;} }' >> ${TMP} done if [ -s ${TMP} ]; then --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224415-227-DBXtoenuL2>
