mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
interfaces: do not flush states on clear
flushed states are propagated to pfsync, which means a machine in backup state is still vulnerable to any event that hooks into the interface_bring_down logic on the primary machine.
This commit is contained in:
parent
eecc882825
commit
24b5fdc42e
@ -138,11 +138,6 @@ if [ "${DO_COMMAND}" = "-c" ]; then
|
||||
# legacy behaviour originating from interface_bring_down()
|
||||
/usr/sbin/arp -d -i ${IF} -a
|
||||
|
||||
# XXX maybe we do not have to kill states at all
|
||||
if [ -n "${HAVE_ROUTE}" ]; then
|
||||
/sbin/pfctl -i ${IF} -Fs
|
||||
fi
|
||||
|
||||
exit 0
|
||||
elif [ "${DO_COMMAND}" = "-O" ]; then
|
||||
if [ -z "${IF}" ]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user