mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix #4066:
Make sure pf is configured before other services are restarted when WAN IP changes. The way it was before, 'pass out' rules with route-to still have old IP set as 'from' and some Dynamic DNS ended up not being updated.
This commit is contained in:
parent
8da00522ea
commit
6d744cc842
@ -197,6 +197,15 @@ if (!is_ipaddr($oldip) || $curwanip != $oldip || !is_ipaddrv4($config['interface
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* XXX: Some services (e.g. dyndns, see ticket #4066) depends of
|
||||
* filter_configure() to be called before, otherwise pass out
|
||||
* route-to rules have the old ip set in 'from' and connection
|
||||
* do not go through correct link
|
||||
*/
|
||||
filter_configure();
|
||||
sleep(1);
|
||||
|
||||
/* reconfigure static routes (kernel may have deleted them) */
|
||||
system_routing_configure($interface);
|
||||
|
||||
@ -229,9 +238,9 @@ if (!is_ipaddr($oldip) || $curwanip != $oldip || !is_ipaddrv4($config['interface
|
||||
services_snmpd_configure();
|
||||
|
||||
restart_packages();
|
||||
} else {
|
||||
/* signal filter reload */
|
||||
filter_configure();
|
||||
}
|
||||
|
||||
/* signal filter reload */
|
||||
filter_configure();
|
||||
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user