summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-09-12 19:34:35 +0200
committerErmal <eri@pfsense.org>2014-09-12 19:34:35 +0200
commit16c0272244e10b3b0c847eb6efc4bf611b4e4667 (patch)
tree3c8996cccf9c121792b77bbe1b6d31e6b343e02e /etc/inc/vpn.inc
parent0e7aad671ebefb8151e96ec38ececc072106bdbe (diff)
downloadpfsense-16c0272244e10b3b0c847eb6efc4bf611b4e4667.zip
pfsense-16c0272244e10b3b0c847eb6efc4bf611b4e4667.tar.gz
Actually use the new toggles
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc13
1 files changed, 11 insertions, 2 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 804a27c..cd07f34 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -615,6 +615,15 @@ EOD;
$left_spec = $ep;
+ if (isset($ph1ent['reauth_enable']))
+ $reauth = "reauth = yes";
+ else
+ $reauth = "reauth = no";
+ if (isset($ph1ent['rekey_enable']))
+ $rekey = "rekey = yes";
+ else
+ $rekey = "rekey = no";
+
$ipseclifetime = 0;
$rightsubnet_spec = array();
$leftsubnet_spec = array();
@@ -775,8 +784,8 @@ conn con{$ph1ent['ikeid']}
aggressive = {$aggressive}
fragmentation = yes
keyexchange = {$keyexchange}
- reauth = yes
- rekey = yes
+ {$reauth}
+ {$rekey}
reqid = {$ikeid}
installpolicy = yes
{$tunneltype}
OpenPOWER on IntegriCloud