Option to filter state table contents by rule ID
The Diag > States page can already filter by ruleid but only when the page is called with that via the firewall rules page.
Add a filtering option on the page to allow doing so manually from there. That would also serve to indicate the rules are filtered and by what IDs when coming from the firewall rules page.
Displaying the rule label next to the IDs would be helpful for the user as the ruleids are not generally used elsewhere in the gui.
Updated by Reid Linnemann 2 months ago
- Status changed from New to Resolved
Input field added in 87b9ecff572e364f58b36293981b4c9b9ae20683
Mapping states to rules by rule id to get descriptions is problematic at the moment, as the rule id for a long-lived state can be stale if the rules have been reloaded, and pfSense_get_pf_rules() does not export all of the labels. This will be deferred for a future enhancement, during which point the rule based state filtering will likely utilize the more reliable tracker id instead of the volatile rule id