summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2014-11-25 21:39:34 +0100
committerErmal LUÇI <eri@pfsense.org>2014-11-25 21:39:34 +0100
commit1eb378ed3c4d19844eef686078bbaf238771a30a (patch)
tree6faa59534d2c4d18deb42cf109a718a22fdfd169 /etc/inc/vpn.inc
parent156a086d7231292dc7c4110450f400024523cc22 (diff)
downloadpfsense-1eb378ed3c4d19844eef686078bbaf238771a30a.zip
pfsense-1eb378ed3c4d19844eef686078bbaf238771a30a.tar.gz
Put the aggressive line only during ikev1 configs
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index b5aa913..c8392ea 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -800,7 +800,6 @@ EOD;
$ipsecconf .=<<<EOD
conn con{$ph1ent['ikeid']}
- aggressive = {$aggressive}
fragmentation = yes
keyexchange = {$keyexchange}
{$reauth}
@@ -837,6 +836,8 @@ EOD;
$ipsecconf .= "\t{$authentication}\n";
if (!empty($peerid_spec))
$ipsecconf .= "\trightid = {$peerid_spec}\n";
+ if ($keyexchange == 'ikev1')
+ aggressive = {$aggressive}
}
}
}
OpenPOWER on IntegriCloud