summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-03-16 13:08:01 +0000
committerErmal Luçi <eri@pfsense.org>2010-03-16 13:08:01 +0000
commit63017a732e0e4f1c3459106a5ac24abfea074877 (patch)
tree62d247d9032b8a71c76a8db40433e1b34c016f3f /etc/inc/vpn.inc
parent0b6ab3ec67c60e1c3dc51822bec8d796e21c3abf (diff)
downloadpfsense-63017a732e0e4f1c3459106a5ac24abfea074877.zip
pfsense-63017a732e0e4f1c3459106a5ac24abfea074877.tar.gz
Ticket #430. Give a none option to allow for roadwarriors configs.
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc12
1 files changed, 7 insertions, 5 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 26631d7..1ebd07a 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -610,11 +610,13 @@ EOD;
if ($ph2ent['mode'] == 'tunnel') {
$localid_type = $ph2ent['localid']['type'];
- if ($localid_type != "address")
- $localid_type = "subnet";
-
$localid_data = ipsec_idinfo_to_cidr($ph2ent['localid']);
- $localid_spec = $localid_type." ".$localid_data." any";
+ if ($localid_type == "none")
+ $localid_spec = " ";
+ else if ($localid_type != "address") {
+ $localid_type = "subnet";
+ $localid_spec = $localid_type." ".$localid_data." any";
+ }
if (!isset($ph2ent['mobile'])) {
$remoteid_type = $ph2ent['remoteid']['type'];
@@ -808,7 +810,7 @@ EOD;
}
/* static route needed? */
- if (preg_match("/^carp/i", $ph1ent['interface']))
+ if (preg_match("/^carp|^vip/i", $ph1ent['interface']))
$parentinterface = link_carp_interface_to_parent($ph1ent['interface']);
else
$parentinterface = $ph1ent['interface'];
OpenPOWER on IntegriCloud