summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorMatt Smith <mgsmith@netgate.com>2014-07-23 11:18:24 -0500
committerMatt Smith <mgsmith@netgate.com>2014-07-23 11:19:18 -0500
commit1f2acda12f219e959b84cc02884c4df27bf827bc (patch)
treed6ae0928ad0131d0db3ed7afb3dd1a9c4df9c2c1 /etc
parentbc53fec62dd3e40c8f6c1d65baeb12a40b1167cf (diff)
downloadpfsense-1f2acda12f219e959b84cc02884c4df27bf827bc.zip
pfsense-1f2acda12f219e959b84cc02884c4df27bf827bc.tar.gz
Fix for bug 3769
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/vpn.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 02da0c2..d96a72e 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -504,7 +504,7 @@ EOD;
$ipsecconf .= "config setup\n\tuniqueids = yes\n";
$ipsecconf .= "\tcharondebug=\"" . vpn_ipsec_configure_loglevels(true) . "\"\n";
- foreach ($a_phase2 as $ph2ent) {
+ foreach ($a_phase2 as $ph2_index => $ph2ent) {
$ikeid = $ph2ent['ikeid'];
$ph1ent = false;
@@ -725,7 +725,7 @@ EOD;
$ipsecconf .=<<<EOD
-conn con{$ph1ent['ikeid']}-{$ph2ent['ikeid']}
+conn con{$ph2_index}-{$ph1ent['ikeid']}
aggressive = {$aggressive}
fragmentation = yes
keyexchange = {$keyexchange}
OpenPOWER on IntegriCloud