DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Security

OpenBSD Security Functionally paranoid!

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 27th January 2010
joostvgh joostvgh is offline
Port Guard
 
Join Date: Jan 2010
Posts: 38
Default flush states pfctl

hi

I am currently using scripts to load a daypf.conf and nightpf.conf
at night people are allowed to use torrents etc.

so when I enable daypf.conf I would like to flush all connections made (connections to trackers etc although they are not allowed by new pf.conf)

question:
do the states get flushed by disabling and enabling pfctl with another pf.conf?

I googled this and read man page:

pfctl -F all
when I do this, pfctl clears all states but my putty console hangs. this is probably due to my state being flushed too.

my script:
pfctl -d
pfctl -F all
pfctl -e -f /etc/pf.conf

is this the correct way to do it?
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pf flush persist file ijk FreeBSD Security 5 3rd February 2009 01:42 PM
pfctl -s info counters don't change audio FreeBSD Security 2 16th July 2008 11:01 PM
flush natd rules nenduvel FreeBSD Security 1 3rd May 2008 08:59 PM


All times are GMT. The time now is 11:01 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick