summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2014-11-25 21:43:47 +0100
committerErmal LUÇI <eri@pfsense.org>2014-11-25 21:43:47 +0100
commit8e87f7140aad0165eb12931debbacf5099cdce71 (patch)
tree6ed983d200d88e97bd960b573394f38d5b5612d3 /usr/local/www
parent02069977a30af657890df2498afd6c8e924b36a3 (diff)
downloadpfsense-8e87f7140aad0165eb12931debbacf5099cdce71.zip
pfsense-8e87f7140aad0165eb12931debbacf5099cdce71.tar.gz
Unset the aggressive mode settings for not IKEv1 settings
Diffstat (limited to 'usr/local/www')
-rw-r--r--usr/local/www/vpn_ipsec_phase1.php5
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'];
OpenPOWER on IntegriCloud