On Thu, Dec 08, 2011 at 10:21:14PM +1100, John Tate wrote:
> Is there a way to control ports on a filter from the command line? I guess
> I just have manually adding and deleting rules.

the cycle


$ sudo mg /etc/pf.conf
$ sudo pfctl -vf /etc/pf.conf

doesn't take terribly long to begin with, but you could possibly achieve what 
you want
by putting your rules inside anchors and then do whatever manipulations you 
want to 
rules in the anchors from the command line.  man pf.conf and man pfctl are your 
friends.

--
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
"Remember to set the evil bit on all malicious network traffic"
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.

Reply via email to