ScaleMode

Home/Reference Architecture/Security and inspection

Layer 03 — Security and inspection

Policy intent, and what is actually enforced.

The policy that is enforced is the one the traffic path produces, not the one written in the standard. Those two agree far less often than anybody expects, and the gap between them is rarely the firewall's fault.

This environment is invented. It was built for these pages and does not describe any client, employer or real estate. Work produced under an engagement belongs to the client who commissioned it and is not republished in any form, redacted or otherwise. This environment is designed to contain the decisions worth discussing, which no single real estate ever does.

Watch it build 5 steps, then it loops.

14 branchessd-wan partialMPLSdual carrierData center AactiveData center BstandbyAWS regiontransit + inspectionAzurevirtual wanDR sitemanaged providerfirewall pairs, both sitesnine years of rulebaseinspection insertedNAT applied herereturn bypasses inspection

How this layer is put together.

Each step adds one part of the design. The last one is usually where the trouble lives.

  1. 01Firewall pairs sit at both data centers and at the internet edge, each pair configured to be identical to its partner.
  2. 02Segmentation between zones is enforced by a rulebase that has accumulated for roughly nine years, with every exception still in it.
  3. 03Inspection is inserted into the cloud path, so that traffic to and from the cloud region is examined in one place.
  4. 04Address translation is applied at several points along the path, changing what each subsequent device believes it is looking at.
  5. 05And the return path does not necessarily come back the way it left, which is the single assumption every stateful device in the chain is built on.

A firewall enforces its policy correctly and completely. Whether that policy describes the traffic anyone intended is a question about the path, not about the firewall.

Design decisions

5 choices, and what each one costs later.

None of these is a mistake. Each is a defensible trade made with the information available at the time. What they have in common is that the cost arrives somewhere other than where the decision was made — which is why it lands on somebody who was not in the room.

01

A rulebase grown rather than rebuilt

The decision. Rules are added as needs arise; the rulebase has not been rebuilt from intent.

Why it gets made. Rebuilding a production rulebase is a genuinely dangerous project with no visible benefit when it goes well. Deferring it is rational.

What it costs when it is wrong. Nobody can state what the rulebase permits. Shadowed rules, permissive rules kept for a migration that finished years ago, and any-any exceptions added during an incident all survive, because removing a rule nobody understands is riskier than leaving it.

Palo Alto Security Assessment →

02

Where address translation is applied

The decision. Translation happens at more than one point along the path.

Why it gets made. Each instance solved a real problem: overlapping ranges, a migration, a partner connection, a load balancer.

What it costs when it is wrong. Policy written for a client address is meaningless downstream of a device that replaced it. The firewall logs describe the translating device rather than the user, so both the rules and the forensics describe something other than what happened.

What the firewall sees is not the client →

03

Where inspection is inserted

The decision. Inspection is placed at one central point rather than distributed.

Why it gets made. One policy point, one audit surface, one set of rules to keep current. The alternative multiplies the maintenance.

What it costs when it is wrong. Every return path has to be steered back through it. One route-table entry sending return traffic direct leaves that workload uninspected, and because nothing fails there is nothing to alert on.

Traffic leaving uninspected →

04

Whether the pair is actually identical

The decision. High-availability pairs are kept in step by configuration synchronization.

Why it gets made. That is what synchronization is for, and its status is reported as healthy.

What it costs when it is wrong. A sync status reports success. It does not report equivalence, and it does not cover objects created outside the synchronized scope. The difference is discovered at failover, when the standby enforces a rulebase several revisions behind.

Data Center Failover Assessment →

05

Segmentation by zone or by policy tag

The decision. Zones are defined topologically, and policy is written between them.

Why it gets made. It maps cleanly onto how the network is built and how the team thinks about it.

What it costs when it is wrong. Topological zones stop describing the environment as soon as workloads move, which in a hybrid estate is continuously. Policy then reflects where something used to be, and the exceptions written to cope accumulate faster than the rules they patch.

Network Security →

Continue

The layers connect. That is the point.

Each layer is drawn on the same estate, so a decision taken here shows up as a constraint somewhere else. Reading two of them together is usually more informative than reading either one twice.

Recognize your own estate in this?

Most environments contain several of these decisions. Establishing which ones, and what they are costing, is what an assessment is for.