From 5918f9b71295521fb06eac8aec8fabcf876e1831 Mon Sep 17 00:00:00 2001 From: Ermal Date: Wed, 23 Jan 2013 20:01:33 +0000 Subject: Resolves #2482. Remove an ipv6 alias from a vip eevn though the pfsense module does not have support for that --- etc/inc/interfaces.inc | 8 ++++++-- 1 file 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']}"; -- cgit v1.1