Network diagram tips · guide

Verify Firewall Rules Match Your Segmentation Policy

How to verify firewall rules match your segmentation policy: write a flow register, map zones, check every rule both ways, confirm with traffic, pick tools.

By Luke Ponio. Free to read, no sign-up. Every drawing comes from the sample sites in Network Diagrams by Industry.

Short answer

To verify that firewall rules match your segmentation policy, write the policy as a flow register (one row per allowed conversation between zones, default deny for the rest), map every firewall interface and address object to a zone, and read each rule as a zone-to-zone flow. Every rule should match a row and every row should be backed by a rule: a rule with no row is a finding. Then confirm with traffic logs or a test from each zone, and repeat after every significant change and at least once a year.

Why drawn segmentation and enforced segmentation drift apart

Every network has two versions of its segmentation. One is on paper: the zones on the diagram and the list of what may cross between them. The other is in the firewall: the rules that actually decide. They start out the same and drift apart one change at a time. A vendor needs access for a weekend and the rule stays. A new application gets an "any" port because nobody knew which one it used. An object called OT-Servers quietly gains an office subnet.

Nobody sees the gap until an assessor, an insurer or an incident finds it. The only fix is to compare the two on purpose, rule by rule.

Step 1. Write the policy as a flow register

You can't check rules against a policy that lives in someone's head. Write it as a flow register:

  • Default deny at the top, in words.
  • One row per allowed conversation: source zone, destination zone, who starts it, protocol and port, purpose, owner, review date.
  • Zones, not hosts, in the source and destination columns, so one row covers a whole class of traffic.

If your diagram doesn't show zones yet, start there. The free chapter for your industry shows how to choose them: plants, stores, banks, schools and every other kind of site.

Flow register example: one row per allowed conversation between zones

A flow register from the Plant A sample: every allowed conversation between zones, with its path and the default for anything not listed.

Step 2. Map the firewall's world onto your zones

Firewalls don't know your zones. They know interfaces, security zones of their own, address objects and groups. Build a short map from each of those to one of your zones. Anything that maps to two zones at once is your first finding: an interface or object that straddles a boundary.

Step 3. Export the rules and read each one as a zone-to-zone flow

Export the configuration, not a screenshot: the security rules, NAT rules and the objects they use. Then rewrite each rule in the register's terms: from zone, to zone, service, direction. A rule from inside to dmz on tcp/443 becomes "corporate users to IDMZ web proxy, HTTPS, users start it".

Step 4. Compare in both directions

  • A rule with no register row is a finding. Either the register is missing a real need, or the firewall allows something nobody approved. The second is more common.
  • A register row with no rule is dead documentation, or a broken application someone worked around.
  • Broader than the row: the row says one port and the rule says any, or the row names one zone and the rule's object covers two.
  • Rules that never match: shadowed by an earlier rule, or with zero hits for a year. They hide intent and get copied into the next firewall.

Step 5. Confirm with traffic

A rule base shows what is allowed, not what happens. Check it against what really crosses: hit counts, a few weeks of traffic logs, or a test from a host in each zone toward the things it should be refused. If you use segmentation to shrink PCI DSS scope, requirement 11.4.5 asks for penetration tests of the segmentation controls at least once every 12 months and after any change to them.

Step 6. Fix, record and repeat

Turn each finding into a proposed rule change with a way back, agree it with the owner, and record the date of the review on the drawing and the register. Repeat after every significant change and at least once a year. PCI DSS asks for network security control configurations to be reviewed at least every six months (requirement 1.2.7).

Tools that audit network segmentation

Kind of tool Examples What it does well
Your drawing and register NetDiagrams (free, open source) Draws the zones from NetBox and gives you the register's structure: the reference everything else is compared with
Segmentation audit for IT/OT firewalls SegAudit Reads a Palo Alto, FortiGate, Cisco ASA, Cisco FTD or Check Point config, with a traffic log when you have one, shows where rules and traffic depart from your zones and conduits, and proposes rule changes with a rollback. Runs offline
Configuration modelling Batfish (open source) Models device configurations and answers reachability questions, such as "can anything in zone A reach port 502 in zone B?"
Firewall policy management suites AlgoSec, Tufin, FireMon Rule base analysis, change workflow and compliance reports across many firewalls, for large estates
Active testing nmap from each zone Proves what really crosses, one source at a time

No tool replaces Step 1. Each of them compares the firewall with something, and if that something is a vague idea of the network, the result is a vague finding.

Try SegAudit's free Quick Check: drop a firewall config and see which rules open paths into your control network. Nothing is uploaded.

Where to go next

The books behind these drawings

Pick the field guide for your kind of site

Each book takes one industry from blank page to a drawing set an auditor accepts, with the sample site, worksheets and a free chapter to try first.

Cover: Draw Secure Manufacturing Network Diagrams

BOOK 1 · MANUFACTURING

Draw Secure Manufacturing Network Diagrams

From Plant Floor to Purdue Model

Purdue levels, IDMZ, cell/area zones and conduits, rings and HA pairs, drawn so the auditor and the night shift read the same page.

349 pages · $39

Cover: Draw Secure School Network Diagrams

BOOK 2 · EDUCATION

Draw Secure School Network Diagrams

From Classroom to Campus Network

Staff, student, guest and building systems zones, Wi-Fi for thousands of Chromebooks, and the district WAN.

409 pages · $39

Cover: Draw Secure Warehouse Network Diagrams

BOOK 3 · WAREHOUSING AND LOGISTICS

Draw Secure Warehouse Network Diagrams

From Dock Door to Warehouse Wi-Fi

Conveyors, sorters, handhelds and AGVs, heavy Wi-Fi, and the dock, carrier and client connections.

387 pages · $39

Cover: Draw Secure Retail Network Diagrams

BOOK 4 · RETAIL

Draw Secure Retail Network Diagrams

From Point of Sale to PCI Segmentation

Cardholder data segmentation, POS, guest Wi-Fi and store IoT, from three stores to three hundred.

387 pages · $39

Cover: Draw Secure Small Office Network Diagrams

BOOK 5 · OFFICES

Draw Secure Small Office Network Diagrams

From Front Desk to Firewall

One firewall in the middle, MSP access, cloud and remote work, and branches, drawn for the insurer's questionnaire and the next MSP.

389 pages · $39

Cover: Draw Secure Bank and Credit Union Network Diagrams

BOOK 6 · BANKS AND CREDIT UNIONS

Draw Secure Bank and Credit Union Network Diagrams

From Teller Line to FFIEC Exam

Teller, wire room and card zones, the core processor's router, ATMs and alarm boxes, and branches, drawn for the examiner's request list.

376 pages · $39

Cover: Draw Secure Local Government Network Diagrams

BOOK 7 · LOCAL GOVERNMENT

Draw Secure Local Government Network Diagrams

From City Hall to CJIS Compliance

City hall, the police wing and CJIS, public Wi-Fi at the library and parks, closets in buildings you don't control, and water systems drawn as a boundary.

399 pages · $39

Cover: Draw Secure Hotel Network Diagrams

BOOK 8 · HOTELS AND HOSPITALITY

Draw Secure Hotel Network Diagrams

From Guest Room to Boiler Room

Front desk, restaurant and spa payments, guest and conference Wi-Fi, door locks and building systems, and the owner, brand and management company split.

381 pages · $39

Cover: Draw Secure Corporate Network Diagrams

BOOK 9 · CORPORATE HQ AND MULTI-SITE

Draw Secure Corporate Network Diagrams

From Campus Core to Branch WAN

VRFs and internal firewalls, campus fiber and risers, the data center, SD-WAN branches, and a chapter on law firms and the ethical wall.

385 pages · $39

Cover: Draw Secure Car Dealership Network Diagrams

BOOK 10 · CAR DEALERSHIPS

Draw Secure Car Dealership Network Diagrams

From Showroom to FTC Safeguards Rule

F&I and the credit file, the DMS outside your walls, shop diagnostic tools, lounge and lot Wi-Fi, and more rooftops, drawn for the FTC Safeguards Rule.

409 pages · $39