#!/usr/local/bin/bash # make the lists.. trustedclients=`/sbin/pfctl -t trustedclients -T show| awk '{print $1}'` bruteforcedefault=`/sbin/pfctl -t bruteforcedefault -T show| awk '{print $1}'` bruteforcetight=`/sbin/pfctl -t bruteforcetight -T show| awk '{print $1}'` bruteforcetightest=`/sbin/pfctl -t bruteforcetightest -T show| awk '{print $1}'` for pubickeyedclient in $trustedclients; do echo $bruteforcedefault | grep $pubickeyedclient >/dev/null && /sbin/pfctl -t bruteforcedefault -T delete $pubickeyedclient && echo "deleted $pubickeyedclient from bruteforcedefault" echo $bruteforcetight | grep $pubickeyedclient >/dev/null && /sbin/pfctl -t bruteforcetight -T delete $pubickeyedclient && echo "deleted $pubickeyedclient from bruteforcetight" echo $bruteforcetightest | grep $pubickeyedclient >/dev/null && /sbin/pfctl -t bruteforcetightest -T delete $pubickeyedclient && echo "deleted $pubickeyedclient from bruteforcetightest" done exit 0