From 6721d6d0443bd7e697bd6ca33f470c801608df7e Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 29 Oct 2013 07:05:30 -0200 Subject: Define dynamic gateway for GRE interfaces and do not user to define IP address to the interface. Fixes #3280 --- etc/inc/gwlb.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc/inc/gwlb.inc') 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); -- cgit v1.1