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:
Stephan de Wit 2023-10-19 11:34:23 +02:00
parent eecc882825
commit 24b5fdc42e

View File

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