Find Stale Firewall Rules Using Logs and Hit Counts
Before you begin
- Applies to:Firewall rule reviews using configuration and log evidence. The click paths use pfSense.
- Where to start:Open the firewall console and log platform with delegated read access.
- What you need:Identify rule owners and normal business cycles. Confirm how rule counters behave after reloads or failover.
Guide tools
Investigation Steps
Build a rule review inventory
Where to click
- Open Firewall โ Rules on the firewall.
- Select the interface and identify the exact rule and its logging status.
What to look for ยท Record rule identifiers, order, interfaces, sources, destinations, services, owner, purpose, and change references. Assess whether floating rules, aliases, NAT, HA, or time schedules change how the rule applies.
Compare counters with the right observation window
Where to click
- Open Status โ System Logs โ Firewall and filter the review window.
What to look for ยท Use the platformโs read-only ruleset or reports for hit evidence. Compare both active and standby paths as applicable. Validate logging and counter reset behavior. Include business cycles such as month-end, failover tests, and backups.
Ask the business owner to confirm the dependency
Record any matching traffic and its approved purpose. For zero-hit candidates, confirm with owners and approved logs before proposing removal. If another rule supersedes it, document the applicable order and conditions.
Stage the approved change and verify
VerifyBack up the current configuration and record the exact restore path. Disable one approved rule in a change window if appropriate. Test a known permitted workflow and expected deny behavior. Check logs and roll back if expected traffic fails.
Decide What to Do Next
| Finding | Next action |
|---|---|
| Counter is zero and logging is disabled | Establish coverage before calling the rule stale. |
| Owner confirms the dependency is retired | Stage the change with verification and rollback. |
References
Your feedback keeps these production procedures accurate and battle-tested.