diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-09-17 01:15:13 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-09-17 01:15:13 -0500 |
commit | b1c3e99959934da263f833d213e372e62598597e (patch) | |
tree | 84ef77ee8eaa10dc658c7d2df769434513124cd0 /usr | |
parent | 449b0fe533e1c9c838d3b03aeddfd114d43428c1 (diff) | |
download | pfsense-b1c3e99959934da263f833d213e372e62598597e.zip pfsense-b1c3e99959934da263f833d213e372e62598597e.tar.gz |
allow port ranges for natport. Ticket #5156
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/firewall_nat_out_edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/firewall_nat_out_edit.php b/usr/local/www/firewall_nat_out_edit.php index eb99406..4d65967 100644 --- a/usr/local/www/firewall_nat_out_edit.php +++ b/usr/local/www/firewall_nat_out_edit.php @@ -172,7 +172,7 @@ if ($_POST) { if($protocol_uses_ports && $_POST['dstport'] <> "" && !(is_portoralias($_POST['dstport']) || is_portrange($_POST['dstport']))) $input_errors[] = gettext("You must supply either a valid port or port alias for the destination port entry."); - if($protocol_uses_ports && $_POST['natport'] <> "" && !is_port($_POST['natport']) && !isset($_POST['nonat'])) + if($protocol_uses_ports && $_POST['natport'] <> "" && !(is_portoralias($_POST['natport']) || is_portrange($_POST['natport'])) && !isset($_POST['nonat'])) $input_errors[] = gettext("You must supply a valid port for the NAT port entry."); if (($_POST['source_type'] != "any") && ($_POST['source_type'] != "(self)")) { |