diff options
author | smos <seth.mos@dds.nl> | 2012-06-04 08:21:07 +0200 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2012-06-04 08:21:07 +0200 |
commit | e90c833ade6f5ab60e7ef387e80b1870073120ba (patch) | |
tree | 730606e46e61cb66ab4be23237c0ed39f63d0ff0 /etc | |
parent | 4264284ed5f19377fd72e4ce7a0ecfe8c6d14c9b (diff) | |
download | pfsense-e90c833ade6f5ab60e7ef387e80b1870073120ba.zip pfsense-e90c833ade6f5ab60e7ef387e80b1870073120ba.tar.gz |
Always add a link-local of fe80::1:1 when the interface is set to track6. This allows webui access over IPv6 to a easy address.
Make a shortcut in the get_failover_interface() function to get_real_interface() if we find the interface in $config.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 679ae1d..cbd3a85 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -3012,6 +3012,10 @@ function interface_track6_configure($interface = "lan") { return(false); } + /* always configure a link-local of fe80::1:1 on the track6 interfaces */ + $realif = get_real_interface($interface); + mwexec("/sbin/ifconfig {$realif} inet6 fe80::1:1%{$realif}"); + $type = $config['interfaces'][$wancfg['track6-interface']]['ipaddrv6']; switch($type) { case "6to4": @@ -4770,6 +4774,12 @@ function interfaces_staticarp_configure($if) { function get_failover_interface($interface) { global $config; + /* shortcut to get_real_interface if we find it in the config */ + if(is_array($config['interfaces'][$interface])) { + $wanif = get_real_interface($interface); + return $wanif; + } + /* compare against gateway groups */ $a_groups = return_gateway_groups_array(); if(is_array($a_groups[$interface])) { |