From d3de26c3d0c25bcb95fca949b8a0900a5ae2c3c9 Mon Sep 17 00:00:00 2001 From: Kurt Lidl Date: Tue, 4 Oct 2016 23:12:35 +0000 Subject: [PATCH] Make 502.pfdenied find blacklistd/* filter names dynamically This change is needed to make the 520.pfdenied script find the new blacklistd/* anchor points for reporting blocked traffic. Reviewed by: kp MFC after: 1 week Sponsored by: The FreeBSD Foundation --- etc/periodic/security/520.pfdenied | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/etc/periodic/security/520.pfdenied b/etc/periodic/security/520.pfdenied index 850c10d5f3a..e3021ce857c 100755 --- a/etc/periodic/security/520.pfdenied +++ b/etc/periodic/security/520.pfdenied @@ -44,8 +44,7 @@ rc=0 if check_yesno_period security_status_pfdenied_enable then TMP=`mktemp -t security` - touch ${TMP} - for _a in "" blacklistd + for _a in "" $(pfctl -a "blacklistd" -sA 2>/dev/null) do pfctl -a ${_a} -sr -v -z 2>/dev/null | \ nawk '{if (/^block/) {buf=$0; getline; gsub(" +"," ",$0); if ($5 > 0) print buf$0;} }' >> ${TMP}