diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-01-28 16:45:58 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-01-28 16:45:58 -0200 |
commit | b601f897a5f6acfb4abc8beeedf0bb0d5cfa3193 (patch) | |
tree | c424dacc10f6664020e4a8d607300af0a8a66813 /usr | |
parent | fee13fc057f3c1e96a3db2535ab7734953de5924 (diff) | |
download | pfsense-b601f897a5f6acfb4abc8beeedf0bb0d5cfa3193.zip pfsense-b601f897a5f6acfb4abc8beeedf0bb0d5cfa3193.tar.gz |
Accept port range on Outbound NAT. Fixes #4300
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/firewall_nat_out_edit.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/firewall_nat_out_edit.php b/usr/local/www/firewall_nat_out_edit.php index eedcfb9..0c618de 100644 --- a/usr/local/www/firewall_nat_out_edit.php +++ b/usr/local/www/firewall_nat_out_edit.php @@ -162,10 +162,10 @@ if ($_POST) { if ($_POST['natport']) $_POST['natport'] = trim($_POST['natport']); - if($protocol_uses_ports && $_POST['sourceport'] <> "" && !is_portoralias($_POST['sourceport'])) + if($protocol_uses_ports && $_POST['sourceport'] <> "" && !(is_portoralias($_POST['sourceport']) || is_portrange($_POST['sourceport']))) $input_errors[] = gettext("You must supply either a valid port or port alias for the source port entry."); - if($protocol_uses_ports && $_POST['dstport'] <> "" && !is_portoralias($_POST['dstport'])) + 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'])) |