summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-01-23 20:01:33 +0000
committerErmal <eri@pfsense.org>2013-01-23 20:02:04 +0000
commit5918f9b71295521fb06eac8aec8fabcf876e1831 (patch)
treef7934d5a9c0f41510f8a0655ebc6682cfca328ce /etc
parentf2bd88420c8b05b4b93ebd29819d4bf57d387474 (diff)
downloadpfsense-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
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc8
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']}";
OpenPOWER on IntegriCloud