Good day,
With your help I was able to solve a previous issue with BGP AWS IPSEC. Now, more than an issue, it may sound more like a workaround, here is the scenario.
I have both AWS DirectConnect (DXC) and AWS IPSEC VPNs, as some may know, using BGP with both products makes life easier but there is catch.
Let´s say you have both VPNs and DirectConnect attached to the a Transit Gateway (TGW). The subnets/routes that live in the TGW get propagated over the tunnels just fine, but, on the DirectConnect the difference is that you have to define the prefixes that you want to propagate.
Meaning:
Most of the examples I found say to have "the same prexifes" on both the TGW and the DirectConnect. Meaning:
If TGW has x.x.x.x/xx, then on the DxC you need to manually configure the SAME x.x.x.x/xx. That´s all good, BUT, let´s say you want to be clever.
What IF all your VPC in AWS can be summarized to x.x.x.x/zz, knowing that /zz envelops all your /xx subnets?
Let´s put numbers on it:
How would you "tell" the firewall to give more preference to the DxC and have the IPSEC VPNs as failover?
Now that I want to add the DxC to the mix, my theory goes (using what I have done before):
DxC as the Main | IPSEC Main Backup for DxC (failover 1) | IPSEC Secondary Backup for DxC (failover 2) |
| If the DxC goes down, this tunnel takes over. | If the DxC goes down and the Main tunnel goes down, then this tunnel takes over. |
All interfaces will be UP, so the BGP will dictate where the traffic should go to when something happens to the BGP session.
My planning for the configuration is as follows:
For the route map out, that´s easy, as the prefix is the same for all three:
Interface | DxC | IPSEC 1 | IPSEC 2 |
AS | No AS prepending | Some AS prepending | All theAS prepending |
Local pref | Max local preference | Medium local preference | Minimun local preference. |
For the route map in, that´s where I get my doubt:
Interface | DxC | IPSEC 1 | IPSEC 2 |
Prefix | x.x.x.x/11 | x.x.x.x/16 | x.x.x.x/16 |
Metric? Local Preference? I´m lost here, anyone has any ideas?
Welcome to your new Fortinet Community!
You'll find your previous forum posts under "Forums"
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.