summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/firewall_nat_out_edit.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/firewall_nat_out_edit.php b/usr/local/www/firewall_nat_out_edit.php
index ca1e04e..abab75c 100755
--- a/usr/local/www/firewall_nat_out_edit.php
+++ b/usr/local/www/firewall_nat_out_edit.php
@@ -133,6 +133,9 @@ if ($_POST) {
if ($_POST['destination_not'])
$input_errors[] = "Negating destination address of \"any\" is invalid.";
}
+ if ($_POST['nonat'] && $_POST['staticnatport']) {
+ $input_errors[] = "Static port cannot be used with No NAT.";
+ }
if ($_POST['dstport'] && !is_numericint($_POST['dstport'])) {
$input_errors[] = "A valid destination port must be specified.";
}
OpenPOWER on IntegriCloud