mktxp fork: option to export zero-byte firewall rules (catch-all drop alerting) #146
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/iac#146
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
mktxp 2.1.0 only exports firewall rules that have matched at least once.
FirewallMetricsDataSource.metric_recordsis called withmatching_only=True(mktxp/datasource/firewall_ds.py,_get_recordsdropsbytes == 0), and no config key changes that. A rule that never fired has no series, so these alerts are impossible:[tf:in-drop],[tf:fw-drop]) stopped counting": you can't tell a flat counter from a missing one;Plan
lab/terraform-provider-routeros(a LAB.md listing the carried patches, upstream first).firewall_matching_only = True, keeping the upstream default, and pass it through the firewall collector for filter/raw/nat/mangle and IPv6.clusters/mini/monitoring/resources/mktxp-exporterat it withfirewall_matching_only = False.Cardinality: the routers carry about 25 filter rules each, so exporting all of them is cheap.
Refs lab/iac#139, lab/iac#67 (comment labels as rule identity).