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:06:05 -0200
commit6721d6d0443bd7e697bd6ca33f470c801608df7e (patch)
tree95298639678905022619992d54ceadc2bd494395 /etc/inc/gwlb.inc
parent9aca73906007b79ae47dc2493fd9b04fde95189a (diff)
downloadpfsense-6721d6d0443bd7e697bd6ca33f470c801608df7e.zip
pfsense-6721d6d0443bd7e697bd6ca33f470c801608df7e.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