diff options
author | Ermal LUÇI <eri@pfsense.org> | 2014-11-25 21:43:47 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2014-11-25 21:43:47 +0100 |
commit | 8e87f7140aad0165eb12931debbacf5099cdce71 (patch) | |
tree | 6ed983d200d88e97bd960b573394f38d5b5612d3 | |
parent | 02069977a30af657890df2498afd6c8e924b36a3 (diff) | |
download | pfsense-8e87f7140aad0165eb12931debbacf5099cdce71.zip pfsense-8e87f7140aad0165eb12931debbacf5099cdce71.tar.gz |
Unset the aggressive mode settings for not IKEv1 settings
-rw-r--r-- | usr/local/www/vpn_ipsec_phase1.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/vpn_ipsec_phase1.php b/usr/local/www/vpn_ipsec_phase1.php index 856799b..a615fb5 100644 --- a/usr/local/www/vpn_ipsec_phase1.php +++ b/usr/local/www/vpn_ipsec_phase1.php @@ -329,6 +329,10 @@ if ($_POST) { if (!$input_errors) { $ph1ent['ikeid'] = $pconfig['ikeid']; $ph1ent['iketype'] = $pconfig['iketype']; + if ($pconfig['iketype'] != 'ikev1') + unset($ph1ent['mode']); + else + $ph1ent['mode'] = $pconfig['mode']; $ph1ent['disabled'] = $pconfig['disabled'] ? true : false; $ph1ent['interface'] = $pconfig['interface']; /* if the remote gateway changed and the interface is not WAN then remove route */ @@ -344,7 +348,6 @@ if ($_POST) { else $ph1ent['remote-gateway'] = $pconfig['remotegw']; - $ph1ent['mode'] = $pconfig['mode']; $ph1ent['protocol'] = $pconfig['protocol']; $ph1ent['myid_type'] = $pconfig['myid_type']; |