Last Updated: February 25, 2016
·
1.105K
· 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

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

A network firewall allows or blocks connections. It cannot tell a legitimate payment script from one that was swapped to copy card data in the browser.

Security insights from Cside