diff options
| author | Sean Chittenden <seanc@FreeBSD.org> | 2005-04-04 23:06:10 +0000 |
|---|---|---|
| committer | Sean Chittenden <seanc@FreeBSD.org> | 2005-04-04 23:06:10 +0000 |
| commit | 47accd603c8f9f52d378442708a4db5290c29672 (patch) | |
| tree | 6c315ca0914ed6eccd783ed5bcb49264bb210069 /etc | |
| parent | c6a37e84139a1c73d4ef46ce4fdf8598a0ebbf45 (diff) | |
Notes
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/rc.d/pf | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc.d/pf b/etc/rc.d/pf index d7360c06cf57..3b9ae9387557 100644 --- a/etc/rc.d/pf +++ b/etc/rc.d/pf @@ -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} } |
