Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Mar 2008 14:34:01 -0400
From:      Jeff Royle <lists@qwirky.net>
To:        freebsd-pf@freebsd.org
Subject:   Re: How to block Domain
Message-ID:  <47F12E99.8000805@qwirky.net>
In-Reply-To: <47F0F131.1070904@gmail.com>
References:  <47F0F131.1070904@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47F12E99.8000805>