diff options
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/vpn_ipsec_phase1.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/vpn_ipsec_phase1.php b/usr/local/www/vpn_ipsec_phase1.php index 152f25d..c8a962a 100644 --- a/usr/local/www/vpn_ipsec_phase1.php +++ b/usr/local/www/vpn_ipsec_phase1.php @@ -123,7 +123,7 @@ if (isset($p1index) && $a_phase1[$p1index]) { $pconfig['interface'] = "wan"; if($config['interfaces']['lan']) $pconfig['localnet'] = "lan"; - $pconfig['mode'] = "aggressive"; + $pconfig['mode'] = "main"; $pconfig['protocol'] = "inet"; $pconfig['myid_type'] = "myaddress"; $pconfig['peerid_type'] = "peeraddress"; @@ -137,8 +137,10 @@ if (isset($p1index) && $a_phase1[$p1index]) { $pconfig['iketype'] = "ikev1"; /* mobile client */ - if($_GET['mobile']) + if($_GET['mobile']) { $pconfig['mobile']=true; + $pconfig['mode'] = "aggressive"; + } } if (isset($_GET['dup']) && is_numericint($_GET['dup'])) |