summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-11-25 11:11:15 +0000
committerErmal <eri@pfsense.org>2010-11-25 11:11:15 +0000
commit02d7e4a43b6c6e1f8345c7561394305185905b33 (patch)
treed48c3bc9ae1aed57ce834769786cdc04d61b292b /usr
parentfedab9987cfca680bdd8736eda7722ae9b4d8c3f (diff)
downloadpfsense-02d7e4a43b6c6e1f8345c7561394305185905b33.zip
pfsense-02d7e4a43b6c6e1f8345c7561394305185905b33.tar.gz
Resolves #1043. Do not allow limiters in floating rules without direction. It is invalid practice and while the backend skips it the user should be warned.
Diffstat (limited to 'usr')
-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 dfd94e6..8ef211b 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -362,6 +362,8 @@ if ($_POST) {
else if ($_POST['ackqueue'] == $_POST['defaultqueue'])
$input_errors[] = gettext("Acknowledge queue and Queue cannot be the same.");
}
+ if (isset($_POST['floating']) && $_POST['pdnpipe'] && (empty($_POST['direction']) || $_POST['direction'] == "any"))
+ $input_errors[] = gettext("You can not use limiters in Floating rules without choosing a direction.");
if ($_POST['pdnpipe'] && $_POST['pdnpipe'] != "none") {
if ($_POST['dnpipe'] == "none" )
$input_errors[] = gettext("You must select a queue for the In direction before selecting one for Out too.");
OpenPOWER on IntegriCloud