Skip to content

Active-Active VPN Site-to-Site Configuration to AWS

0

Hi all,

I’d like to ask if it’s possible to configure a VPN Site-to-Site connection from on-premises to AWS in an Active-Active setup.

Currently, I have two internet lines from different ISPs, and I’d like to establish VPN connections that allow traffic to be load balanced across both links.

Is this architecture supported by AWS? If so, could you please share any official documentation or guidance on how to configure it?

Thank you in advance!

2 Answers
0

Yes, it is possible to configure an Active-Active VPN Site-to-Site connection from your on-premises network to AWS using your two internet lines from different ISPs.

AWS Site-to-Site VPN supports this type of architecture through multiple approaches:

  1. Multiple VPN Connections: You can establish separate Site-to-Site VPN connections for each of your internet lines. Each connection would have its own customer gateway (representing each of your ISP connections) connecting to AWS.

  2. Equal Cost Multipath (ECMP): When terminating your VPN connections on an AWS Transit Gateway, you can enable ECMP to load balance traffic across multiple VPN tunnels, which would allow you to utilize both of your internet connections simultaneously.

For implementation, you would need to:

  1. Create two customer gateways in AWS, each with the public IP address from one of your ISPs.
  2. Set up a virtual private gateway (VGW) or transit gateway (TGW) in your AWS VPC.
  3. Create two separate AWS Site-to-Site VPN connections, each connecting one of your customer gateways to your AWS gateway.
  4. Configure dynamic routing using BGP (Border Gateway Protocol) for each connection, ensuring you use unique BGP ASNs (Autonomous System Numbers) for each customer gateway.
  5. Configure your on-premises VPN devices to properly route traffic over both connections.

For high availability, it's important to note that each AWS Site-to-Site VPN connection already consists of two VPN tunnel endpoints for redundancy, with each tunnel terminating in a different Availability Zone. For a truly resilient setup, you should terminate these tunnels on separate physical devices in your data center.

Using Transit Gateway for your VPN termination point is generally recommended for this scenario as it provides more flexibility and added functionality like ECMP support, which is essential for your Active-Active configuration.
Sources
AWS TAM or SA can help create site to site VPN? | AWS re:Post
Secure communication between AWS Site-to-Site VPN connections using VPN CloudHub - AWS Site-to-Site VPN
Getting started with hybrid connectivity using Site-to-Site VPN - Hybrid Networking Lens

answered a year ago

AWS
EXPERT

reviewed a year ago

0

Yes its possible to achieve Active-Active setup with AWS VPN terminated on Transit Gateway but not on Virtual Private Gateway. If you have multiple S2S VPN connections terminated on VGW[1], one tunnel across all Site-to-Site VPN connections on the gateway will be selected. To use more than one tunnel, we recommend exploring Equal Cost Multipath (ECMP), which is supported for Site-to-Site VPN connections on a transit gateway.

AWS Transit Gateway enables you to scale the IPsec VPN throughput with equal cost multi-path (ECMP) routing support over multiple VPN tunnels. A single VPN tunnel still has a maximum throughput of 1.25 Gbps. If you establish multiple VPN tunnels to an ECMP-enabled transit gateway, it can scale beyond the default maximum limit of 1.25 Gbps. You also must enable the dynamic routing option on your transit gateway to be able to take advantage of ECMP for scalability. ECMP in transit gateway uses 5-tuple hash (protocol number, source IP address, destination IP address, source port number, destination port number) to make packets take one of the paths or VPN tunnels. Similarly, customers must configure customer gateway (CGW) to leverage ECMP thereby performing the hash to forward packets equally over multiple paths.

You can follow the steps mentioned in docs[2] and [3] which provides guidance to setup the VPN.

[1] https://docs.aws.amazon.com/vpn/latest/s2svpn/vpn-route-priority.html [2] https://repost.aws/knowledge-center/transit-gateway-ecmp-multiple-tunnels [3] https://aws.amazon.com/blogs/networking-and-content-delivery/scaling-vpn-throughput-using-aws-transit-gateway/

AWS
EXPERT

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.