summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-10-29 07:05:30 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-10-29 07:05:44 -0200
commitbb6291e0204ffe2828fe9c9425bdae9c8541fe54 (patch)
tree217b898c9ddfafc2f037c57ca32d2406df8e40a5 /etc/inc/gwlb.inc
parentd3ad6cf012e51d820c03e08f05e56986c5682f1e (diff)
downloadpfsense-bb6291e0204ffe2828fe9c9425bdae9c8541fe54.zip
pfsense-bb6291e0204ffe2828fe9c9425bdae9c8541fe54.tar.gz
Define dynamic gateway for GRE interfaces and do not user to define IP address to the interface. Fixes #3280
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r--etc/inc/gwlb.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 012b288..92b90f3 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -483,6 +483,8 @@ function return_gateways_array($disabled = false, $localhost = false) {
default:
if (substr($ifcfg['if'], 0, 4) == "ovpn")
$ctype = "VPNv4";
+ else if (substr($ifcfg['if'], 0, 3) == "gre")
+ $ctype = "GREv4";
break;
}
$ctype = "_". strtoupper($ctype);
@@ -553,6 +555,8 @@ function return_gateways_array($disabled = false, $localhost = false) {
default:
if (substr($ifcfg['if'], 0, 4) == "ovpn")
$ctype = "VPNv6";
+ else if (substr($ifcfg['if'], 0, 3) == "gre")
+ $ctype = "GREv6";
break;
}
$ctype = "_". strtoupper($ctype);
OpenPOWER on IntegriCloud