From a0136e6262396d2b0d672039dbb3409a7e46029d Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 8 Sep 2005 20:40:03 +0000 Subject: Turn target ip into a drop down box. Subbmitted-by-i-dont-wanna-a-commit-bit: databeestje --- usr/local/www/firewall_nat_out_edit.php | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'usr/local/www/firewall_nat_out_edit.php') diff --git a/usr/local/www/firewall_nat_out_edit.php b/usr/local/www/firewall_nat_out_edit.php index ea8ef59..164297d 100755 --- a/usr/local/www/firewall_nat_out_edit.php +++ b/usr/local/www/firewall_nat_out_edit.php @@ -111,7 +111,7 @@ if ($_POST) { $input_errors[] = "A valid destination bit count must be specified."; } } - if ($_POST['destination_type'] != "any") { + if ($_POST['destination_type'] == "any") { if ($_POST['destination_not']) $input_errors[] = "Negating destination address of \"any\" is invalid."; } @@ -356,9 +356,22 @@ function sourcesel_change() { Target - -
- Packets matching this rule will be mapped to the IP address given here. Leave blank to use the selected interface's IP address. + +
+ Packets matching this rule will be mapped to the IP address given here.
+ If you want this rule to apply to another IP address than the IP address of the interface chosen above, + select it here (you need to define Virtual IP addresses on the first). + Also note that if you are trying to redirect connections on the LAN select the "any" option. +
Description -- cgit v1.1