mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 10:04:41 +00:00
rc: filter_configure_sync does gateway switching...
... so let's do that first and afterwards reload OpenVPN and IPsec. It's not that problematic, because both variants reload the filter when they have done something, so we merely spread out the call order a bit instead of batching a number of filter reload at the end. PR: https://github.com/opnsense/core/issues/2247
This commit is contained in:
parent
6769bc7d41
commit
6928d06aad
@ -113,8 +113,8 @@ services_dhcrelay_configure(true);
|
||||
services_dhcrelay6_configure(true);
|
||||
|
||||
prefer_ipv4_or_ipv6();
|
||||
plugins_configure('vpn', true);
|
||||
filter_configure_sync(true);
|
||||
plugins_configure('vpn', true);
|
||||
plugins_configure('bootup', true);
|
||||
rrd_configure(true);
|
||||
|
||||
|
||||
@ -163,13 +163,13 @@ if (!is_ipaddr($cacheip) || $ip != $cacheip || !is_ipaddr($configip)) {
|
||||
|
||||
system_routing_configure(false, $interface);
|
||||
setup_gateways_monitor();
|
||||
plugins_configure('vpn', false, array($interface));
|
||||
filter_configure_sync();
|
||||
|
||||
if (is_ipaddr($ip)) {
|
||||
@file_put_contents($cacheip_file, $ip);
|
||||
}
|
||||
|
||||
plugins_configure('vpn', false, array($interface));
|
||||
plugins_configure('newwanip', false, array($interface));
|
||||
rrd_configure();
|
||||
}
|
||||
|
||||
@ -144,13 +144,13 @@ if (!is_ipaddr($cacheip) || $ip != $cacheip || !is_ipaddr($configip)) {
|
||||
|
||||
system_routing_configure(false, $interface);
|
||||
setup_gateways_monitor();
|
||||
plugins_configure('vpn', false, array($interface));
|
||||
filter_configure_sync();
|
||||
|
||||
if (is_ipaddr($ip)) {
|
||||
@file_put_contents($cacheip_file, $ip);
|
||||
}
|
||||
|
||||
plugins_configure('vpn', false, array($interface));
|
||||
plugins_configure('newwanip', false, array($interface));
|
||||
rrd_configure();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user