summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_virtual_ip.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-03-26 17:15:41 +0000
committerErmal Luçi <eri@pfsense.org>2009-03-26 17:15:41 +0000
commit53af8835299dd4c55ddf035e43fc8930cff31469 (patch)
treec650782b0d6811733c31ed1334c3fd42938a945a /usr/local/www/firewall_virtual_ip.php
parent2064fb9dc3e62ff3f6c545ed5cb25a193607f76c (diff)
downloadpfsense-53af8835299dd4c55ddf035e43fc8930cff31469.zip
pfsense-53af8835299dd4c55ddf035e43fc8930cff31469.tar.gz
Take care of cleaning the ip alias when we delete an entry of ipalias type or modify it.
Diffstat (limited to 'usr/local/www/firewall_virtual_ip.php')
-rwxr-xr-xusr/local/www/firewall_virtual_ip.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/firewall_virtual_ip.php b/usr/local/www/firewall_virtual_ip.php
index c1f212c..d0e05eb 100755
--- a/usr/local/www/firewall_virtual_ip.php
+++ b/usr/local/www/firewall_virtual_ip.php
@@ -90,6 +90,8 @@ if ($_GET['act'] == "del") {
}
if (!$input_errors) {
+ if ($a_vip[$_GET['id']]['type'] == "ipalias")
+ mwexec("/sbin/ifconfig " . get_real_interface($a_vip[$_GET['id']]['interface']) . " delete {$a_vip[$_GET['id']]['subnet']}");
unset($a_vip[$_GET['id']]);
write_config();
touch($d_vipconfdirty_path);
OpenPOWER on IntegriCloud