twvpaw
Last Updated: February 25, 2016
·
657
· pentago

Export IP's blocked with FreeBSD's PF

Exporting IP's blocked with PF for further processing (eg. Cloudflare Threat Control)

sudo tcpdump -n -e -tttt -r /var/log/pflog | cut -d ' ' -f9 | cut -d . -f1-4 | sort -u > blocked.txt