mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
VPN: IPsec: Tunnel Settings - according to https://wiki.strongswan.org/projects/strongswan/wiki/Fromipsecconf the "Dynamic gateway" (rightallowany) option should be translated to 0.0.0.0/0,::/0 . closes https://github.com/opnsense/core/issues/6396
This commit is contained in:
parent
df1fbfbb05
commit
24806500c5
@ -1339,7 +1339,7 @@ function ipsec_configure_do($verbose = false, $interface = '')
|
||||
'remote-0' => [
|
||||
'id' => ipsec_find_id($ph1ent, "peer") ?? '%any'
|
||||
],
|
||||
'remote_addrs' => !isset($ph1ent['mobile']) && empty($ph1ent['rightallowany']) ? $ph1ent['remote-gateway'] : '%any',
|
||||
'remote_addrs' => !isset($ph1ent['mobile']) && empty($ph1ent['rightallowany']) ? $ph1ent['remote-gateway'] : '0.0.0.0/0,::/0',
|
||||
'encap' => !empty($ph1ent['nat_traversal']) && $ph1ent['nat_traversal'] == 'force' ? 'yes' : 'no',
|
||||
];
|
||||
if (!isset($ph1ent['reauth_enable']) && !empty($ph1ent['lifetime']) && !empty($ph1ent['margintime'])) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user