From 0e6998d15ef5dc49a3d80f6d4c04f6130977b27f Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 18 Apr 2005 21:07:34 +0000 Subject: Add Alias optoins to NAT ports --- usr/local/www/firewall_nat_edit.php | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'usr/local/www/firewall_nat_edit.php') diff --git a/usr/local/www/firewall_nat_edit.php b/usr/local/www/firewall_nat_edit.php index c1ec827..b530d02 100755 --- a/usr/local/www/firewall_nat_edit.php +++ b/usr/local/www/firewall_nat_edit.php @@ -77,13 +77,13 @@ if ($_POST) { do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); - if (($_POST['beginport'] && !is_port($_POST['beginport']))) { + if (($_POST['beginport'] && !is_ipaddroralias($_POST['beginport']) && !is_port($_POST['beginport']))) { $input_errors[] = "The start port must be an integer between 1 and 65535."; } - if (($_POST['endport'] && !is_port($_POST['endport']))) { + if (($_POST['endport'] && !is_ipaddroralias($_POST['endport']) && !is_port($_POST['endport']))) { $input_errors[] = "The end port must be an integer between 1 and 65535."; } - if (($_POST['localbeginport'] && !is_port($_POST['localbeginport']))) { + if (($_POST['localbeginport'] && !is_ipaddroralias($_POST['localbeginport']) && !is_port($_POST['localbeginport']))) { $input_errors[] = "The local port must be an integer between 1 and 65535."; } if (($_POST['localip'] && !is_ipaddroralias($_POST['localip']))) { @@ -274,13 +274,13 @@ function ext_rep_change() { $wkportdesc): ?> - + to: @@ -288,13 +288,13 @@ function ext_rep_change() { $wkportdesc): ?> - +
Specify the port or port range on @@ -317,13 +317,13 @@ function ext_rep_change() { $wkportdesc): ?> - +
Specify the port on the machine with the IP address entered above. In case of a port range, specify -- cgit v1.1