Two pf questions

Ralf Mardorf ralf.mardorf at
Mon Mar 27 15:23:14 UTC 2017

On Mon, 27 Mar 2017 17:09:41 +0200, Ralf Mardorf wrote:
>On Mon, 27 Mar 2017 10:37:49 -0400, David Mehler wrote:
>>pfctl -t bruteforce -T show >> /etc/pf/bruteforce
>>the problem is that I'm getting duplic addresses. The table has
>>fifteen addresses in memory but 75 in the table there's no unique
>>sorting, any ideas on how? I only want unique IP's in the on disk
>>table to avoid redundant addresses  
>cp /etc/pf/bruteforce /tmp/foobar.txt
>pfctl -t bruteforce -T show >> /tmp/foobar.txt
>sort -u /tmp/foobar.txt > /etc/pf/bruteforce

PS: I don't know how your tools work, so perhaps you only need to pipe
the "new", assuming the tools shouldn't provide their own options to do
the same ;).

pfctl -t bruteforce -T show | sort -u >> /etc/pf/bruteforce

More information about the freebsd-questions mailing list