From 66f445c3bc27304d2a02d0d0bc9f1064c415c745 Mon Sep 17 00:00:00 2001 From: Ermal Date: Fri, 16 Nov 2012 21:27:57 +0000 Subject: To allow limiters to work correctly on mutliwan for now enforce selecting a gateway on outgoing --- usr/local/www/firewall_rules_edit.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr/local') diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index 85a098d..aeab4e7 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -385,6 +385,8 @@ if ($_POST) { $input_errors[] = gettext("You cannot select one queue and one virtual interface for IN and Out. both must be from the same type."); else if ($dnpipe[0] == "?" && $pdnpipe[0] <> "?") $input_errors[] = gettext("You cannot select one queue and one virtual interface for IN and Out. both must be from the same type."); + if ($_POST['direction'] == "out" && empty($_POST['gateway'])) + $input_errors[] = gettext("Please select a gateway, normaly the interface selected gateway, so the limiters work correctly"); } if( !empty($_POST['ruleid']) && !ctype_digit($_POST['ruleid'])) $input_errors[] = gettext('ID must be an integer'); -- cgit v1.1