summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_out_edit.php
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-02-20 17:33:54 +0000
committerBill Marquette <billm@pfsense.org>2005-02-20 17:33:54 +0000
commitf883f1dd696fdc6f8e8ee887b20af90301698faa (patch)
tree651ad3f319966aecf9cc286aa446b54699a4996d /usr/local/www/firewall_nat_out_edit.php
parentb17a19eb9e54993f1ce9990c4f62229ec4f9d512 (diff)
downloadpfsense-f883f1dd696fdc6f8e8ee887b20af90301698faa.zip
pfsense-f883f1dd696fdc6f8e8ee887b20af90301698faa.tar.gz
!any is invalid in nat rule
Diffstat (limited to 'usr/local/www/firewall_nat_out_edit.php')
-rwxr-xr-xusr/local/www/firewall_nat_out_edit.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/firewall_nat_out_edit.php b/usr/local/www/firewall_nat_out_edit.php
index 0d4c991..bdf0242 100755
--- a/usr/local/www/firewall_nat_out_edit.php
+++ b/usr/local/www/firewall_nat_out_edit.php
@@ -105,6 +105,11 @@ if ($_POST) {
$input_errors[] = "A valid destination bit count must be specified.";
}
}
+ if ($_POST['destination_type'] != "any") {
+ if ($_POST['destination_not'])
+ $input_errors[] = "Negating destination address of \"any\" is invalid.";
+ }
+
if ($_POST['target'] && !is_ipaddr($_POST['target'])) {
$input_errors[] = "A valid target IP address must be specified.";
}
OpenPOWER on IntegriCloud