D
Deleted member 2077
Guest
I recently switched to pf from ipfw and trying to figure out how to block a list of sites from a file? I tried google, but must be using the wrong keywords.
In ipfw I just had a list of sites: /etc/badguys.txt and had a simple bash script to loop though and do this for each line:
Is there a way to do this with pf?
The list changes a lot, so don't want to hardcode it in /etc/pf.conf
In ipfw I just had a list of sites: /etc/badguys.txt and had a simple bash script to loop though and do this for each line:
Code:
ipfw add $id deny ip from any to "$url"
Is there a way to do this with pf?
The list changes a lot, so don't want to hardcode it in /etc/pf.conf