summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_virtual_ip_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-12-17 21:35:58 +0000
committerErmal <eri@pfsense.org>2010-12-17 21:35:58 +0000
commit890585705f46aa7f993e81b94edb742e6c2d5df1 (patch)
treee78242cc23903d1b9b4df739eb088fba0b250894 /usr/local/www/firewall_virtual_ip_edit.php
parent82db1bc578463bbbb7fcbd2c9e5be1f006e58d9a (diff)
downloadpfsense-890585705f46aa7f993e81b94edb742e6c2d5df1.zip
pfsense-890585705f46aa7f993e81b94edb742e6c2d5df1.tar.gz
Allow carp as parent only to ipalias.
Diffstat (limited to 'usr/local/www/firewall_virtual_ip_edit.php')
-rwxr-xr-xusr/local/www/firewall_virtual_ip_edit.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php
index 9571a7f..4658094 100755
--- a/usr/local/www/firewall_virtual_ip_edit.php
+++ b/usr/local/www/firewall_virtual_ip_edit.php
@@ -153,6 +153,8 @@ if ($_POST) {
$cannot_find = $_POST['subnet'] . "/" . $_POST['subnet_bits'] ;
$input_errors[] = sprintf(gettext("Sorry, we could not locate an interface with a matching subnet for %s. Please add an IP alias in this subnet on this interface."),$cannot_find);
}
+ if (substr($_POST['interface'], 0, 3) == "vip")
+ $input_errors[] = gettext("For this type of vip a carp parent is not allowed.");
break;
case "ipalias":
if (substr($_POST['interface'], 0, 3) == "vip") {
@@ -164,6 +166,10 @@ if ($_POST) {
}
}
break;
+ default:
+ if (substr($_POST['interface'], 0, 3) == "vip")
+ $input_errors[] = gettext("For this type of vip a carp parent is not allowed.");
+ break;
}
OpenPOWER on IntegriCloud