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?
|