From f883f1dd696fdc6f8e8ee887b20af90301698faa Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Sun, 20 Feb 2005 17:33:54 +0000 Subject: !any is invalid in nat rule --- usr/local/www/firewall_nat_out_edit.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'usr') diff --git a/usr/local/www/firewall_nat_out_edit.php b/usr/local/www/firewall_nat_out_edit.php index 0d4c991..bdf0242 100755 --- a/usr/local/www/firewall_nat_out_edit.php +++ b/usr/local/www/firewall_nat_out_edit.php @@ -105,6 +105,11 @@ if ($_POST) { $input_errors[] = "A valid destination bit count must be specified."; } } + if ($_POST['destination_type'] != "any") { + if ($_POST['destination_not']) + $input_errors[] = "Negating destination address of \"any\" is invalid."; + } + if ($_POST['target'] && !is_ipaddr($_POST['target'])) { $input_errors[] = "A valid target IP address must be specified."; } -- cgit v1.1