Two pf questions

Ralf Mardorf ralf.mardorf at rocketmail.com
Tue Mar 28 09:23:20 UTC 2017


cp /etc/pf/bruteforce /tmp/foobar.txt
pfctl -t bruteforce -T show >> /tmp/foobar.txt
sort -u /tmp/foobar.txt > /etc/pf/bruteforce  

^
^

>If so, the above example with "sort -u" still might be good. Perhaps
            ^^^^^^^^^^^^^
            ^^^^^^^^^^^^^ the above with the cp to a backup file

>in addition within a loop until the exit status $? of the last command
>is 0, to ensure that /etc/pf/bruteforcen doesn't get lost, if something
>should went wrong.


More information about the freebsd-questions mailing list