Multi-Cloud VPN: Connecting AWS, Azure, and Yandex Cloud via Transit Gateway and Virtual WAN

TL;DR

A comprehensive guide to building a unified network across AWS, Azure, and Yandex Cloud: hub-and-spoke architectures, AWS Transit Gateway, Azure Virtual WAN, BGP, IKEv2, NAT, and Terraform automation. Theory, step-by-step instructions, checklists, real-world cases, common pitfalls, and metrics.

Choose a server Try for free
Multi-Cloud VPN: Connecting AWS, Azure, and Yandex Cloud via Transit Gateway and Virtual WAN

Introduction: Why Your Business Needs Multi-Cloud VPN Now

Linking multiple clouds into one secure, reliable network is no longer a niche engineering feat but an operational must-have. By 2026, businesses are moving away from single-cloud strategies to multi-cloud environments: spreading risk, optimizing costs, complying with data residency laws, and accelerating product delivery. The question is: how do you connect AWS, Azure, and Yandex Cloud in a way that’s stable, scalable without headaches, and audit-ready?

This guide is your hands-on roadmap. We'll unpack fundamental and advanced concepts, showcase practical architectures using AWS Transit Gateway and Azure Virtual WAN, integrate Yandex Cloud and on-premises sites, and wrap up with monitoring, automation, and cost management. You'll get step-by-step directions, checklists, design templates, high availability tips, solutions for overlapping networks, and reference case studies.

Basics: Core Multi-Cloud VPN Concepts

Essential Building Blocks

  • VPC/VNet/Yandex Cloud Networks: isolated private networks routed at the hypervisor level. Planning non-overlapping CIDR blocks is foundational for reliability. We recommend assigning separate address ranges by domain (prod, non-prod, shared) and region.
  • IPsec VPN (IKEv2): the industry-standard Layer 3 encryption protocol. Used for site-to-site connections between clouds and on-premises. Supports PFS (Perfect Forward Secrecy) cipher suites and hardware acceleration (AES-GCM).
  • BGP: a dynamic routing protocol that runs over secured tunnels. It automates prefix advertisement and withdrawal, enables ECMP multipath, and manages traffic priority with AS-Path prepending, MED, and communities.
  • Hub-and-Spoke: a foundational topology where the hub handles routing, segmentation, and service inspection (firewall, IDS/IPS), while spokes represent application VPCs/VNets.
  • AWS Transit Gateway (TGW): a regional Layer 3 backbone aggregating VPCs, VPNs, and Direct Connect links. It manages routing tables and prefix propagation between attachments.
  • Azure Virtual WAN (vWAN): Microsoft’s global network designed to simplify branch, VPN, ExpressRoute, and VNet connectivity. Often used as a multi-cloud hub due to its wide geographical reach.
  • Yandex Cloud VPN: managed IPsec gateways supporting dynamic routing (BGP) and high availability via multiple tunnels and zones. For high throughput, use Cloud Interconnect or virtual routers.

Security Model and Segmentation

  • L3 Segmentation: define trust zones (prod, dev, shared services, partners). Control inter-zone traffic via separate TGW/vWAN route tables and firewall policies.
  • L4-L7 Controls: employ cloud firewalls (Azure Firewall in Secure Hub, AWS Network Firewall, or third-party NGFWs). Inspect traffic, enable TLS decryption where permitted, run IDS/IPS and DNS security.
  • Zero Trust Principles: grant least privilege access, enforce explicit service authorization, use short lease times, and continuously validate tunnel and route state.

Factors Affecting Stability

  • MTU/MSS: IPsec encapsulation lowers effective MTU. Configure MSS clamping (usually 1350–1380) on edge gateways to prevent fragmentation and packet loss.
  • DPD and Rekeys: configure Dead Peer Detection and rekey timers consistently on both ends for IKE and Child Security Associations.
  • ECMP and Active-Active: multiple tunnels with equal-cost routes increase aggregate bandwidth and resilience.
  • NAT Traversal (NAT-T): IPsec over UDP/4500 for scenarios with NAT on the path, mandatory when connecting over the internet with address translation.

Deep Dive: Advanced Topics You Rarely See

Handling Overlapping CIDRs

Legacy 10.0.0.0/8 blocks often overlap during M&A or multi-cloud migrations. Here’s how to manage:

  • Border NAT: Azure supports VPN NAT on gateways (bi- or unidirectional) for prefix translation. AWS and Yandex use virtual routers (VyOS/FRR) or NGFWs with NAT.
  • Segmentation and Re-Addressing: staged re-IP is the cleanest long-term solution but costly during migration. Combine with temporary NAT for critical services.
  • Prefix-Specific Routing: place conflicting subnets in separate TGW/vWAN route tables, disable automatic propagation, and use static import of only required prefixes.

BGP Engineering in Cloud

  • ASNs: AWS TGW allows private ASN (default 64512, with extended range 4200000000+). Azure vWAN hubs and VPN gateways use service ASNs (private range) and local ASNs for on-prem/peers. Ensure uniqueness.
  • Traffic Prioritization: use AS-Path prepending and MED to assign active/backup tunnels. Within one provider, local preference often suffices.
  • Summarization: aggregate networks where possible (up to /16-/20) to reduce chatter and routing table overload.

Bandwidth and SLA

  • Tunnel Limits: managed VPN gateways have throughput caps per tunnel and aggregated. Design based on P95+ capacity with 20-30% headroom, not peak spikes.
  • Multi-Region: minimize hairpinning. Regional hubs close to end-users reduce latency and egress costs.
  • When to Use Private Transport: for jitter-sensitive P99 metrics, consider private circuits (Direct Connect, ExpressRoute) to a single exchange point, then IPsec to the third cloud. More complex but predictable.

Security: Crypto Profiles and Keys

  • Ciphers: AES-256-GCM with PFS (DH Group 14/19/20) offers a solid balance. Align lifetimes (e.g., IKE 8h, Child 1h) with rekey margins.
  • Key Management: store PSKs securely (AWS Secrets Manager, Azure Key Vault, Yandex Lockbox). Automate rotation.
  • Logging: enable flow logs, config change audits, and tunnel health metrics.

Practice 1: Using AWS Transit Gateway as Your Multi-Cloud Hub

When to Choose It

If your primary workloads and network functions are in AWS and you want to connect Azure and Yandex Cloud with minimal extra components, TGW serves as a central router with Azure and Yandex acting as VPN sites.

Architecture

VPCs (prod/dev/shared) attach to TGW. For each external cloud, create a VPN attachment with two tunnels. BGP shares prefixes between VPCs and external clouds. Separate TGW route tables provide segmentation.

Step-by-Step Guide

  1. Address Planning: assign unique CIDR blocks for all VPCs and target Azure VNets and Yandex VPCs. Prepare an access matrix defining who can communicate with whom and on which ports.
  2. Create TGW: select a private ASN (e.g., 64520). Enable routing tables per trust zone: prod-rt, dev-rt, external-rt.
  3. Attach VPCs: create VPC attachments, assign correct TGW route tables, and enable propagation only where needed.
  4. Connect Azure: obtain Azure VPN Gateway public IPs (active-standby or active-active). In AWS, create a Customer Gateway and then a Site-to-Site VPN to Azure. Choose Transit Gateway attachment, IKEv2 with agreed cipher suites. Enable BGP, assign paired /30 subnets per tunnel matching Azure's setup.
  5. Connect Yandex Cloud: similarly, create a Customer Gateway pointing to Yandex Cloud VPN public IPs. Establish two BGP tunnels in different zones with unique ASNs. Align lifetimes and DPD settings.
  6. Routing: enable prefix propagation from VPN attachments in external-rt, associate external-rt with required VPCs selectively. Disable broad automatic propagation in prod-rt/dev-rt, import only necessary prefixes.
  7. Segmentation and Firewall: route traffic between VPCs and external networks through an inspection VPC using NGFW (GWLB or appliance). Configure routing through the firewall endpoint.
  8. Testing: check BGP sessions, prefix presence, MTU/MSS. Use iperf3 for bandwidth, run smoke tests on apps, and export monitoring metrics.

Terraform Skeleton

  • Modules: tgw, attachments, vpn, route-tables, firewall-vpc.
  • Variables: asn, cidr_map, bgp_params, ike_params, fw_endpoints.
  • Pipeline: plan — security review — apply in non-prod — change set in prod.

TGW Hub Checklist

  • Unique ASNs and aligned IKE profiles.
  • Two tunnels per connection with ECMP enabled.
  • Route isolation via tables, explicit association/propagation.
  • MSS clamping on border interfaces.
  • Flow Logs and CloudWatch Alarms monitoring tunnel state.

Practice 2: Azure Virtual WAN as a Global Backbone

When to Choose It

If you have strong Azure presence, many branches, or need global routing optimization over Microsoft’s backbone. A vWAN hub near consumers offers predictable latency and VPN NAT support eases overlapping CIDRs.

Architecture

Create a Virtual WAN with one or more Virtual Hubs in consumer regions. Connect VNets (spokes) and VPN sites: AWS (via TGW/VGW VPN), Yandex Cloud (via Cloud VPN). Enable Secure Hub with Azure Firewall for inspection.

Step-by-Step Guide

  1. Deploy vWAN and Virtual Hub: select regions, VPN Gateway SKU, and Secure Hub if needed (Azure Firewall).
  2. Connect VNets: via hub connections with routing policies (propagation/association).
  3. Connect to AWS: create a VPN Site in Azure with AWS tunnel IPs. On AWS, create site-to-site VPN to Azure with TGW attachment and enable BGP on both sides.
  4. Connect to Yandex Cloud: similarly, create VPN Site in Azure with tunnels to Yandex Cloud VPN. If CIDRs overlap, configure VPN NAT on Azure Gateway (inbound/outbound as needed).
  5. Routing in vWAN: set propagation and association to route tables; limit propagation to sensitive VNets; export only aggregated prefixes.
  6. Traffic Inspection: use Azure Firewall in Secure Hub; configure DNAT/SNAT, FQDN filtering, and IDS mode as required.
  7. Testing and SLO: monitor BGP and tunnels via Azure Monitor, audit firewall logs, and track P95/99 latency.

vWAN Highlights

  • Flexible routing with multiple hub route tables.
  • Built-in NAT on VPN Gateway simplifies M&A scenarios.
  • Strong integration with branches and SD-WAN CPEs.

Practice 3: Connecting Yandex Cloud to AWS and Azure

Options

  • Via AWS TGW: Yandex Cloud VPN site-to-site to TGW. Minimal Yandex components, dynamic BGP, two tunnels in different zones. Ideal with AWS as hub.
  • Via Azure vWAN: Yandex Cloud VPN site-to-site to virtual hub. Easy way to leverage Azure NAT for address conflicts.
  • Via Virtual Routers: Deploy VyOS/FRR in Yandex and AWS/Azure for protocols beyond standards (e.g., WireGuard for cross-cloud replication if allowed).

Yandex Cloud VPN Integration Step-by-Step

  1. Plan and Zones: select Yandex zones for VPN gateways. Ensure resilience with at least two tunnels per cloud connection.
  2. Create Cloud VPN: set up the gateway, configure IKEv2, cipher suites, and lifetimes. Specify remote AWS/Azure public IPs.
  3. BGP: assign private ASN for Yandex, agree on /30 BGP endpoints and prefixes to advertise (summarized per environment).
  4. Routes and Tables: link route tables to subnets and services. Explicitly route remote prefixes via VPN gateway, exclude local internet routes.
  5. Validation: ensure BGP stability, IPsec logs, and that tunnel failure doesn’t drop connections.

Performance and When to Use Interconnect

If your workload is constant and jitter-sensitive (e.g., synchronous databases), consider private transport to an exchange point with IPsec termination there. Yandex Cloud Interconnect provides predictable SLA, and from there IPsec can extend to AWS/Azure on the same platform.

Practice 4: High Availability, Automation, and Operations

HA Patterns

  • Multiple Tunnels: at least two tunnels between any two domains, preferably across different zones or regional hubs.
  • ECMP: enable equal-cost routing for aggregated bandwidth and fast convergence.
  • Route Health: automate prefix masking on service degradation (route health injection), integrate with health check managers.
  • Traffic Steering: active-active for less critical flows; active-passive for jitter-sensitive traffic.

Observability and SLO

  • Metrics: tunnel up/down, rekey counts, packet drops, per-tunnel bandwidth, BGP flaps, latency percentiles (P50/P95/P99), loss, jitter.
  • Logs: IPsec/IKE, flow logs, firewall events; correlate through a centralized logging platform.
  • Alerts: SLO breaches, bandwidth anomalies, RTT spikes, route drops, egress cost overruns.

Automation and IaC

  • Terraform: unified modules for AWS, Azure, and Yandex. Parameterize crypto profiles, ASNs, and routing schemas. Separate state per environment with remote backends and locking.
  • CI/CD: PR processes, static analysis, plan previews, secret security. Change calendars and canary rollouts for network changes.
  • Drift Detection: periodic validation enforcing no manual prod changes.

Testing

  • Unit Tests for IaC: policy-as-code (regex for cipher suites, port restrictions).
  • Chaos Drills: tunnel shutdowns, cipher suite degradation, zone failures with expected convergence and SLO retention.
  • Load Testing: iperf3 both directions, packet loss profiling under various MSS settings.

Practice 5: Security and Compliance by Default

Minimal Security Profile

  • AES-256-GCM, PFS enabled, DH group 14/19, IKEv2 only.
  • Child SA rekey every 60 minutes, IKE rekey every 8 hours, DPD 10-15 seconds, 3-5 retry attempts.
  • MSS clamping at 1360 (adjust after MTU path discovery testing).
  • Block overly broad routes (e.g., 0.0.0.0/0) in BGP unless explicitly routed through inspection hubs.

Access Segmentation

  • Separate route tables on TGW/vWAN for prod/dev/partners.
  • Mandatory inter-zone traffic inspection via firewalls.
  • Control DNS and egress traffic through proxies or firewalls.

Secrets and Key Management

  • Store PSKs and certificates in secret managers, rotate on schedule.
  • Enforce RBAC and break-glass access with audit trails.

Practice 6: Cost and Performance

Cost Model

  • Component-Based: gateway hourly throughput pricing, egress/ingress traffic, route processing on TGW/vWAN, firewall inspection, NAT.
  • Topology: local hubs reduce cross-region egress; centralized north-south traffic can become costly and a bottleneck.
  • Redundancy: N+1 tunnels add cost but improve stability; balance against SLOs.

Optimizations

  • Route summarization instead of thousands of small prefixes.
  • Traffic locality — keep traffic within regions.
  • Auto-disable unused tunnels in test environments on schedules.

Practice 7: Navigating Complex Cases

Overlapping CIDRs with Minimal Downtime

  1. Inventory conflicts: determine which subnets actually need communication.
  2. Use temporary border NAT (Azure VPN NAT or firewall NAT) for conflicting pairs.
  3. Incremental re-IP in maintenance windows with backward compatibility control.
  4. Remove temporary NAT setups and simplify routes.

When You Need WireGuard/OpenVPN Across Clouds

For cross-cloud replication or non-standard ports, deploy virtual routers (Linux+WireGuard, VyOS, FRR) terminating in dedicated VPCs/VNets with TGW/vWAN route integration. Mind security and compliance requirements.

Common Mistakes: What to Avoid

  • Auto-propagating everything everywhere: causes unintended connections and expands blast radius.
  • Identical CIDRs: saves setup time but leads to lengthy re-IP efforts later.
  • Ignoring MTU/MSS: mysterious timeouts and rare failures usually stem from fragmentation.
  • Static routes instead of BGP: manual routes don't scale well and are risky during failures.
  • No inspection: straight Layer 3 paths without port/FQDN control won't pass audits.
  • Single hub for all regions: causes latency and skyrocketing egress costs.
  • Secrets in plain config files: PSKs in text files directly invite incidents.

Tools and Resources: What to Use in Practice

Cloud Services

  • AWS: Transit Gateway, Site-to-Site VPN, Network Firewall, CloudWatch, VPC Flow Logs, Gateway Load Balancer.
  • Azure: Virtual WAN, VPN Gateway (including VPN NAT), Azure Firewall (Secure Hub), Azure Monitor, Network Watcher.
  • Yandex Cloud: Cloud VPN, Security Groups, Route Tables, Cloud Interconnect, Yandex Monitoring, and Logs.

Virtual Routers and NGFWs

  • VyOS, FRR (BGP), StrongSwan/Libreswan, pfSense, and commercial NGFWs (Palo Alto, Fortinet, Check Point, Cisco) for complex policies, NAT, and inspection.

IaC, Testing, and Monitoring

  • Terraform (multi-cloud), Terragrunt for structuring.
  • InSpec/OPA/Conftest for policy-as-code.
  • iperf3, tcptraceroute, mtr for network tests.
  • Prometheus/Grafana, VPN/BGP exporters, and SLO alerting.

Quick Start for Pilots

For pilots and proof-of-concept setups that need quick corporate VPNs between dev teams and multi-cloud testbeds, consider vpn.how — a personal VPN server with dedicated IP (not shared), supporting WireGuard, OpenVPN, IKEv2, L2TP, SSTP. Choose protocols based on your needs and network constraints. Locations span Moscow, Saint Petersburg, Amsterdam, Frankfurt, London, New York, San Jose, Chicago, Singapore, Sydney, Madrid, Helsinki, Stockholm, Warsaw, Copenhagen, Stavanger. Payments accepted via Russian cards (including Tinkoff and Ozon), SBP, USDT/BTC. Rates start at 490 ₽ per day and 2490 ₽ per month with discounts for longer terms, server auto-launch within 5 minutes post-payment, and no logs. Ideal for rapid setups and network scouting without lengthy procurement. For production, building your own managed infrastructure or exploring GOST-VPN based on regulatory needs is wiser.

Cases and Outcomes: What Practice Shows

Case 1: FinTech, Hub on AWS TGW

Context: 120+ microservices in AWS, analytics on Azure, some payment logic in Yandex Cloud due to localization requirements. Solution: TGW hub with two tunnels each to Azure and Yandex, BGP with summarization, inspection VPC with NGFW. Results: P95 latency AWS↔Azure 28-35ms (EU), resilience with tunnel loss degrading bandwidth by no more than 35%, PCI DSS audit passed thanks to clear segmentation and logging. Egress optimization saved ~18% in Q1.

Case 2: Data/ML, Hub on Azure vWAN

Context: DWH and ML pipelines in Azure, high-load APIs in AWS, local inference in Yandex Cloud. Solution: Virtual WAN with two hubs (Western Europe, Eastern), VPNs to AWS TGW and Yandex Cloud VPN, Azure Firewall in Secure Hub, VPN NAT for conflicting subnet pairs. Results: Address conflicts resolved without downtime, aggregated throughput around 2-3 Gbps over 4 tunnels, incidents dropped by 40% after unified observability rollout.

Case 3: M&A and Overlapping CIDRs

Context: Company merger with overlapping 10.0.0.0/8 spaces. Solution: Temporary NAT on Azure VPN, routing via vWAN with table isolation, phased re-IP of critical subnets, followed by full NAT removal. Results: Zero downtime for client services, 60% routing complexity reduction after re-IP completion.

FAQ: Common Questions

1. Is BGP mandatory or is static routing enough?

For pilots, static routes can work. In production with growth, BGP is essential: it lowers human error risk, speeds convergence, and provides flexible route preferences.

2. Which encryption policy to choose?

AES-256-GCM with PFS, IKEv2. Agreed lifetimes, rekey margins, and DPD. Industry-standard ciphers make third-party audits easier.

3. Is WireGuard suitable for enterprises?

Yes, as a high-performance option, but check compliance and logging needs. Typically used as virtual routers adjacent to IPsec.

4. What about MTU?

Start with MSS 1360, enable PMTUD, monitor fragmentation, and reduce MSS to 1350-1340 if issues arise.

5. For overlapping CIDRs, is re-IP always necessary?

Not always. Temporary NAT on VPN gateways (Azure) or NGFWs helps short-term. Strategically, re-IP avoids technical debt growth.

6. How to control costs?

Localize traffic, summarize routes, avoid north-south traffic through a single hub, analyze egress and firewall processing costs, and deactivate unused environments.

7. What's better for a hub: TGW or vWAN?

For AWS-centered environments, TGW is preferable; for Azure-heavy setups or many branches/SD-WAN, vWAN works best. Hybrid architectures with regional hubs in both clouds are common.

8. What SLA can be expected?

Internet VPN realistically offers 99.9-99.95% with multiple tunnels and regions. Critical use cases require private circuits plus IPsec, monitoring, and route health injection.

9. How to integrate traffic inspection?

Use an inspection VPC/VNet with NGFW and directed routing (UDR, TGW route tables, vWAN Secure Hub). Log and automate policies.

10. How to handle DNS in multi-cloud?

Zone-based resolution with conditional forwarding between cloud resolvers, caching, controlling egress DNS, and leak protection.

Conclusion: Your Roadmap to a Robust Multi-Cloud Network

A unified network linking AWS, Azure, and Yandex Cloud is a mature, manageable, and auditable process. Start with address planning and traffic requirements, pick your hub (TGW or vWAN), standardize crypto profiles, enable BGP and segmentation, implement traffic inspection, automate with Terraform and CI/CD, then solidify with metrics and SLOs. Move quickly and pragmatically for POCs; for production, justify SLOs, budget for N+1 redundancy, and plan operations and monitoring. This approach delivers a network that not only works but scales, passes audits, and gracefully handles failures.

Appendix: Quick Design Checklist

  • Address Plan: unique CIDRs, summarize routes, access matrix.
  • Hub: TGW, vWAN, or both; regional placement; route tables setup.
  • Encryption: IKEv2, AES-GCM, PFS, lifetimes, DPD configuration.
  • Tunnels: at least two per connection, ECMP enabled, zoned.
  • Routing: BGP, AS-Path prepending, MED, summarization, route health injection.
  • Segmentation and Firewall: inspection hub, L7 policies, egress control.
  • MTU/MSS: start at 1360, validate and adjust.
  • IaC: Terraform, policy-as-code, CI/CD pipelines, secret management.
  • Observability: metrics, logs, alerts, SLO tracking, regular failure drills.
  • Cost Management: traffic localization, egress control, environment shutdowns, gateway SKU optimization.

Publisher: vpn.how


Share this article: