summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_rules_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-11-16 21:27:57 +0000
committerErmal <eri@pfsense.org>2012-11-16 21:28:21 +0000
commitfbc75dd5985edaa6e37e97c2bdb4f937d9303701 (patch)
tree10bb7ca244e0b3c78d9444dbd700953988335f11 /usr/local/www/firewall_rules_edit.php
parentb4227df690fb7a989ead9b3928ebaaaa34b495eb (diff)
downloadpfsense-fbc75dd5985edaa6e37e97c2bdb4f937d9303701.zip
pfsense-fbc75dd5985edaa6e37e97c2bdb4f937d9303701.tar.gz
To allow limiters to work correctly on mutliwan for now enforce selecting a gateway on outgoing
Diffstat (limited to 'usr/local/www/firewall_rules_edit.php')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index 1e7bf9e..383f5b6 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -451,6 +451,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 ($dnqlist[$_POST['dnpipe']][0] == "?" && $dnqlist[$_POST['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');
OpenPOWER on IntegriCloud