diff options
author | Ermal <eri@pfsense.org> | 2013-01-23 20:01:33 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-01-23 20:02:04 +0000 |
commit | 5918f9b71295521fb06eac8aec8fabcf876e1831 (patch) | |
tree | f7934d5a9c0f41510f8a0655ebc6682cfca328ce | |
parent | f2bd88420c8b05b4b93ebd29819d4bf57d387474 (diff) | |
download | pfsense-5918f9b71295521fb06eac8aec8fabcf876e1831.zip pfsense-5918f9b71295521fb06eac8aec8fabcf876e1831.tar.gz |
Resolves #2482. Remove an ipv6 alias from a vip eevn though the pfsense module does not have support for that
-rw-r--r-- | etc/inc/interfaces.inc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 81a8f36..3a7e611 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1055,8 +1055,12 @@ function interface_vip_bring_down($vip) { break; case "ipalias": $vipif = get_real_interface($vip['interface']); - if(does_interface_exist($vipif)) - pfSense_interface_deladdress($vipif, $vip['subnet']); + if (does_interface_exist($vipif)) { + if (is_ipaddrv6($vip['subnet'])) + mwexec("/sbin/ifconfig {$vipif} inet6 {$vip['subnet']} -alias"); + else + pfSense_interface_deladdress($vipif, $vip['subnet']); + } break; case "carp": $vipif = "{$vip['interface']}_vip{$vip['vhid']}"; |