diff options
author | Jose Luis Duran <jlduran@gmail.com> | 2022-10-12 19:17:51 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2022-10-13 12:25:32 +0000 |
commit | 1c14656dad0c8f6457b2be3a09939c399c98f55d (patch) | |
tree | 7ac466ab221da1cfbbd50fe674813a0a919e9cb2 /contrib | |
parent | 226e41467ee15c7aba33d59ee7b512b984b182e7 (diff) | |
download | src-1c14656dad0c8f6457b2be3a09939c399c98f55d.tar.gz src-1c14656dad0c8f6457b2be3a09939c399c98f55d.zip |
blacklistd: Reduce diff with upstream
No functional change intended.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/blacklist/libexec/blacklistd-helper | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/blacklist/libexec/blacklistd-helper b/contrib/blacklist/libexec/blacklistd-helper index 1af320d426b0..f92eab8b29bd 100644 --- a/contrib/blacklist/libexec/blacklistd-helper +++ b/contrib/blacklist/libexec/blacklistd-helper @@ -81,7 +81,7 @@ add) /sbin/pfctl -a "$2/$6" -f - # insert $ip/$mask into per-protocol/port anchored table /sbin/pfctl -qa "$2/$6" -t "port$6" -T add "$addr/$mask" && \ - /sbin/pfctl -q -k $addr && echo OK + /sbin/pfctl -qk "$addr" && echo OK ;; esac ;; @@ -119,8 +119,7 @@ flush) ;; pf) # dynamically determine which anchors exist - anchors=$(/sbin/pfctl -a $2 -s Anchors) - for anchor in $anchors; do + for anchor in $(/sbin/pfctl -a "$2" -s Anchors); do /sbin/pfctl -a $anchor -t "port${anchor##*/}" -T flush /sbin/pfctl -a $anchor -F rules done |