Skip to main content
RunBook Academy

OPNsenseXLIV · Change Management and Rule ReviewRule review

Rule review cadence — the schedule that keeps the ruleset honest

Intermediate⏱ ~14 minpfctlconfigctlspreadsheet

What you'll learn

  • Choose a rule review cadence appropriate to the size and criticality of the firewall estate
  • Distinguish the four reviews — weekly operational, monthly hygiene, quarterly security, annual compliance — and what each looks for
  • Produce evidence from each review: change-log diffs, rule counts, alias utilisation, dead-rule counts
  • Recognise the signs that a ruleset is rotting and a review is overdue

Prerequisites

Verified against OPNsense 25.x · FreeBSD 14.x · PF (FreeBSD packet filter) FreeBSD 14.x · Unbound 1.20+ · Kea DHCP OPNsense 25.x plugin · WireGuard in-kernel + OPNsense plugin · strongSwan (IPsec plugin) OPNsense 25.x plugin · OpenVPN 2.6.x · Suricata 7.x · 2026-08-14

Not yet marked complete on this device.

A firewall ruleset is not static. Every change adds rules; every incident adds aliases; every refactor leaves residue. Without a deliberate review cadence, the ruleset accumulates rules that no one can explain, aliases that no one uses, and exceptions that no one tracks. The review cadence is the schedule that prevents the accumulation.

This lesson covers the four reviews in a production cadence: weekly operational, monthly hygiene, quarterly security, annual compliance. What each review looks for, who attends, what evidence each review produces.

The four reviews

The four reviews differ in frequency, scope, and audience. The cadence is not four identical reviews at different intervals; it is four distinct reviews with distinct purposes.

Weekly operational review

Frequency: weekly. Duration: 30-60 minutes. Audience: the on-call operator, the firewall lead.

The weekly review looks at:

  • Changes from the past week. What was changed, by whom, with what approval. The review reads the change tickets and confirms each change is documented and verified.
  • Incidents from the past week. What incidents occurred, which rules were involved, whether the rules behaved as intended.
  • Anomalies from the past week. Log lines that look unusual, alerts that fired, state-table growth, traffic spikes.

The weekly review produces a one-page summary: changes, incidents, anomalies, action items. The summary is the audit trail for the week; the next incident investigation has the context.

Monthly hygiene review

Frequency: monthly. Duration: 2-4 hours. Audience: the firewall lead, a senior operator, optionally a security engineer.

The monthly review looks at:

  • Rule counts. Total rules, rules per interface, rules per category. Trends over the month. A growing count without a corresponding growth in traffic is a sign of rot.
  • Alias utilisation. Which aliases are used by which rules; which aliases are unused. An unused alias is a candidate for removal.
  • Dead rules. Rules that have not matched in the past 30 days. A dead rule is a candidate for review (and possibly removal).
  • Duplicate rules. Rules that match the same traffic pattern with different actions. One is shadowing the other.
  • Expired rules. Rules with a schedule that has expired, rules tied to a temporary incident that has been resolved.

The monthly review produces a list of candidate actions: rules to remove, aliases to clean up, duplicates to merge, expired rules to archive.

Read-only / SafeRule counts and interface distribution
$ pfctl -s rules | wc -l && pfctl -s rules | awk '{print $5}' | sort | uniq -c | sort -rn | head -10
847
443 on igb0
212 on igb1
96 on igb2
54 on igb3
21 on enc0
14 on igb0_vlan10
7 on lo0

Illustrative output

Quarterly security review

Frequency: quarterly. Duration: 4-8 hours. Audience: the firewall lead, a security engineer, optionally an external auditor.

The quarterly review looks at:

  • Rule posture. Default-deny vs default-allow. Floating rules vs interface rules. Aliases that bypass the policy. The review checks that the ruleset enforces the documented security policy.
  • Source/destination hygiene. Rules with overly broad sources (any, 0.0.0.0/0) or destinations. Rules with internal RFC1918 sources on the WAN interface. Rules with destinations that have not been used in the past 90 days.
  • Logging posture. Which rules log, which rules do not. The review checks that high-risk rules log and that log destinations are configured.
  • Anti-spoofing. Rules on the WAN interface that block spoofed sources. Bogon blocking. Private-range blocking on the WAN interface.
  • Compliance posture. For regulated environments, the ruleset compared against the compliance baseline. PCI-DSS, HIPAA, SOC2 controls relevant to firewall policy.

The quarterly review produces a security posture report. The report is a section of the broader security review; the firewall portion is the ruleset analysis.

Annual compliance review

Frequency: annually. Duration: 1-2 days. Audience: the firewall lead, the security team, the compliance team, optionally an external auditor.

The annual review is the deepest review. It looks at:

  • Compliance baseline. PCI-DSS Requirement 1 (network security controls), HIPAA Security Rule (§164.312(e)(1)), SOC 2 CC6.6, NIST 800-41. The review checks each control against the ruleset.
  • Change management audit. Every change in the past year. Was each change documented? Approved? Verified? Rolled back when necessary?
  • Incident retrospective. Every firewall incident in the past year. What was the root cause? What rule changes followed? Are the follow-ups still in place?
  • Capacity review. State-table sizing, log retention, alias growth. Is the firewall still right-sized for the estate?
  • Architecture review. Is the ruleset still aligned with the network architecture? Have there been changes (new VLANs, new VPNs, new services) that the ruleset has not absorbed?

The annual review produces a compliance report. The report is the auditor’s evidence that the firewall estate is under control.

Recognising that a review is overdue

The ruleset that needs a review shows signs:

  • The operator cannot explain a rule. When the on-call operator is asked “what does this rule do?” and cannot answer, the ruleset has drifted past documentation.
  • The change log is missing entries. When the operator searches the change log for a recent change and finds no entry, the change was undocumented.
  • Aliases have grown without review. When the alias list has 200 entries and no one can name the owner of half of them, the aliases have rotted.
  • State-table entries exist for rules that should not match. When pfctl -s state shows flows against rules that should not be in the ruleset, the ruleset and reality have diverged.
  • Compliance evidence is missing. When the auditor asks for evidence of the last quarterly review and the team cannot produce it, the cadence has lapsed.

These signs are the operator’s early warning. A firewall that exhibits any of them needs an unscheduled review, plus a return to the cadence.

Summary

  • Four reviews at four cadences: weekly operational, monthly hygiene, quarterly security, annual compliance. Each has a distinct audience, duration, and output.
  • The weekly review produces a one-page summary. The monthly review produces a candidate-action list. The quarterly review produces a security posture report. The annual review produces a compliance report.
  • Signs that a review is overdue: unexplained rules, missing change-log entries, aliases without owners, state-table entries for rules that should not match, missing compliance evidence.
  • The review cadence is what keeps the ruleset honest. A firewall without a cadence is a firewall being trusted on hope.

Knowledge check · 3 questions

  1. Q1. Your firewall has been in production for 14 months. The on-call operator cannot explain three rules on the LAN interface. The change log is missing several entries from the past quarter. The aliases list has 200 entries, half without clear owners. Which review is most overdue?

  2. Q2. A growing rule count is itself a sign of ruleset rot, regardless of traffic growth.

  3. Q3. Which of the following belong in a monthly hygiene review? Select all that apply.

Passing score: 75%. Answers are checked in this browser.