North-South 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 traffic inspection from and to the internet, or from and to on-premises facilities connected through AWS Direct Connect or AWS Site-to-Site VPN, using AWS Network Firewall.
North-south centralized inspection with Network Firewall architecture
The following steps describe the egress traffic flow in this architecture:
-
Traffic from the instance in Spoke VPC A destined to the internet 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 Transit Gateway.
-
The Transit Gateway route table associated with the Inspection VPC attachment has all the routes within the network.
-
In this particular use case, as the traffic needs to be routed to the internet, the Transit Gateway will forward the traffic to the Central Egress VPC.
-
The TGW subnet route table of the Central Egress VPC sends the traffic to the NAT gateway, so the private IP of the client can be translated to the private IP of the NAT gateway, and in turn, translated to the public IP by the internet gateway.
The following steps describe the ingress traffic flow:
-
Traffic coming from the internet reaches the Central Ingress VPC. In this example, an Application Load Balancer sends the request to the target group of configured IP addresses through the Transit Gateway.
-
The traffic is forwarded to the Inspection VPC in accordance with the Pre-inspection route table in Transit Gateway.
-
As with the egress traffic, the Inspection VPC TGW subnet route table sends all the traffic to the firewall endpoint. Allowed traffic is forwarded back to the Transit Gateway and subsequently to the destination VPC (Spoke VPC A).
-
The Transit Gateway route table associated with the Inspection VPC forwards the traffic to the Spoke VPC A.
-
The Spoke VPC A route table sends the traffic to the desired instance.
Note
It is recommended to use Transit Gateway appliance mode in the Inspection VPC Transit Gateway attachment to maintain flow symmetry.
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 | |
Initial publication | Reference architecture diagram first published. | March 16, 2022 |
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.