summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-01-21 19:32:03 +0100
committerErmal LUÇI <eri@pfsense.org>2015-01-21 19:32:36 +0100
commit083ec796a870e5a4fa0da38d19b7e8b5b6dd381b (patch)
treee7a1a7c8f297f36efcef0bb6278920f0e5fbb9b7 /etc/inc
parenta693440176e8bd4a783a9ccb75d2cd57629b5699 (diff)
downloadpfsense-083ec796a870e5a4fa0da38d19b7e8b5b6dd381b.zip
pfsense-083ec796a870e5a4fa0da38d19b7e8b5b6dd381b.tar.gz
Ticket #4254 Actually fix this on 2.2 branch since vips are not handled by get_real_interface apparently!
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/vpn.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 28ab10f..3a780fd 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -180,7 +180,12 @@ function vpn_ipsec_configure($ipchg = false)
if (isset($ph1ent['disabled']))
continue;
- $ifacesuse[] = get_real_interface($ph1ent['interface']);
+ if (strpos($ph1ent['interface'], '_vip')) {
+ $interface = explode('_vip', $ph1ent['interface']);
+ $vpninterface = $vpninterface[0];
+ } else
+ $vpninterface = $ph1ent['interface'];
+ $ifacesuse[] = get_real_interface($vpninterface);
if ($ph1ent['mode'] == "aggressive" && ($ph1ent['authentication_method'] == "pre_shared_key" || $ph1ent['authentication_method'] == "xauth_psk_server"))
$aggressive_mode_psk = true;
OpenPOWER on IntegriCloud