mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
interfaces: use same approach as ppp-linkup script #5367
This commit is contained in:
parent
cc76580b16
commit
a8522b7243
@ -164,8 +164,8 @@ if (!is_ipaddr($cacheip) || $ip != $cacheip || !is_ipaddr($configip)) {
|
||||
mwexec('/sbin/pfctl -Fs');
|
||||
} else if (is_ipaddr($cacheip) && $ip != $cacheip) {
|
||||
log_error("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 %s', $cacheip);
|
||||
mwexecf('/sbin/pfctl -i %s -k 0.0.0.0/0 -k %s/32', [$interface_real, $cacheip]);
|
||||
mwexecf('/sbin/pfctl -i %s -k %s/32 -k 0.0.0.0/0', [$interface_real, $cacheip]);
|
||||
}
|
||||
|
||||
if (is_ipaddr($ip)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user