diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-02-27 23:45:35 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-02-27 23:45:35 +0000 |
commit | c5fc1b2e0f27011de86cf880214baeae411b20ca (patch) | |
tree | b86acfc033d20679e96c769551445af57332ed49 /usr/local | |
parent | 58dc3a03868d29d1684f3f0227f4da7c7e5f63a3 (diff) | |
download | pfsense-c5fc1b2e0f27011de86cf880214baeae411b20ca.zip pfsense-c5fc1b2e0f27011de86cf880214baeae411b20ca.tar.gz |
* Make the GUI aware that we can now handle DSCP in firewall rules
* Remove duplicate entry for clamav package in filter_rules_generate()
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index bc509d8..9aab47b 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -108,6 +108,9 @@ if (isset($id) && $a_filter[$id]) { $pconfig['dstmask'], $pconfig['dstnot'], $pconfig['dstbeginport'], $pconfig['dstendport']); + if ($a_filter[$id]['dscp'] <> "") + $pconfig['dscp'] = $a_filter[$id]['dscp']; + $pconfig['disabled'] = isset($a_filter[$id]['disabled']); $pconfig['log'] = isset($a_filter[$id]['log']); $pconfig['descr'] = $a_filter[$id]['descr']; @@ -384,6 +387,10 @@ if ($_POST) { $filterent['disabled'] = true; else unset($filterent['disabled']); + + if ($_POST['dscp']) + $filterent['dscp'] = $_POST['dscp']; + if ($_POST['log']) $filterent['log'] = true; else @@ -812,6 +819,14 @@ include("head.inc"); </span> </td> </tr> + <tr> + <td width="22%" valign="top" class="vncellreq">Diffserv Code Point</td> + <td width="78%" class="vtable"> + <input name="dscp" id="dscp" value="<?=htmlspecialchars($pconfig['dscp']);?>"> + <br /> + <span class="vexpl">Valid values are: af11, af12, af13, af21, af22, af23, af31, af32, af33, af41, af42, af43, EF, 1-64, 0x04-0xfc.</span> + </td> + </tr> <tr> <td width="22%" valign="top" class="vncellreq">Log</td> <td width="78%" class="vtable"> |