How to block Domain

Jeff Royle lists at qwirky.net
Mon Mar 31 11:45:04 PDT 2008


Ken wrote:
> PF how to block domain.

You could do something like this:

table <restricted> persist file "/path/to/file/restricted"

block in log quick on $ext_if proto { tcp, udp } from <restricted> to any


This way you can just edit the file and add in what you wish to block. 
    Then you simply have to run pfctl -Tl -f /etc/pf.conf to load in 
your additions.

Cheers,

Jeff



More information about the freebsd-pf mailing list