Distributed inter-VPC east-west traffic Example
Scenario objective
Traffic between multiple VPCs is inspected by a FortiGate CNF instance.
Before deployment of FortiGate CNF
The traffic in this scenario is east-west between two VPCs. A transit gateway attached to the VPC is needed for this to work. The traffic is between VPC A
and VPC B
, or VPC A
and VPC C
.
The Before deployment of FortiGate CNF traffic flow is as follows:
-
Traffic originates from computer resources located in
Private Subnet 1
inVPC A
(10.1.3.0/24) and goes toAWS Transit Gateway
located inTGW Subnet
(10.1.6.0/24). -
AWS Transit Gateway
forwards the traffic toVPC B
(10.2.0.0/16) orVPC C
(10.3.0.0/16).
Routing tables
The routing tables are defined as follows.
Private Subnet route table
Destination | Target |
---|---|
10.1.0.0/16 | Local |
TGW Subnet route table
Destination | Target |
---|---|
10.1.0.0/16 | Local |
AWS Transit Gateway route table
Destination | Target |
---|---|
10.1.0.0/16 | VPC A |
10.2.0.0/16 | VPC B |
10.3.0.0/16 | VPC C |
After deployment of FortiGate CNF
The After deployment of FortiGate CNF topology traffic flow is as follows:
-
Traffic originates from computer resources located in
Private Subnet 1
inVPC A
(10.1.3.0/24) and goes to theGWLBe
located inCNF Endpoint Subnet
(10.1.1.0/24). -
Traffic is sent to the FortiGate CNF instance for inspection.
-
FortiGate CNF sends traffic back to the
GWLBe
. -
Traffic goes to
AWS Transit Gateway
located inTGW Subnet
(10.1.6.0/24). -
AWS Transit Gateway
forwards the traffic toVPC B
(10.2.0.0/16) orVPC C
(10.3.0.0/16).
To deploy the FortiGate CNF instance in this scenario:
-
In AWS, add a subnet
CNF Endpoint Subnet
inVPC A
along with the associated route table.Destination Target 10.1.0.0/16 Local 10.0.0.0/8 AWS Transit Gateway -
In FortiGate CNF, deploy a GWLBe to this subnet.
-
In AWS, add a route to the
Private Subnet 1
route table to route all traffic to 10.0.0.0/8 to the GWLBe.Destination Target 10.1.0.0/16 Local 10.0.0.0/8
GWLBe
-
In AWS, add a route to the
TGW subnet
route table to route all traffic toPrivate Subnet 1
to the GWLBe.Destination Target 10.1.0.0/16 Local 10.1.3.0/24
GWLBe