From 73e837d7d31aa1e5fda482a58c4d36018fe4aa77 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 7 Nov 2024 13:19:54 +0100 Subject: [PATCH] interfaces: state experiment for #7027 PR: https://github.com/opnsense/core/issues/7635#issuecomment-2462066123 --- src/etc/rc.newwanip | 1 + 1 file changed, 1 insertion(+) diff --git a/src/etc/rc.newwanip b/src/etc/rc.newwanip index 58f141a22..c39ea6cc5 100755 --- a/src/etc/rc.newwanip +++ b/src/etc/rc.newwanip @@ -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); }