summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_virtual_ip_edit.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-10-01 15:33:31 +0000
committerErmal Luçi <eri@pfsense.org>2009-10-01 15:33:31 +0000
commit1772523c3ab3a7e07aab870b0cb8789c08207b6b (patch)
tree242c62cb58fb265b6c7eeb02aef993ae23132038 /usr/local/www/firewall_virtual_ip_edit.php
parent946479ab6a156481acd53de12dee67b5b0f8b9f3 (diff)
downloadpfsense-1772523c3ab3a7e07aab870b0cb8789c08207b6b.zip
pfsense-1772523c3ab3a7e07aab870b0cb8789c08207b6b.tar.gz
Add more checks.
Diffstat (limited to 'usr/local/www/firewall_virtual_ip_edit.php')
-rwxr-xr-xusr/local/www/firewall_virtual_ip_edit.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php
index ed381f5..6503047 100755
--- a/usr/local/www/firewall_virtual_ip_edit.php
+++ b/usr/local/www/firewall_virtual_ip_edit.php
@@ -141,7 +141,8 @@ if ($_POST) {
if (!ip_in_subnet($_POST['subnet'], gen_subnet($parent_ip, $parent_sn) . "/" . $parent_sn)) {
$cannot_find = $_POST['subnet'] . "/" . $_POST['subnet_bits'] ;
$input_errors[] = "Sorry, we could not locate an interface with a matching subnet for {$cannot_find}. Please add an IP alias in this subnet on this interface.";
- }
+ } else if ($parent_sn != $_POST['subnet_bits'])
+ $input_errors[] = "Subnet bits needs to be the same as the parent interface.";
}
if (!$input_errors) {
OpenPOWER on IntegriCloud