Commit ca4cf553 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) ipsec, obey force nat travesal

parent 38d70ed7
...@@ -621,6 +621,11 @@ EOD; ...@@ -621,6 +621,11 @@ EOD;
$rekey = "rekey = yes"; $rekey = "rekey = yes";
} }
$forceencaps = 'forceencaps = no' ;
if (!empty($ph1ent['nat_traversal']) && $ph1ent['nat_traversal'] == 'force') {
$forceencaps = 'forceencaps = yes';
}
$ipseclifetime = 0; $ipseclifetime = 0;
$rightsubnet_spec = array(); $rightsubnet_spec = array();
$leftsubnet_spec = array(); $leftsubnet_spec = array();
...@@ -773,6 +778,7 @@ conn con<<connectionId>> ...@@ -773,6 +778,7 @@ conn con<<connectionId>>
keyexchange = {$keyexchange} keyexchange = {$keyexchange}
{$reauth} {$reauth}
{$rekey} {$rekey}
{$forceencaps}
reqid = {$ikeid} reqid = {$ikeid}
installpolicy = yes installpolicy = yes
{$tunneltype} {$tunneltype}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment