diff options
author | Chris Buechler <cmb@pfsense.org> | 2009-07-21 13:20:55 -0400 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2009-07-21 13:20:55 -0400 |
commit | fb265ec09cd7931e2331387abe9903a21ece4daa (patch) | |
tree | 84784d815237f9b4892a1c51072b1143b95e9153 /usr/local/www/firewall_nat_out_edit.php | |
parent | a67a0922b423fdde34650aa2fd7174241508e925 (diff) | |
download | pfsense-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-x | usr/local/www/firewall_nat_out_edit.php | 3 |
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."; } |