Centralising Traffic Inspection
This lesson explains how large organisations inspect traffic between VPCs, to and from the internet and to and from on-premises networks in one place, applying policy consistently and sharing the cost of the firewalls.
Learning outcomes
After completing this lesson, you will be able to:
- Describe the inspection VPC pattern.
- Explain how routing is kept symmetric for stateful firewalls.
- Choose between AWS Network Firewall and Gateway Load Balancer appliances.
- Choose between centralised and distributed inspection.
The inspection VPC pattern
A central VPC attached to a transit gateway hosts firewall endpoints in each Availability Zone. Transit gateway route tables send east-west traffic (between VPCs), north-south traffic (to the internet or on premises) or both through it. Spoke route tables point their default route at the inspection attachment, and the inspection VPC's own route table returns inspected traffic to the spokes.
The following diagram traces one flow between two spokes through the inspection VPC.

Symmetric routing
A stateful firewall must see both directions of a flow. Without intervention, the transit gateway may send the request through the firewall in one Availability Zone and the response through another, which drops the flow. Appliance mode on the inspection VPC attachment pins each flow to one Availability Zone for its lifetime. Cloud WAN achieves the same with service insertion in its network policy.
The following diagram shows the problem that appliance mode solves.

Inspection that drops traffic
Firewall options
Centralised inspection is built with one of two options. AWS Network Firewall is a managed firewall that scales automatically. It offers stateless rules, Suricata-compatible stateful rules, domain allow and deny lists based on TLS SNI and the HTTP Host header, managed threat signatures and TLS inspection, and it attaches natively to a transit gateway. A Gateway Load Balancer (GWLB) instead runs highly available fleets of third-party appliances, such as Palo Alto, Fortinet or Check Point. It passes traffic to them in GENEVE encapsulation through GWLB endpoints, which suits organisations that must keep a particular vendor's firewall. The following table summarises the options.
| Option | Features |
|---|---|
| AWS Network Firewall | Managed and scalable: stateless rules, Suricata-compatible stateful rules, domain allow and deny lists (SNI and HTTP host), managed threat signatures, TLS inspection; native transit gateway attachment |
| Gateway Load Balancer (GWLB) | Highly available fleets of third-party appliances (Palo Alto, Fortinet, Check Point) using GENEVE encapsulation and GWLB endpoints |
Centralised or distributed inspection
Centralised inspection places one firewall fleet behind the transit gateway and sends traffic from every VPC through it. Policy is consistent, there is one fleet to operate, and appliance cost is shared. The costs are transit gateway processing charges on every inspected byte and a shared failure domain: a problem in the inspection VPC affects every workload.
Distributed inspection places firewall endpoints in each VPC, for example between the internet gateway and public subnets using ingress routing. Traffic avoids the transit gateway hop, and a failure affects only one VPC, but there are more endpoints to pay for and to keep consistent. Many organisations combine the two: distributed inspection for internet ingress to public applications, where latency and blast radius matter, and centralised inspection for east-west and egress traffic, where consistent policy matters most.
Centralised or distributed?
Managing policy across accounts
Network Firewall rule groups and policies can be shared with other accounts through AWS RAM, and baseline firewall, WAF and DNS Firewall resources can be deployed to every account with StackSets, with AWS Config rules reporting resources that lack them.
Routing all spoke traffic through Network Firewall
All traffic between VPCs and to the internet must pass through AWS Network Firewall in a central inspection VPC. On the transit gateway, spokes use a route table whose only route sends everything to the inspection attachment, and the inspection VPC's attachment uses a table that knows every spoke:
# Spoke route table: everything goes to inspection
aws ec2 create-transit-gateway-route --transit-gateway-route-table-id $RT_SPOKES \
--destination-cidr-block 0.0.0.0/0 --transit-gateway-attachment-id $ATT_INSPECTION
# Firewall route table: learns the spoke CIDRs by propagation
aws ec2 enable-transit-gateway-route-table-propagation --transit-gateway-route-table-id $RT_FIREWALL \
--transit-gateway-attachment-id $ATT_SPOKE_1
# Keep both directions of each flow in the same AZ
aws ec2 modify-transit-gateway-vpc-attachment --transit-gateway-attachment-id $ATT_INSPECTION \
--options ApplianceModeSupport=enableInside the inspection VPC, the transit gateway attachment subnets route to the firewall endpoint in the same Availability Zone, and the firewall subnets route back to the transit gateway. Without appliance mode, the transit gateway may send a request through the firewall endpoint in one AZ and the reply through another, where the stateful engine has no record of the flow and drops it. This asymmetric-routing failure is a classic exam scenario.
What is the trade-off between centralised and distributed inspection?
Show answer
Centralised inspection sends many VPCs' traffic through one inspection VPC, which is simpler to manage but adds data processing cost. Distributed inspection places firewall endpoints in each VPC, avoiding the extra hop but multiplying deployments.
Exam Tips
Remember for the exam
- To inspect traffic between VPCs, use an inspection VPC behind a transit gateway with appliance mode.
- A scalable, highly available fleet of third-party firewalls points to Gateway Load Balancer.
- A managed stateful firewall with domain lists, IPS and TLS inspection points to Network Firewall.
- Appliance mode keeps both directions of a flow on the same firewall.
- For one firewall policy in many accounts, share Network Firewall policies through AWS RAM and inspect centrally.