When reloading rules via rc.d/pf, flush everything but existing state
entries that way when rules are read in, it doesn't break established connections. Approved by: mlaier Reviewed by: rc MFC after: 3 weeks
This commit is contained in:
parent
c6a37e8413
commit
47accd603c
@ -75,7 +75,9 @@ pf_reload()
|
||||
echo "Reloading pf rules."
|
||||
|
||||
${pf_program:-/sbin/pfctl} -n -f "${pf_rules}" || return 1
|
||||
${pf_program:-/sbin/pfctl} -Fa > /dev/null 2>&1
|
||||
# Flush everything but existing state entries that way when
|
||||
# rules are read in, it doesn't break established connections.
|
||||
${pf_program:-/sbin/pfctl} -Fnat -Fqueue -Frules -FSources -Finfo -FTables -Fosfp > /dev/null 2>&1
|
||||
${pf_program:-/sbin/pfctl} -f "${pf_rules}" ${pf_flags}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user