interfaces: state experiment for #7027

PR: https://github.com/opnsense/core/issues/7635#issuecomment-2462066123
This commit is contained in:
Franco Fichtner 2024-11-07 13:19:54 +01:00
parent 671f4d4415
commit 73e837d7d3

View File

@ -109,6 +109,7 @@ filter_configure_sync();
if (is_ipaddr($cacheip) && $ip != $cacheip) {
log_msg("IP address change detected, killing states of old ip $cacheip");
mwexecf('/sbin/pfctl -k 0.0.0.0/0 -k %s', $cacheip);
mwexecf('/sbin/pfctl -k gateway -k %s', $cacheip);
mwexecf('/sbin/pfctl -k %s', $cacheip);
}