Firewall rule review and cleanup for small organizations: how to audit a rule base, find any-any, shadowed and unused rules, control changes, log the right things and review every quarter
How to audit and clean up firewall rules: export, owners, any-any and shadowed rules, hit counts, change control, logging and a quarterly review.
Firewalls rarely fail because of the hardware. They fail because the rule base drifts. A vendor needed remote access “for one afternoon” three years ago. Someone allowed a whole subnet to fix a printer. A camera project added inbound NAT that nobody removed. Each change made sense at the time. Together they leave holes that nobody can explain.
This guide covers firewall rule review and cleanup for small offices, practices, nonprofits and schools: how to export and read a rule base, what to look for (any-any, shadowed, redundant, unused and temporary rules), how to clean up safely, what change control and logging should look like, and a quarterly review you can actually keep up. It is vendor-neutral.
How this differs from related posts: our business firewall buying guide and how to choose a firewall cover what to buy. Our VLAN and segmentation guide covers designing the inter-VLAN rule matrix in the first place. This post is about keeping an existing rule base correct over time.
What is a firewall rule review?
A firewall rule review is a scheduled check that every rule:
- still has a business reason someone can state,
- has a named owner,
- is as narrow as it can be (source, destination, service, time, user),
- sits in the right order,
- logs what it should, and
- matches the written firewall policy.
NIST SP 800-41 Rev. 1, Guidelines on Firewalls and Firewall Policy (final 09/2009, still NIST’s current firewall guide), puts it plainly: rulesets “can become increasingly complicated with age,” and “it is important to review the firewall policy often. Such a review can uncover rules that are no longer needed as well as new policy requirements that need to be added.” It adds that it is best to review “at regular intervals so that such reviews do not only happen during policy or security audits (or, worse, only during emergencies).”
What do the standards say?
| Source | What it says about rules | Notes |
|---|---|---|
| NIST SP 800-41 Rev. 1 (09/2009) | Deny by default: block all inbound and outbound traffic not expressly permitted. Rulesets as specific as possible. Comment every rule. Manage changes through formal configuration management and keep a log of all policy decisions and ruleset changes. Review at regular intervals, including all changes since the last review and who made them. Use automated review tools if available. Back up rulesets regularly. Alert on modification or disabling of rules. | Final; the current NIST firewall publication |
| CIS Controls v8.1 | Control 4 (Secure Configuration) includes Safeguard 4.1 Establish and Maintain a Secure Configuration Process and 4.2 … for Network Infrastructure; 4.7 Manage Default Accounts. Control 12 (Network Infrastructure Management) includes 12.1 Ensure Network Infrastructure is Up-to-Date, 12.2 Secure Network Architecture, 12.4 Architecture Diagram(s), 12.8 Dedicated Computing Resources for All Administrative Work. Control 13 includes 13.4 Perform Traffic Filtering Between Network Segments, 13.6 Collect Network Traffic Flow Logs and 13.10 Perform Application Layer Filtering. | Safeguard titles from the CIS Controls Navigator, 12/04/2026 |
| CISA CPG 2.0 (report revised 12/11/2025) | Goal 3.I: implement logical and physical network segmentation to limit the impact of a breach. | Voluntary; aimed at small and medium organizations among others |
| ASD’s ACSC and partners, edge device guidance (published with CISA 02/04/2025) | Management interfaces “are not directly exposed to the internet”; use ACLs to restrict who can reach management; disable services you do not use (for example an unused VPN); SNMPv3 only from approved endpoints. | Applies directly to the firewall’s own admin access |
| CISA BOD 26-02 (02/05/2026) | Federal civilian agencies must inventory and replace end-of-support edge devices on set timelines. | Federal only; a useful signal for everyone: an unsupported firewall cannot be fixed by rule review |
What should you collect before reviewing?
| Item | Why |
|---|---|
| Full configuration backup | So any change can be reversed |
| Security policy (rule) export with rule IDs, order, names, comments | The thing you are reviewing |
| NAT and port-forward table | Inbound exposure often lives here, not in the policy |
| Hit counts and last-hit timestamps for each rule | Shows which rules are used; note when counters were last reset |
| Address and service objects and groups | Broad objects (“All_Servers”, “Any_Vendor”) hide wide access |
| VPN configuration (site-to-site and remote access) | Who can come in, from where |
| Admin accounts, roles and allowed management sources | Who can change the firewall |
| Logging settings and log destinations | What is recorded and where it goes |
| A current network diagram and VLAN list | To understand source and destination zones; CIS Safeguard 12.4 |
| Change log or tickets since the last review | NIST says each review should examine all changes since the last one |
| Firmware version and support status | A rule review cannot fix an unpatched or end-of-support device |
Export to a spreadsheet with one row per rule. Add columns for owner, reason, ticket, last reviewed, finding and action.
Which problems should you look for?
| Finding | What it looks like | Risk | Typical action |
|---|---|---|---|
| Any-any allow | Source any, destination any, service any, action allow | The firewall stops filtering for that path | Replace with specific rules based on logs; remove |
| Overly broad rule | Whole subnets or “any” service where a host and port would do | Lateral movement, data exposure | Narrow to named hosts and services |
| Shadowed rule | Can never match because a broader rule above matches first | Hides intent; often masks a too-broad rule | Remove the shadowed rule or fix the broad one above it |
| Redundant or duplicate rule | Two rules allow the same thing | Confusion; one gets edited, the other does not | Merge |
| Unused rule | Zero hits over a full business cycle | Unneeded exposure; clutter | Disable, wait, then delete |
| Expired temporary rule | Vendor access, project, troubleshooting rule past its date | Forgotten back doors | Remove; add expiry dates going forward |
| Inbound to internal host | Port forward or allow from internet to a PC, NAS, camera recorder, RDP or SMB | Direct attack path | Remove; use VPN or a published service in a DMZ |
| Management exposed | Firewall admin (HTTPS, SSH, SNMP) reachable from WAN or guest | Edge device takeover | Restrict to a management network or VPN with MFA |
| Unrestricted outbound | Every inside network to internet on any port | Easy malware command and control and data theft | Limit device VLANs; consider staff restrictions |
| Disabled rules left in place | Old rules switched off but never removed | Re-enabled by mistake | Delete after confirming |
| No comment or owner | Nobody knows why it exists | Cannot be reviewed | Find owner or schedule for removal |
| No logging where it matters | Inbound allow, VPN, internal zone rules not logged | No evidence after an incident | Enable logging |
| Rules referencing dead objects | Hosts or subnets that no longer exist | Clutter; IP reuse can grant access to a new device | Remove or update |
| Security profiles missing | Internet rules without IPS, antivirus or web filtering where licensed | Less inspection than you paid for | Apply profiles |
Any-any and overly broad rules
An allow rule with any source, any destination and any service defeats the firewall. They usually appear during troubleshooting (“let’s just allow everything and see if it works”) or after a migration. The exception is the explicit deny-all at the bottom, which many teams add so denied traffic is logged.
Rules that are “any” in one field can be fine. “Any source to the public web server on TCP 443” is normal for a published website. “Staff VLAN to any destination on any port” between internal zones usually is not; it undoes the segmentation in your VLAN design.
How to narrow a broad rule without breaking things: turn on logging for it, collect a few weeks of traffic, list the real destinations and ports, write specific rules above it for that traffic, then disable the broad rule and watch for denies.
Shadowed and redundant rules
Most firewalls check rules top to bottom and stop at the first match. NIST notes that “many firewalls check traffic against rules in a sequential manner until a match is found.” That makes order matter:
| Order | Rule | Effect |
|---|---|---|
| 5 | Staff to any, TCP 443, allow | Matches all staff HTTPS |
| 12 | Staff to accounting server, TCP 443, allow | Shadowed: never matches |
| 13 | Guest to accounting server, TCP 443, deny | Fine |
If rule 5 is removed later, rule 12 starts matching, which may be correct. If rule 12 was meant to deny, the policy has been wrong all along. Many firewalls flag shadowed and redundant rules in a policy analysis view; NIST says such tools, where available, “should be used periodically, probably as part of the regular policy review.”
Unused rules
Hit counts show how often a rule matched. Before trusting zero:
- Check when counters were last reset (reboots, upgrades and HA failovers can reset them on some platforms).
- Think about seasonal traffic: year-end tax work, testing windows in schools, quarterly vendor maintenance, disaster recovery paths you only use in a test.
- Ask the owner.
Then disable, wait through a full cycle (often 30 to 90 days), and delete.
Inbound exposure and port forwards
Look at the NAT table as carefully as the policy. Common findings in small offices:
- Remote Desktop (TCP 3389) forwarded to a PC or server.
- File sharing (SMB) or a NAS admin page open to the internet.
- A camera recorder or door controller web interface forwarded for “remote viewing.”
- An old VPN or remote access product still listening.
Replace these with a VPN that requires MFA, a vendor’s supported cloud service, or a properly published service in a DMZ. CISA’s Known Exploited Vulnerabilities Catalog regularly lists internet-facing devices and remote access products; fewer exposed services means fewer emergencies.
The firewall’s own management
The edge device guidance from ASD’s ACSC, published with CISA and partners on 02/04/2025, says networked management interfaces “are not directly exposed to the internet,” recommends ACLs that restrict which addresses can reach management, dedicated management interfaces where possible, disabling unused services such as an unused VPN feature, and SNMPv3 only from approved endpoints. In a rule review, check:
- Admin HTTPS and SSH allowed only from a management VLAN or VPN, never from WAN or guest.
- Named admin accounts with MFA (CIS Safeguard 6.5, Require MFA for Administrative Access), no shared “admin.”
- Default accounts disabled or renamed with strong unique passwords (CIS Safeguard 4.7).
- Admin work from dedicated or hardened workstations where feasible (CIS Safeguard 12.8).
Outbound rules
NIST’s deny-by-default principle covers outbound as well as inbound. Small organizations often allow everything out from staff networks, which is a reasonable starting point. Device networks are different: cameras, door controllers, printers, building systems and point-of-sale devices rarely need open internet access. Limit them to the update and cloud services they use. Also check that only your DNS servers or filtering service can make outbound DNS queries; our DNS filtering guide explains why.
How do you clean up safely?
- Back up the full configuration and store it off the firewall.
- Pick a window with someone available to test and to roll back.
- Change one group of rules at a time. Small batches make problems easy to trace.
- Disable before deleting. Keep disabled rules for a set period with a comment saying when they can be removed.
- Add logging on rules you are narrowing, and watch the deny log afterwards.
- Test the business functions the rules support: line-of-business apps, phones, printing, cameras, VPN, vendor access.
- Record what changed, why, who approved and who did it.
- Delete disabled rules at the end of the waiting period.
Re-order with care
Put specific rules above general ones. NIST notes that for first-match firewalls, rules that match the most traffic can be placed higher for performance; on modern small-office hardware, clarity and correctness matter more than that optimization. A common layout:
| Section | Contents |
|---|---|
| 1 | Explicit denies for known-bad sources (threat feeds, geo-blocks if used) |
| 2 | Management access (management VLAN or VPN to firewall and network devices) |
| 3 | Infrastructure services (DNS, NTP, DHCP relay, logging, updates) |
| 4 | Inbound published services (to DMZ hosts only) |
| 5 | Inter-zone rules, grouped by source zone |
| 6 | Outbound internet rules, grouped by zone, with security profiles |
| 7 | Explicit deny-all with logging |
What should firewall change control look like?
NIST SP 800-41 Rev. 1 says changes to rulesets “impact security and should be managed as part of a formal configuration management process,” and that “at a minimum, a log should be kept of all policy decisions and ruleset changes.” For a small organization, that can be a shared form and a change log.
A firewall change request should state:
| Field | Example |
|---|---|
| Requester and business owner | Office manager; practice owner |
| Business need | New billing service must reach vendor API |
| Source | Billing server (named object) |
| Destination | Vendor API addresses or FQDN object |
| Service | TCP 443 |
| Duration | Permanent, or until a date |
| Logging | Yes |
| Risk notes | Outbound only; vendor publishes its address list |
| Approver | Someone other than the person making the change, where staff allow |
| Backup taken | Yes, file name and time |
| Test result | Billing sync succeeded |
| Rule ID and comment | Rule 42: “Billing to vendor API, ticket 1187, owner office manager, review 03/2027” |
Emergency changes happen. Allow them, but require the request and approval to be written up the next business day and reviewed in the next regular review.
Who can change the firewall is part of change control: NIST says to use restrictions on who can make changes and from which addresses where the firewall supports them. Turn on alerts for configuration changes so an unexpected change is noticed the same day.
What should firewall logging cover?
NIST says the firewall should store logs locally and send them “to a centralized log management infrastructure” where possible, that what to log is a case-by-case decision, and that real-time alerts should cover “any modifications or disabling of the firewall rules,” reboots and other operational events.
| Log or alert | Why |
|---|---|
| Admin logins (success and failure) | Detect misuse or brute force |
| Configuration changes, with the admin name | Change control evidence; NIST alert item |
| Rule disabled or deleted | NIST alert item |
| Inbound allows from the internet | Evidence of what reached internal services |
| VPN logins and failures | Remote access is a common attack path |
| Denies at the edge for sensitive services | Shows probing of RDP, SMB, admin ports |
| Inter-zone denies (during and after cleanup) | Shows what your changes blocked |
| Explicit deny-all | Catch-all record of blocked traffic |
| IPS and malware detections | Security events |
| HA failover, reboots, disk or log storage problems | Operational health |
Send logs to two destinations if you can, keep timestamps in sync with NTP, and decide how long to keep them. Our network monitoring and alerting guide covers syslog, alert routing and retention in detail. CIS Safeguard 13.6 (Collect Network Traffic Flow Logs) and 8.2 (Collect Audit Logs) cover the same ground from the controls side.
A quarterly firewall review you can keep up
Many small organizations review quarterly, with a quick monthly check of new and temporary rules. Your insurer, auditor or a standard that applies to you (PCI DSS for card data, for example) may set a stricter interval.
Monthly (30 minutes):
- List rules created or changed in the last month; confirm each has a ticket, owner and comment.
- Remove temporary rules past their expiry.
- Check that logs are still arriving at the central server.
- Check firmware and security subscription status.
Quarterly (half a day for a small rule base):
- Export rules, NAT and hit counts; compare with last quarter.
- Review every change since the last review, including who made it (a NIST review item).
- Flag any-any, broad, shadowed, redundant, unused and dead-object rules.
- Review the NAT table and every inbound allow.
- Review admin accounts, MFA, allowed management sources.
- Review VPN users; remove leavers and expired vendor accounts.
- Confirm configuration backups exist and one restore has been tested this year.
- Update the network diagram if anything moved.
- Write a one-page summary: findings, actions, owners, dates.
Annually or after big changes:
- Have someone outside the usual team look at the rule base; NIST suggests occasional audits “by people who are not part of the normal policy review team.”
- Re-read the written firewall policy and update it.
- Consider an external scan or penetration test to confirm the firewall blocks what you think it blocks. NIST notes penetration testing should be “in addition to, rather than instead of” a regular audit program.
- Check the firewall’s end-of-support date and plan replacement before it arrives.
Firewall rule review checklist
- Configuration backup taken and stored off the device.
- Rules, NAT, objects, hit counts and last-hit dates exported.
- Every rule has a name, comment, owner and ticket reference.
- No any-any allow rules.
- Broad rules narrowed to named hosts and services, or justified in writing.
- Shadowed and redundant rules removed or merged.
- Unused rules disabled, then deleted after a waiting period.
- Temporary rules have expiry dates; expired ones removed.
- No port forwards to PCs, NAS, recorders, RDP or SMB.
- Firewall management reachable only from a management network or VPN, with MFA and named accounts.
- Default accounts disabled or secured.
- Device VLANs have restricted outbound access.
- Only approved resolvers can send outbound DNS.
- Security profiles applied to internet rules where licensed.
- Explicit deny-all at the end, with logging.
- Logs sent to central storage; alerts on configuration change and rule disable.
- Change log updated with this review.
- Firmware current and device within vendor support.
- Next review date set.
Common mistakes
- Deleting first, asking later. Disable, wait, then delete.
- Trusting hit counters that reset at the last reboot.
- Ignoring the NAT table and reviewing only the policy.
- “Temporary” vendor access with no end date.
- Broad address objects that quietly grew to include whole networks.
- Cleaning up without logging, so nobody can see what broke.
- One person requests, makes and approves every change with no record.
- Reviewing rules on a device that is out of support. Plan the replacement; our firewall buying guide covers what to compare.
Notes for schools
Schools often have more zones (students, staff, guests, building systems, cameras, testing devices) and more seasonal traffic. Plan the main cleanup for summer, when testing and attendance systems are quiet, and do not delete rules with zero hits during summer without checking with the people who run fall testing and start-of-year systems. CIPA content filtering requirements are separate from firewall rule hygiene; our DNS filtering guide covers filtering. This post makes no claim that any service described here is E-Rate eligible.
Where Kyber Systems fits
Kyber Systems reviews and cleans up firewall rule bases for small offices, practices, nonprofits and schools in Jersey City, Hoboken and New York City as part of firewall and network security and managed IT services: exports and findings, safe staged cleanup, management access hardening, logging and alerting, change control templates and quarterly reviews. We work with the firewall you already have and do not endorse a brand in guides. We do not quote prices in guides.
Related guides
- Business firewall buying guide: what to compare before you buy
- VLANs and network segmentation for offices and schools: guest, IoT, camera, VoIP and staff networks, firewall rules and DHCP
- Zero trust for small organizations: practical first steps
- Network monitoring and alerting for small organizations: SNMP, syslog, NetFlow and IPFIX, what to monitor, alert fatigue, dashboards and log retention
- Remote access security for small organizations: VPN vs ZTNA vs remote desktop, RDP exposure, MFA, remote support tools and CISA hardening guidance
Checked against NIST SP 800-41 Rev. 1 (PDF and CSRC page), the CIS Controls v8.1 pages and Navigator, CISA’s CPG 2.0 report page, the CISA edge device guidance page and ASD’s practitioner guidance, and CISA BOD 26-02 on 12/04/2026. CIS Safeguard titles are quoted; read the full Safeguard text in the CIS Controls download. Vendor features for hit counts and policy analysis vary; check your firewall’s documentation.