diff --git a/src/opnsense/scripts/filter/lib/states.py b/src/opnsense/scripts/filter/lib/states.py
index c63055821..bb5cda4b8 100755
--- a/src/opnsense/scripts/filter/lib/states.py
+++ b/src/opnsense/scripts/filter/lib/states.py
@@ -124,8 +124,10 @@ def query_states(rule_label, filter_str):
elif filter_str != "" and search_line.lower().find(filter_str.lower()) == -1:
# apply filter when provided
continue
- # append to response
- result.append(record)
+
+ if parts[0] == "id:":
+ # append to response
+ result.append(record)
elif len(parts) >= 6:
record = {
'label': '',
diff --git a/src/www/firewall_rules.php b/src/www/firewall_rules.php
index 934ca9d93..d286cdadb 100644
--- a/src/www/firewall_rules.php
+++ b/src/www/firewall_rules.php
@@ -713,7 +713,12 @@ $( document ).ready(function() {
* |
= !empty($rule_stats) ? $rule_stats['evaluations'] : gettext('N/A') ?> |
- = !empty($rule_stats) ? $rule_stats['states'] : gettext('N/A') ?> |
+
+getRef())):?>
+ " >= $rule_stats['states'];?>
+
+ = !empty($rule_stats) ? $rule_stats['states'] : gettext('N/A') ?> |
+
= !empty($rule_stats) ? $rule_stats['packets'] : gettext('N/A') ?> |
= !empty($rule_stats) ? format_bytes($rule_stats['bytes']) : gettext('N/A') ?> |
=$rule->getDescr();?> |
@@ -854,7 +859,14 @@ $( document ).ready(function() {
endif;?>
= !empty($all_rule_stats[$rule_hash]) ? $all_rule_stats[$rule_hash]['evaluations'] : gettext('N/A') ?> |
- = !empty($all_rule_stats[$rule_hash]) ? $all_rule_stats[$rule_hash]['states'] : gettext('N/A') ?> |
+
+
+ " >= $all_rule_stats[$rule_hash]['states'];?>
+
+ = gettext('N/A') ?>
+
+
+ |
= !empty($all_rule_stats[$rule_hash]) ? $all_rule_stats[$rule_hash]['packets'] : gettext('N/A') ?> |
= !empty($all_rule_stats[$rule_hash]) ? format_bytes($all_rule_stats[$rule_hash]['bytes']) : gettext('N/A') ?> |
|