Combined Inspection with AWS Network Firewall and AWS Transit Gateway
Publication date: March 16, 2022 (Diagram history)
This architecture shows how to use AWS Transit Gateway to centralize the east-west inspection between VPCs, while having a NAT gateway in the Inspection Amazon VPC for centralized egress and north-south inspection using AWS Network Firewall.
Combined inspection with Network Firewall architecture
The following steps describe the east-west traffic flow in this architecture:
-
Traffic from an instance in Spoke VPC A destined to another instance in Spoke VPC B (east-west traffic) is routed to the Transit Gateway.
-
The Transit Gateway route table associated with the attachment sends all the traffic (0.0.0.0/0) to the Inspection VPC.
-
The Inspection VPC TGW subnet route table sends all the traffic to the firewall endpoint. The allowed traffic is forwarded back to the TGW ENI.
-
As per the Transit Gateway route table associated with the Inspection VPC, the traffic is sent to Spoke VPC B.
-
Finally, in the TGW subnet route table of Spoke VPC B, the traffic is sent to the destination.
The following steps describe the north-south traffic flow:
-
Traffic from an instance in Spoke VPC B destined to the internet (north-south traffic) is routed to the Transit Gateway.
-
The Transit Gateway route table associated with the attachment sends all the traffic (0.0.0.0/0) to the Inspection VPC, same as in the previous example.
-
The Inspection VPC TGW subnet route table sends all the traffic to the firewall endpoint, where it is transparently analyzed.
-
Allowed traffic is sent to the NAT gateway as per the Firewall subnet route table.
-
The private IP of the client is translated to the private IP of the NAT gateway, and in turn, translated to the public IP by the internet gateway.
Note
It is recommended to use Transit Gateway appliance mode in the Inspection VPC Transit Gateway attachment to maintain flow symmetry.
For an example of this architecture in Terraform, see AWS Hub and Spoke Architecture with an Inspection VPC
Further reading
For additional information, see the following resources:
Diagram history
To be notified about updates to this reference architecture diagram, subscribe to the RSS feed.
| Change | Description | Date |
|---|---|---|
Reference architecture diagram first published. | March 16, 2022 | |
Reference architecture diagram first published. | March 16, 2022 | |
Reference architecture diagram first published. | March 16, 2022 | |
Reference architecture diagram first published. | March 16, 2022 | |
Initial publication | Reference architecture diagram first published. | March 16, 2022 |
Reference architecture diagram first published. | March 16, 2022 |
Note
To subscribe to RSS updates, you must have an RSS plugin enabled for the browser you are using.