Back to blogIT Hygiene: Cleaning Up Old Firewall Rules
    By Jeff Dennis, Founder & CEODecember 3, 2026

    IT Hygiene: Cleaning Up Old Firewall Rules

    IT Hygiene#it-hygiene#network-security#cis-controls

    Firewall rules pile up. A vendor needs remote access for an install, so somebody adds a rule. A new phone system needs a few ports opened. A contractor needs to reach a server for a project. A year later the project's done, the vendor's gone, and the rules are still sitting there.

    Each leftover rule is a small hole in the boundary between your network and the internet, or between segments inside your network. Most are harmless. Some aren't. This post lays out a simple routine for reviewing and cleaning them up.

    Why old rules matter

    Firewall rules decide what traffic is allowed in and out of the network and between internal segments. A rule nobody needs anymore can:

    • Expose a service to the internet that nobody's watching
    • Let a former vendor keep connecting
    • Let traffic flow between segments that are supposed to be separated, which quietly undoes your network design
    • Make the configuration harder to read, so the next change is more likely to go wrong

    Attackers scan the internet for exposed services all day long. An old remote desktop port forward or a forgotten management interface is exactly what they're looking for.

    What the frameworks say

    • CIS Controls v8.1, Control 4 (Secure Configuration of Enterprise Assets and Software) includes Safeguard 4.2, a secure configuration process for network infrastructure, and Safeguards 4.4 and 4.5, implementing and managing firewalls on servers and end-user devices. Control 12 (Network Infrastructure Management) covers keeping network infrastructure up to date (12.1), maintaining a secure network architecture (12.2), and keeping architecture diagrams current (12.4).
    • NIST SP 800-171 Rev. 2, requirement 3.13.1 calls for monitoring, controlling, and protecting communications at the external and key internal boundaries of systems. Requirement 3.13.6 calls for denying network traffic by default and allowing it by exception. For defense suppliers that handle CUI, these are assessed requirements. Not every manufacturer handles CUI, but the habit is worth having either way.
    • FTC Safeguards Rule, 16 CFR 314.4(c)(7) requires procedures for change management. Firewall changes are changes.
    • HIPAA risk analysis and the transmission security standard apply where a firewall protects systems that hold ePHI.

    A review routine

    Step 1: Export the rules

    Pull a current export of every rule on each firewall. Include internal segment rules, NAT rules, port forwards, and any cloud firewalls or security groups. People forget the cloud ones.

    Step 2: Write down why each rule exists

    For each rule, you want to know:

    • What it allows: source, destination, ports, and direction
    • Why it exists
    • Who asked for it and who owns it now
    • When it was created and when it was last used

    Most firewalls let you add a description or comment to each rule. If yours have none, the first review takes longer, but it's the most valuable part. From here on, don't allow a new rule without a description.

    Step 3: Check usage

    Most business firewalls track hit counts or log the traffic that matches each rule. Rules with no hits over a meaningful stretch of time are candidates for removal. Watch the timing, though. Some rules only get used for quarterly or annual work, like year-end reporting or a vendor's periodic maintenance.

    Step 4: Look for risky patterns

    Flag rules that:

    • Allow any source or any destination
    • Allow broad port ranges
    • Expose remote desktop, SSH, SMB, or a management interface to the internet
    • Point at IP addresses nobody recognizes anymore
    • Allow traffic between segments that are supposed to be separate
    • Duplicate or overlap other rules

    Step 5: Decide

    For each flagged or unused rule, keep it, tighten it, or remove it. Ask the owner if you know who that is. If nobody claims the rule and it isn't being used, disable it first instead of deleting it. If something breaks, you can turn it back on in a minute.

    Step 6: Make changes through change management

    Schedule the change, tell the people it could affect, have a rollback plan, and record what changed and why. The Safeguards Rule requires change management, and it's good practice everywhere else too.

    Step 7: Document

    Update the rule descriptions, your network diagram, and your record of the review. Note who did it and when. If someone asks next year whether the firewall gets reviewed, that record is the answer.

    How often to review

    There's no single right answer. Pick a cadence your team will actually keep, and review more often for firewalls that face the internet or protect sensitive systems. Also review after big events: a vendor offboarding, the end of a project, a network redesign, or a security incident. Our incident response policy guide covers who should have authority to change the firewall in the middle of an incident.

    Stop the buildup

    The easiest way to keep firewall rules clean is to control how they get added:

    • Require a request with a business reason for every new rule.
    • Record who asked and who owns it.
    • Put an expiration date on temporary rules, and set a reminder.
    • Use specific sources, destinations, and ports instead of broad ones.
    • Give vendors a managed remote access tool instead of a port forward.

    That last one ties straight into vendor management. Our posts on vetting vendor and app access and the vendor management policy go deeper. If your firewall also separates office and plant or jobsite networks, this post on flat OT and IT networks covers what those internal rules should be doing.

    If someone else manages your firewall

    If an IT provider manages your firewall, ask for a copy of the rule set and the date of the last review. You should be able to see what's allowed into your network and why. A good provider won't mind the question.

    Getting started

    Export the rules from your internet-facing firewall, look for anything that allows inbound access from the internet, and confirm each one is still needed. That one exercise usually finds the most important problems.

    Our cybersecurity services page explains how we manage firewalls for clients, our NIST 800-171 page and CMMC Level 2 guide cover boundary protection for defense suppliers, and our compliance checklist includes the network security items most frameworks expect. If you want a second set of eyes on your firewall rules, book your free risk review.

    IT Hygiene

    IT Hygiene: SPF, DKIM, and DMARC Without the Jargon

    SPF, DKIM, and DMARC in plain language: what each does, why it matters, and how to move to enforcement without blocking your own mail.

    Read article
    IT Hygiene

    IT Hygiene: Taking Local Admin Rights Away From Everyday Users

    Everyday accounts with admin rights make every bad click more dangerous. Why removing them matters, what the frameworks say, and how to roll it out without a revolt.

    Read article
    IT Hygiene

    IT Hygiene: Offboarding an Employee the Same Day

    Leftover accounts are an easy way in. A same-day offboarding checklist covering accounts, devices, shared credentials, vendor access, and the record you keep.

    Read article