diff options
author | Ermal <eri@pfsense.org> | 2014-02-28 13:49:44 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-02-28 13:49:44 +0000 |
commit | c32a6b82a708149a66c1e477ddc0ba1c54d70440 (patch) | |
tree | 35a40a54b45d2401e91eb15b29664bb67bcf7d89 /etc/inc | |
parent | 920dbb26b19773ae1ef96992ee26ae31293d029e (diff) | |
download | pfsense-c32a6b82a708149a66c1e477ddc0ba1c54d70440.zip pfsense-c32a6b82a708149a66c1e477ddc0ba1c54d70440.tar.gz |
Fixes #3484. Provide a dynamic gateway for gif v6 tunnels so it can be used on firewall rules etc. The guide for setting up this tunnels on docs need to change to leave the gif interface as none type. People upgrading need to fix this themselves with a not on release notes. This can be fixed if the kernel condition is relaxed to allow setting the prefixlen on the tunnel as ipv4
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/gwlb.inc | 2 | ||||
-rw-r--r-- | etc/inc/interfaces.inc | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index 27271d7..c90dd05 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -598,6 +598,8 @@ function return_gateways_array($disabled = false, $localhost = false, $inactive default: if (substr($ifcfg['if'], 0, 4) == "ovpn") $ctype = "VPNv6"; + if (substr($ifcfg['if'], 0, 3) == "gif") + $ctype = "TUNNELv6"; break; } $ctype = "_". strtoupper($ctype); diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 7275d92..19a3af1 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -4941,6 +4941,8 @@ function interface_has_gatewayv6($friendly) { default: if (substr($ifname['if'], 0, 4) == "ovpn") return true; + if (substr($ifname['if'], 0, 3) == "gif") + return true; if (!empty($ifname['gatewayv6'])) return true; break; |