Fixes #3995. Do not set rightsourceip on site-to-site VPNs but only on mobile users ones otherwise nothing works.
This commit is contained in:
parent
20a9590486
commit
80be089f05
|
@ -586,7 +586,7 @@ EOD;
|
|||
$ikelifeline = "ikelifetime = {$ph1ent['lifetime']}s";
|
||||
|
||||
$rightsourceip = NULL;
|
||||
if (!empty($a_client['pool_address']))
|
||||
if (isset($ph1ent['mobile']) && !empty($a_client['pool_address']))
|
||||
$rightsourceip = "\trightsourceip = {$a_client['pool_address']}/{$a_client['pool_netbits']}\n";
|
||||
|
||||
$authentication = "";
|
||||
|
|
Reference in New Issue