mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
(legacy) ipsec, obey force nat travesal
This commit is contained in:
parent
38d70ed73e
commit
ca4cf5538b
@ -621,6 +621,11 @@ EOD;
|
||||
$rekey = "rekey = yes";
|
||||
}
|
||||
|
||||
$forceencaps = 'forceencaps = no' ;
|
||||
if (!empty($ph1ent['nat_traversal']) && $ph1ent['nat_traversal'] == 'force') {
|
||||
$forceencaps = 'forceencaps = yes';
|
||||
}
|
||||
|
||||
$ipseclifetime = 0;
|
||||
$rightsubnet_spec = array();
|
||||
$leftsubnet_spec = array();
|
||||
@ -773,6 +778,7 @@ conn con<<connectionId>>
|
||||
keyexchange = {$keyexchange}
|
||||
{$reauth}
|
||||
{$rekey}
|
||||
{$forceencaps}
|
||||
reqid = {$ikeid}
|
||||
installpolicy = yes
|
||||
{$tunneltype}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user