diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-10-29 07:05:30 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-10-29 07:06:05 -0200 |
commit | 6721d6d0443bd7e697bd6ca33f470c801608df7e (patch) | |
tree | 95298639678905022619992d54ceadc2bd494395 /etc/inc/gwlb.inc | |
parent | 9aca73906007b79ae47dc2493fd9b04fde95189a (diff) | |
download | pfsense-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.inc | 4 |
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); |