# pf-badhost_0.3 Upgrade instructions If you already have pf-badhost installed and would like to upgrade to version 0.3, run the commands below: # Update the Script: $ ftp https://www.geoghegan.ca/scripts/pf-badhost.sh # mv pf-badhost.sh /usr/local/bin/ # chown root:bin /usr/local/bin/pf-badhost.sh # chmod 644 /usr/local/bin/pf-badhost.sh # Update file permissions: # touch /etc/pf-badhost.txt # chown _pfbadhost /etc/pf-badhost.txt # chmod 600 /etc/pf-badhost.txt # Make sure /etc/doas.conf contains the following: # cat /etc/doas.conf permit nopass _pfbadhost cmd pfctl args -nf /etc/pf.conf permit nopass _pfbadhost cmd pfctl args -t pfbadhost -T replace -f /etc/pf-badhost.txt