PRACTITIONERCHAPTER 08

Firewall rules and access reviews

A rule is a claim that someone needs a path for a reason: review each one for an owner, evidence and a way back, and remove what nobody can defend without stopping a line

40 MINNETWORK ENGINEERUPDATED 2026-11-21
PREDICT

At the quarterly review, one rule on Crustwell's head office firewall shows zero hits in the last 94 days. The comment is blank and the listed owner left the company. What does the zero tell you?

A firewall rule set grows in one direction. Adding a rule is a ticket and ten minutes. Removing one needs somebody to say they are sure, and nobody is ever sure. After three years most companies have hundreds of rules, a good share of them written for a project, a vendor or a person who has gone. The set still works, so nobody notices what it has become: a record of every request anyone ever made, with no way to tell which are still true.

This chapter is about the review that cleans that up, and about the neighbouring review that asks who may use the paths and who may change them. It follows Hajara at Crustwell, the packaged food and drink company with 2,200 staff, a head office in Lagos and the factory at Agbara. The factory network has no outbound internet and runs only approved machine images, so very little there is meant to reach out. That makes every rule into the factory more expensive to get wrong in both directions: too wide and it defeats the segmentation, too narrow and a line stops. The rule counts, hit figures and dates are illustrative. They show the method, not a benchmark.

It does not teach how to build the segmentation or how to run an audit. The security chapters own that: cloud and infrastructure security covers auditing networks and rules the way an attacker reads them, identity, access and secrets covers the access review itself, and compliance and audits covers what an auditor tests. The Networking and Cloud Networks course will cover firewall mechanisms in full. This chapter teaches your angle: the review as a piece of network work, with a verdict for each rule, evidence for the verdict and a plan to remove what must go.

The model: a rule is a claim

Read a rule as a sentence: this source needs this service on this destination, because of this reason, and this person will say so. Each part can be wrong, and a review checks each one.

Part of the claim What you check How it goes wrong
Source, destination, service Is it as narrow as the real need? A whole subnet where one host needs it, or “any” service where one port is used
Reason Is there a comment or ticket that explains why? “temp”, “project”, or nothing
Owner Is there a living person, or a team, who can say it is still needed? The owner has left, moved, or never existed
Evidence Does traffic still match it, over a long enough period? The counter was reset, or the logs are shorter than the rule’s rhythm
Way back Can you restore it quickly if removal breaks something? Nobody exported the policy before the change

A rule that fails none of these is healthy, however old it is. A rule that fails the owner test is a problem even if traffic still uses it, because nobody can say what it is for, so nobody can narrow it. The review is therefore not a hunt for old rules. It is a hunt for rules whose claim cannot be defended.

The standard reference for what a firewall policy is and how to plan one is NIST’s Guidelines on Firewalls and Firewall Policy (SP 800-41 Revision 1, 2009), listed in the reading. It is guidance, not a legal requirement. Use it as the common vocabulary for conversations with the security team.

What the evidence can and cannot tell you

Most of a review depends on two kinds of evidence, and each has a blind spot.

Hit counters. Most firewalls count how often each rule matched. It is the cheapest evidence, and it answers “has anything matched this since the counter started?” Three things limit it. The counter starts at some moment you may not know: a reboot, a failover to the other firewall in the pair, a policy push, or an upgrade. It counts matches, not distinct users, so 4 million hits may be one chatty monitoring tool. And a rule low in the order only counts what the rules above it did not catch.

Logs. A rule that logs gives you who talked to whom: source, destination, service, time. This is the evidence that lets you replace a wide rule with narrow ones. It has a cost, since logging every match on a busy rule produces a great deal of data, and a limit: a log kept for 30 days says nothing about a job that runs once a quarter.

The skill is matching the evidence window to the rule’s rhythm. Ask of every rule: how often should this traffic happen? Constantly, like a database connection. Monthly, like a patch push. Quarterly, like a disaster-recovery test. Annually, like a December stock count. Then check that your evidence covers at least one full cycle of that rhythm. Where it does not, you cannot conclude the rule is unused, and you ask the owner instead. If there is no owner, you disable the rule rather than delete it, and let the quarter tell you.

In the cloud, the same job is done with security groups and network access lists, and the evidence comes from flow logs. They have their own limits, which the provider documents. Read the flow log limitations page before you trust a flow log’s silence.

The kinds of bad rule

Most rules that deserve attention fall into a few families. Naming them makes the review faster, because you look for each deliberately.

Kind What it looks like Usual action
Any-to-any, or any service Source and destination both wide, or “any” in the service field Read the logs, then replace with the real flows
Wider than the need A /16 where two hosts talk, or a whole range of ports Narrow to the hosts and ports in the logs
Ownerless The owner left, or the field is blank Find a new owner, or treat as a candidate for removal
Temporary and never removed “until go-live”, “project”, an old ticket number Check whether the project ended; usually disable
Shadowed or redundant An earlier rule already matches the traffic, or two rules say the same Remove after confirming by rule order, not counters
Dead objects The rule refers to a host or subnet that no longer exists Remove, after checking the object is gone
Disabled and kept A switched-off rule that has sat there for a year Delete; it is clutter that confuses the next reader

The first two are the dangerous ones, because they quietly widen what an attacker or a mistake can reach. The last four are clutter: they do little harm directly but make the set harder to read, and a rule set nobody can read is one nobody can review.

Removing a rule without stopping a line

The hard part is not deciding to remove a rule. It is removing it without becoming the person who stopped the packing line. The method is a staircase, and each step makes the next one safer.

  1. Ask. Find the owner. For a rule with a living owner, send the rule, the evidence and a deadline. Silence is not consent, so say what happens next: “if I hear nothing by Friday I disable it in Sunday’s window.”
  2. Observe. If the evidence is thin, turn on logging for the rule and wait for a full cycle of its rhythm. This costs calendar time, not effort.
  3. Replace. Where traffic is real but the rule is wide, write the narrow rules the logs show, place them above the wide rule, and confirm the traffic still flows.
  4. Disable. Switch the wide rule off. Do not delete it. Keep the exported policy from before the change, because the way back must not depend on memory.
  5. Hold. Leave the rule disabled for as long as your evidence did not cover. A quarter is a common choice for rules that might serve a quarterly flow. This is a rule of thumb, not a standard.
  6. Delete. At the next review, if nothing has complained, delete it and record the deletion.

Every step goes through the same change discipline as any other network change: a plan, a window and a rollback. Changes: the plan, the window and the rollback teaches that in full, and A network engineer’s week shows what a window costs on your calendar. Here the point is the timing. At Crustwell, a change on the Agbara side waits for the Sunday 02:00 to 05:00 stop, and a change on the head office side goes into a window between 21:00 and 23:00 after the Monday 14:00 change review approves it. So a rule you decide to disable on Tuesday may not come off until Sunday. Put the approval date and the window on the plan before you promise anyone a date.

The staircase also tells you what to do when pressed. A manager who says to remove it today is asking for step 4 without steps 1 to 3. The answer is not a refusal. It is the date of step 4, with the evidence that makes it safe.

Access reviews: who may use the paths, and who may change the rules

A firewall review checks the rules. An access review checks the people. They are different questions, and a network team usually owns pieces of both.

Who may use a path. Some rules open a path for a group of people rather than a machine: a VPN pool for contractors, a vendor’s remote-support access to a line controller, an admin subnet. The question is whether each person, group or vendor behind the rule still needs it. This is a standard access review, and identity, access and secrets teaches how to run one well: scoped by risk, reviewed by the person who can judge the need, and followed through to removal. Your part is to supply the list of what sits behind each network rule and to make the removal happen on the firewall.

Who may change the rules. The accounts that can edit the firewall are the most powerful accounts in the network. The review asks who has an administrator login on each firewall and router, whether any logins are shared, whether a vendor still has one, and whether leavers’ accounts were removed. This is also the list Crustwell’s auditors ask for, alongside the firewall review record. Shared administrator logins are the common finding: they save a minute and destroy the record of who made a change.

Standing access that should be on request. Many rules give someone permanent access they use twice a year. A vendor who services a filling-line controller in March and September does not need a rule open for twelve months. A better design keeps the rule disabled and switches it on, through a ticket, for the visit, with an expiry. It also fixes the zero-hit problem, because a rule that is off by default has a clear reason to be off.

The request: stop the problem at the door

A review is the expensive way to find ownerless rules. The cheap way is a request that cannot be approved without the claim. A new rule needs a source, a destination, a service, a reason, a named owner and an expiry or review date. Temporary rules get an expiry by default, and the expiry creates the ticket that removes them. The owner is a person or team that exists in the directory, not a project name.

This is dull, and it works. Most of the rules that fail a review at Crustwell would have failed it at the door.

Where practitioners disagree

Hit counts or owner sign-off. Some teams remove by evidence: no hits for 90 days, and the rule goes. Others remove by testimony: the owner confirms the rule is still needed. Counters miss rare flows, and owners misremember or give a reflexive “keep”. Most careful teams use both, and treat disagreement between them as the interesting case.

Delete or disable. Disabling is safer and leaves clutter, and some teams keep disabled rules for years. Deleting is cleaner and harder to undo. The usual compromise is the staircase above: disable, hold for a fixed period, then delete at the next review.

Who owns the rule. In some companies the network team owns every rule and asks the business about each. In others the application owner owns the rule and the network team only enforces it. The second scales better and is harder to enforce, because owners change jobs. Whichever you choose, the field must name a living person or team.

Tools or a spreadsheet. Policy-analysis products can find shadowed and redundant rules across a large estate. For one pair of firewalls and a few hundred rules, a careful read and an export in a spreadsheet are enough, and they teach you the network. Buy a tool when the reading has become the bottleneck, not before.

How tight a factory should be. Security teams want default deny between zones. Factory engineers know that an unexpected block stops a line, and a line stop costs far more than a loose rule. Both are right. The way through is evidence and a window, not a policy argument: tighten what the logs show, at the stop, with the way back ready.

Day to day

At a team of three, the review is a recurring block, not a project.

Weekly. Rule requests arrive through the same queue as other tickets. Check each has the six fields before it goes to the Monday 14:00 change review. A request without an owner goes back.

After each change. Attach the approval, the plan and the checks to the record before you close it. The firewall changes are part of the quarter’s 112 changes, and the auditors sample 30 of them.

Monthly. Look at the temporary rules whose expiry falls in the coming month, and ask each owner whether to renew. Check the list of firewall administrator accounts against the leavers list from HR.

Quarterly. The review itself. For Crustwell’s head office firewall pair, Hajara exports the rule set and the hit counters, notes when the counters were last reset, and pulls the logs. She adds an owner, a rhythm and a verdict for each rule, sends owners their rules with a deadline, and takes the removals to the Monday change review. Thandeka, the IT risk analyst on the head of IT infrastructure’s staff, keeps the review record, which is also what the auditors ask for. The whole thing takes a few days spread across two weeks, most of it chasing owners.

Quarterly, the other half. The access review: the firewall administrator list, the VPN groups and the vendor access, each signed off by the person who can judge the need.

When it breaks. A review that turns up a rule nobody can explain, on a network that carries ERP traffic and CCTV backup, is a risk decision and not a network one. Take it to the head of IT infrastructure with the evidence and a recommended action, and do not make the call alone.

Where reviews go wrong

Treating zero hits as proof. A December job is removed in October and found in December, at the worst time.

Deleting first. The wrong rule goes, there is no export, and the rule is rebuilt from memory at night.

No owner on the result. The review ends with a list of ten findings and no name against any of them, so a quarter later the same ten are there.

Reviewing the rules and not the logins. The rule set is clean and four people share one administrator password.

Doing it once. A clean set in January is dirty by June. The value is in the cadence and in the request that stops the mess arriving.

BY ORG SIZE
STARTUPunder 30 people

There is one firewall, or a set of cloud security groups, and whoever built it still remembers why each rule exists. That memory is the only record, and it leaves with the person. Do two things early: put a reason and an owner in the comment on every new rule, and export the rule set to a file in version control once a quarter. Review the cloud security groups for anything open to the whole internet first. A review at this size takes an afternoon, and it is cheapest now.

SCALE-UP30 to 300

Rules arrive from several teams faster than anyone reviews them, and the first audit or customer questionnaire asks for the review record. The network team becomes the keeper of rules it did not write. Introduce the request fields and the expiry first, then the quarterly review, then a list of owners. Do not buy a tool before you have done the review by hand once. Agree who owns a rule that belongs to an application team that no longer exists.

ENTERPRISE300 and up

There are many firewalls, several vendors, cloud rules in more than one tenancy, and a security team that owns policy while the network team owns the devices. The problem is scale and politics: thousands of rules, owners in many departments, and change boards that slow every removal. Policy-analysis tools and a rule lifecycle in the request system earn their cost here. Settle who may approve a removal, because the review stalls when everyone may veto and nobody may decide.

ARTEFACT Review a firewall rule set ~60 MIN
YOU PRODUCEA firewall rule review with a verdict for every rule and a plan for the removals

Template

# Firewall rule review: <firewall or rule set> · <date>
Reviewer · Record keeper · Counters started: <date and why> · Logs kept for: <days> · Evidence saved at: <where>

## Rules
| # | Source → destination, service | Owner | Expected rhythm | Hits and window | Verdict | Action, window, restore |
|---|---|---|---|---|---|---|

Verdicts: keep · narrow · ask owner · disable · replace

## What the evidence cannot show
<Rules whose rhythm is longer than the logs, and what you do about them>

## Removals and changes
| Change | Approved at (date) | Window | Hold period | Delete at |
|---|---|---|---|---|

## Access behind the rules
<Groups, vendors and admin logins to review, and who signs each off>

## If we are wrong
<What would show a verdict was mistaken (a block report, a failed job), who is told, and the restore step>

## Decisions for someone else
<Anything that is a risk call, who decides, by when>
WORKED EXAMPLE

Crustwell, quarterly review of the head office firewall pair, outbound and cloud-facing rules. Hajara reviews with Thandeka keeping the record. The counters were reset 94 days ago by a firmware update, and the central log store keeps 90 days. The rule set shown here is cut to ten rules.

# Source → destination, service Owner Rhythm Hits (94 days) Verdict
1 Office LAN → internet via proxy, TCP 80/443 Head of IT infrastructure Constant 41,200,000 Keep
2 Internet → cloud web tier (distributor portal), TCP 443 ERP team lead Constant 3,180,000 Keep
3 App servers → cloud ERP integration, TCP 443 ERP team lead Constant 12,700,000 Keep
4 Cloud ERP → head office file server, TCP 445 ERP team lead Nightly, if used 0 Ask, then disable
5 Contractor VPN pool → finance subnet, any service None on record Daily 214 Replace
6 Test subnet → cloud, any service (“until go-live”) None on record None 0 Disable
7 Backup server → cloud storage, TCP 443 Head of IT infrastructure Quarterly DR test 3 Keep
8 Head office → cloud stock-count upload, TCP 443 Finance systems team lead Each December 0 Keep
9 Monitoring poller → site devices, UDP 161 Network team Constant 8,900,000 Keep
10 Admin workstations → firewall management, TCP 22/443 Network team Daily 1,430 Keep

What the evidence cannot show. Rule 8 shows zero because it runs once a year, in December, and the logs are 90 days. It stays, and its owner confirms the December use. Rule 4 might serve a rare export; the ERP team lead says an SFTP export replaced it two quarters ago, so it can go. Rule 7’s three hits are the quarterly disaster-recovery test.

Owners. Rules 5 and 6 have no owner on record. The finance systems team lead takes rule 5 once the replacement is in. Rule 6’s test subnet was decommissioned, so nobody needs it.

Removals. Rule 5 logged 214 hits from three addresses on two services (remote desktop and file sharing). Replace it with two rules for those addresses to the finance team’s two jump hosts, after the finance systems team lead confirms. Disable rules 4 and 6 and the old rule 5. Approved at Monday’s 14:00 review, run Wednesday 21:00 to 23:00 with the exported policy as the restore. Hold disabled for one quarter, delete at the next review.

Access behind the rules. Contractor VPN group: finance systems team lead signs off. Firewall administrators: 4 accounts listed; one shared login to be replaced by two named logins.

Evidence and self-correction. The counter export, the log query and the owners’ replies are attached to the review record. If a held rule’s removal causes a failure, the exported policy restores it in the next window and the rule’s rhythm is corrected in the record.

Decisions for someone else. None.

Tally: 7 keep, 2 disable (rules 4 and 6), 1 replace (rule 5), which makes 10.

Now you

You are Hajara. It is Monday morning and you are reviewing the Agbara firewall’s rules for traffic between head office and the factory. The counters started 61 days ago at a reboot and the logs are kept for 30 days. The any-to-any rule between the sites is a separate ticket (the decision below); it sits below these rules and is not in this list. The next Agbara window is Sunday 02:00 to 05:00, and today’s 14:00 change review can approve a plan for it. The factory engineering manager runs engineering at the factory. Chiyo is the controls engineer who looks after the line control systems and reports to the manager. Thandeka keeps the review record. Produce the review with a verdict for every rule, the changes for Sunday and what waits.

# Source → destination, service Owner on record Hits, last 30 days Notes
1 Head office planning server → line-scheduling server, TCP 1433 Chiyo 2,410,000 Last hit today
2 Historian → head office reporting server, TCP 1433 Chiyo 880,000 Last hit today
3 Head office patch server → factory servers, TCP 443 Network team 640 Last hit 9 days ago; patches go on within 14 days of an advisory
4 Monitoring poller → factory switches, UDP 161 Network team 5,100,000 Last hit today
5 Vendor remote support → filling-line controller, TCP 3389 Chiyo 0 Vendor visits in March and September
6 Head office IT workstations (whole subnet) → factory servers, TCP 3389 Left the company 14 months ago 3,900 Used by the three network engineers
7 Label printers → head office print server, TCP 9100 Factory engineering manager 0 Chiyo’s ticket note says label printing moved to a local server in March
8 Factory servers → head office time server, UDP 123 Network team 120,000 Last hit today

Self-check

DECIDE

Crustwell's firewall between head office and the Agbara factory has an any-to-any rule between head office and the factory, commented 'temp, project' and three years old. The factory engineering manager's team says it is not theirs, and head office server teams say the same. Hajara turned on logging for the rule 14 days ago, including a month-end close. The 4.2 million hits come from five flows that no narrower rule matches: ERP servers to the goods-in system, CCTV recorders to the backup store, quality-lab results to head office, dispatch scanners to the warehouse system, and the maintenance system to the line controllers. The link runs at 70% at peak. The factory's only stop is Sunday 02:00 to 05:00. What does Hajara do?

READING
  1. DOC
    Guidelines on Firewalls and Firewall Policy, NIST SP 800-41 Revision 1 Karen Scarfone and Paul Hoffman, NIST, 2009

    The public reference for what a firewall policy is and how to plan one. It is guidance, not a legal requirement. Read it for shared vocabulary with the security team, then compare its advice with your own rule set.

  2. BOOK
    The Practice of System and Network Administration, Volume 1, 3rd edition Thomas A. Limoncelli, Christina J. Hogan and Strata R. Chalup, 2016

    The standard general text on running IT operations. Read it for how teams make changes with a way back, which is the discipline that makes removing a rule safe. Read: The chapters on change management and on security in operations.

  3. DOC
    Flow log limitations, Amazon VPC User Guide Amazon Web Services

    What one cloud provider's flow logs do not capture, such as ARP traffic, and the records they can skip. Read it before you trust a flow log's silence as evidence that a security group rule is unused.

  4. DOC
    Zero Trust Architecture, NIST SP 800-207 NIST, 2020

    Defines zero trust architecture and its deployment models. Read it for the argument behind narrowing broad rules, and to see where a firewall rule set sits in a larger access design.

  5. DOC
    Microsegmentation in Zero Trust Part One: Introduction and Planning CISA, 2025

    Public guidance on planning microsegmentation. Read it when your review moves from removing bad rules to designing narrower segments between zones.

All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: Diagrams and documentation people use →