mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
routes should not be skipped when IPsec is on WAN, as WAN may not be the default gateway.
This commit is contained in:
parent
2fc4190faf
commit
58070e1cf7
@ -911,7 +911,7 @@ EOD;
|
||||
else
|
||||
$parentinterface = $ph1ent['interface'];
|
||||
|
||||
if (($parentinterface <> "wan") && (is_ipaddr($rgip))) {
|
||||
if (is_ipaddr($rgip)) {
|
||||
/* add endpoint routes to correct gateway on interface */
|
||||
if (interface_has_gateway($parentinterface)) {
|
||||
$gatewayip = get_interface_gateway("$parentinterface");
|
||||
@ -928,8 +928,7 @@ EOD;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if(is_ipaddr($rgip))
|
||||
mwexec("/sbin/route delete -host {$rgip}", true);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user