summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_rules_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-02-11 17:26:38 +0000
committerErmal <eri@pfsense.org>2011-02-11 17:26:38 +0000
commita391d0ab1255b11f6f2d1778423fe54e8fc9258b (patch)
tree5bb873a89be8aec3fef20cc75d9acf08a7320d83 /usr/local/www/firewall_rules_edit.php
parenta39c7dae5c762a77680634e821005d8fdf68b0c1 (diff)
downloadpfsense-a391d0ab1255b11f6f2d1778423fe54e8fc9258b.zip
pfsense-a391d0ab1255b11f6f2d1778423fe54e8fc9258b.tar.gz
Allow match action on Floating rules and exposed it with name Queue. More validation is needed.
Diffstat (limited to 'usr/local/www/firewall_rules_edit.php')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index 89d4ac8..d869ae6 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -196,6 +196,9 @@ if ($_POST) {
if ($_POST['type'] == "reject" && $_POST['proto'] <> "tcp")
$input_errors[] = gettext("Reject type rules only works when the protocol is set to TCP.");
+ if ($_POST['type'] == "match" && $_POST['defaultqueue'] == "none")
+ $input_errors[] = gettext("Queue type rules only work with queues.");
+
if (($_POST['proto'] != "tcp") && ($_POST['proto'] != "udp") && ($_POST['proto'] != "tcp/udp")) {
$_POST['srcbeginport'] = 0;
$_POST['srcendport'] = 0;
@@ -602,6 +605,9 @@ include("head.inc");
<?=htmlspecialchars($type);?>
</option>
<?php endforeach; ?>
+<?php if ($if == "FloatingRules" || isset($pconfig['floating'])): ?>
+ <option value="match" <?php if ("match" == strtolower($pconfig['type'])) echo "selected"; ?>>Queue</option>
+<?php endif; ?>
</select>
<br/>
<span class="vexpl">
OpenPOWER on IntegriCloud