14 if [ -f "/etc/$f.conf" ]; then
21 echo "$0: Unsupported packet filter" 1>&2
37 if [ "$5" = 128 ]; then
47 /sbin/npfctl rule "$2" add block in final $proto from \
48 "$addr/$mask" to any $port
51 # insert $ip/$mask into per-protocol anchored table
52 /sbin/pfctl -a "$2" -t "port$6" -T add "$addr/$mask"
53 echo "block in quick $proto from <port$6> to any $port" | \
54 /sbin/pfctl -a "$2" -f -
61 /sbin/npfctl rule "$2" rem-id "$7"
64 /sbin/pfctl -a "$2" -t "port$6" -T delete "$addr/$mask"
71 /sbin/npfctl rule "$2" flush
74 /sbin/pfctl -a "$2" -t "port$6" -T flush
79 echo "$0: Unknown command '$1'" 1>&2