diff options
author | bruno <bruno.stein@bluepex.com> | 2015-06-11 15:43:32 -0300 |
---|---|---|
committer | bruno <bruno.stein@bluepex.com> | 2015-06-11 15:43:32 -0300 |
commit | ed89940077c85a83695acb560c9514d36a87565e (patch) | |
tree | 1780ec0c110a0852329caf18db85b9d0a631ffc2 /usr/local/www/firewall_nat_edit.php | |
parent | bfc15aca306d93c970fbc5ed9ebdbc0662015b57 (diff) | |
download | pfsense-ed89940077c85a83695acb560c9514d36a87565e.zip pfsense-ed89940077c85a83695acb560c9514d36a87565e.tar.gz |
fix checking for overlaps of NAT destination port
Diffstat (limited to 'usr/local/www/firewall_nat_edit.php')
-rw-r--r-- | usr/local/www/firewall_nat_edit.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/firewall_nat_edit.php b/usr/local/www/firewall_nat_edit.php index 4488e2f..ce6d31b 100644 --- a/usr/local/www/firewall_nat_edit.php +++ b/usr/local/www/firewall_nat_edit.php @@ -337,8 +337,8 @@ if ($_POST) { $endp = $begp; } - if (!((($_POST['beginport'] < $begp) && ($_POST['endport'] < $begp)) || - (($_POST['beginport'] > $endp) && ($_POST['endport'] > $endp)))) { + if (!((($_POST['dstbeginport'] < $begp) && ($_POST['dstendport'] < $begp)) || + (($_POST['dstbeginport'] > $endp) && ($_POST['dstendport'] > $endp)))) { $input_errors[] = gettext("The destination port range overlaps with an existing entry."); break; } |