summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_out_edit.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2009-07-21 13:20:55 -0400
committerChris Buechler <cmb@pfsense.org>2009-07-21 13:20:55 -0400
commitfb265ec09cd7931e2331387abe9903a21ece4daa (patch)
tree84784d815237f9b4892a1c51072b1143b95e9153 /usr/local/www/firewall_nat_out_edit.php
parenta67a0922b423fdde34650aa2fd7174241508e925 (diff)
downloadpfsense-fb265ec09cd7931e2331387abe9903a21ece4daa.zip
pfsense-fb265ec09cd7931e2331387abe9903a21ece4daa.tar.gz
No NAT and static port is an invalid combination, don't allow it.
Fixes bug #37
Diffstat (limited to 'usr/local/www/firewall_nat_out_edit.php')
-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