Configure secure, high-performance connectivity between
Hybrid cloud networking

Configure secure, high-performance connectivity between on-premises infrastructure and cloud platforms using VPN and dedicated connections. Use when building hybrid cloud architectures, connecting data centers to cloud, or implementing…
--- name: hybrid-cloud-networking description: Configure secure, high-performance connectivity between on-premises infrastructure and cloud platforms using VPN and dedicated connections. Use when building hybrid cloud architectures, connecting data centers to cloud, or implementing secure cross-premises networking. --- # Hybrid Cloud Networking Configure secure, high-performance connectivity between on-premises and cloud environments using VPN, Direct Connect, ExpressRoute, Interconnect, and FastConnect. ## Purpose Establish secure, reliable network connectivity between on-premises data centers and cloud providers (AWS, Azure, GCP, OCI). ## When to Use - Connect on-premises to cloud - Extend datacenter to cloud - Implement hybrid active-active setups
Overview
Configure secure, high-performance connectivity between on-premises and cloud environments using VPN, Direct Connect, ExpressRoute, Interconnect, and FastConnect.
Manual install (npx, ZIP)
npx skills add wshobson/agents --skill hybrid-cloud-networking -g -a claude-codemkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/wshobson/agents/tar.gz/4236bb91f839 \
| tar -xz -C ~/.claude/skills --strip-components=4 agents-4236bb91f839/plugins/cloud-infrastructure/skills/hybrid-cloud-networkingNew-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/0829c1c56a81bae95025/hybrid-cloud-networking.zip" -OutFile "$env:TEMP\hybrid-cloud-networking.zip"; Expand-Archive "$env:TEMP\hybrid-cloud-networking.zip" -DestinationPath "$HOME\.claude\skills" -ForceConnects with Agent Alley MCP · agentalley.io/mcp
Files included
SKILL.md6.0 KBreferences/1 file · 799 B
Read the files here
Show the full text257 lines
Hybrid Cloud Networking
Configure secure, high-performance connectivity between on-premises and cloud environments using VPN, Direct Connect, ExpressRoute, Interconnect, and FastConnect.
Purpose
Establish secure, reliable network connectivity between on-premises data centers and cloud providers (AWS, Azure, GCP, OCI).
When to Use
- Connect on-premises to cloud
- Extend datacenter to cloud
- Implement hybrid active-active setups
- Meet compliance requirements
- Migrate to cloud gradually
Connection Options
AWS Connectivity
1. Site-to-Site VPN
- IPSec VPN over internet
- Up to 1.25 Gbps per tunnel
- Cost-effective for moderate bandwidth
- Higher latency, internet-dependent
resource "aws_vpn_gateway" "main" {
vpc_id = aws_vpc.main.id
tags = {
Name = "main-vpn-gateway"
}
}
resource "aws_customer_gateway" "main" {
bgp_asn = 65000
ip_address = "203.0.113.1"
type = "ipsec.1"
}
resource "aws_vpn_connection" "main" {
vpn_gateway_id = aws_vpn_gateway.main.id
customer_gateway_id = aws_customer_gateway.main.id
type = "ipsec.1"
static_routes_only = false
}
2. AWS Direct Connect
- Dedicated network connection
- 1 Gbps to 100 Gbps
- Lower latency, consistent bandwidth
- More expensive, setup time required
Reference: See references/direct-connect.md
Azure Connectivity
1. Site-to-Site VPN
resource "azurerm_virtual_network_gateway" "vpn" {
name = "vpn-gateway"
location = azurerm_resource_group.main.location
resource_group_name = azurerm_resource_group.main.name
type = "Vpn"
vpn_type = "RouteBased"
sku = "VpnGw1"
ip_configuration {
name = "vnetGatewayConfig"
public_ip_address_id = azurerm_public_ip.vpn.id
private_ip_address_allocation = "Dynamic"
subnet_id = azurerm_subnet.gateway.id
}
}
2. Azure ExpressRoute
- Private connection via connectivity provider
- Up to 100 Gbps
- Low latency, high reliability
- Premium for global connectivity
GCP Connectivity
1. Cloud VPN
- IPSec VPN (Classic or HA VPN)
- HA VPN: 99.99% SLA
- Up to 3 Gbps per tunnel
2. Cloud Interconnect
- Dedicated (10 Gbps, 100 Gbps)
- Partner (50 Mbps to 50 Gbps)
- Lower latency than VPN
OCI Connectivity
1. IPSec VPN Connect
- IPSec VPN with redundant tunnels
- Dynamic routing through DRG
- Good fit for branch offices and migration phases
2. OCI FastConnect
- Private dedicated connectivity through Oracle or partner edge
- Suitable for predictable throughput and lower-latency hybrid traffic
- Commonly paired with DRG for hub-and-spoke designs
Hybrid Network Patterns
Pattern 1: Hub-and-Spoke
On-Premises Datacenter
↓
VPN/Direct Connect
↓
Transit Gateway (AWS) / vWAN (Azure)
↓
├─ Production VPC/VNet
├─ Staging VPC/VNet
└─ Development VPC/VNet
Pattern 2: Multi-Region Hybrid
On-Premises
├─ Direct Connect → us-east-1
└─ Direct Connect → us-west-2
↓
Cross-Region Peering
Pattern 3: Multi-Cloud Hybrid
On-Premises Datacenter
├─ Direct Connect → AWS
├─ ExpressRoute → Azure
├─ Interconnect → GCP
└─ FastConnect → OCI
Routing Configuration
BGP Configuration
On-Premises Router:
- AS Number: 65000
- Advertise: 10.0.0.0/8
Cloud Router:
- AS Number: 64512 (AWS), 65515 (Azure), provider-assigned for GCP/OCI
- Advertise: Cloud VPC/VNet CIDRs
Route Propagation
- Enable route propagation on route tables
- Use BGP for dynamic routing
- Implement route filtering
- Monitor route advertisements
Security Best Practices
- Use private connectivity (Direct Connect/ExpressRoute/Interconnect/FastConnect)
- Implement encryption for VPN tunnels
- Use VPC endpoints to avoid internet routing
- Configure network ACLs and security groups
- Enable VPC Flow Logs for monitoring
- Implement DDoS protection
- Use PrivateLink/Private Endpoints
- Monitor connections with CloudWatch/Azure Monitor/Cloud Monitoring/OCI Monitoring
- Implement redundancy (dual tunnels)
- Regular security audits
High Availability
Dual VPN Tunnels
resource "aws_vpn_connection" "primary" {
vpn_gateway_id = aws_vpn_gateway.main.id
customer_gateway_id = aws_customer_gateway.primary.id
type = "ipsec.1"
}
resource "aws_vpn_connection" "secondary" {
vpn_gateway_id = aws_vpn_gateway.main.id
customer_gateway_id = aws_customer_gateway.secondary.id
type = "ipsec.1"
}
Active-Active Configuration
- Multiple connections from different locations
- BGP for automatic failover
- Equal-cost multi-path (ECMP) routing
- Monitor health of all connections
Monitoring and Troubleshooting
Key Metrics
- Tunnel status (up/down)
- Bytes in/out
- Packet loss
- Latency
- BGP session status
Troubleshooting
# AWS VPN
aws ec2 describe-vpn-connections
aws ec2 get-vpn-connection-telemetry
# Azure VPN
az network vpn-connection show
az network vpn-connection show-device-config-script
# OCI IPSec VPN
oci network ip-sec-connection list
oci network cpe list
Cost Optimization
- Right-size connections based on traffic
- Use VPN for low-bandwidth workloads
- Consolidate traffic through fewer connections
- Minimize data transfer costs
- Use dedicated private links for high bandwidth
- Implement caching to reduce traffic
Related Skills
multi-cloud-architecture- For architecture decisionsterraform-module-library- For IaC implementation
| 1 | |
| 2 | name hybrid-cloud-networking |
| 3 | description Configure secure, high-performance connectivity between on-premises infrastructure and cloud platforms using VPN and dedicated connections. Use when building hybrid cloud architectures, connecting data centers to cloud, or implementing secure cross-premises networking. |
| 4 | |
| 5 | |
| 6 | # Hybrid Cloud Networking |
| 7 | |
| 8 | Configure secure, high-performance connectivity between on-premises and cloud environments using VPN, Direct Connect, ExpressRoute, Interconnect, and FastConnect. |
| 9 | |
| 10 | ## Purpose |
| 11 | |
| 12 | Establish secure, reliable network connectivity between on-premises data centers and cloud providers (AWS, Azure, GCP, OCI). |
| 13 | |
| 14 | ## When to Use |
| 15 | |
| 16 | Connect on-premises to cloud |
| 17 | Extend datacenter to cloud |
| 18 | Implement hybrid active-active setups |
| 19 | Meet compliance requirements |
| 20 | Migrate to cloud gradually |
| 21 | |
| 22 | ## Connection Options |
| 23 | |
| 24 | ### AWS Connectivity |
| 25 | |
| 26 | #### 1. Site-to-Site VPN |
| 27 | |
| 28 | IPSec VPN over internet |
| 29 | Up to 1.25 Gbps per tunnel |
| 30 | Cost-effective for moderate bandwidth |
| 31 | Higher latency, internet-dependent |
| 32 | |
| 33 | |
| 34 | resource "aws_vpn_gateway" "main" { |
| 35 | vpc_id = aws_vpc.main.id |
| 36 | tags = { |
| 37 | Name = "main-vpn-gateway" |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | resource "aws_customer_gateway" "main" { |
| 42 | bgp_asn = 65000 |
| 43 | ip_address = "203.0.113.1" |
| 44 | type = "ipsec.1" |
| 45 | } |
| 46 | |
| 47 | resource "aws_vpn_connection" "main" { |
| 48 | vpn_gateway_id = aws_vpn_gateway.main.id |
| 49 | customer_gateway_id = aws_customer_gateway.main.id |
| 50 | type = "ipsec.1" |
| 51 | static_routes_only = false |
| 52 | } |
| 53 | |
| 54 | |
| 55 | #### 2. AWS Direct Connect |
| 56 | |
| 57 | Dedicated network connection |
| 58 | 1 Gbps to 100 Gbps |
| 59 | Lower latency, consistent bandwidth |
| 60 | More expensive, setup time required |
| 61 | |
| 62 | **Reference:** See `references/direct-connect.md` |
| 63 | |
| 64 | ### Azure Connectivity |
| 65 | |
| 66 | #### 1. Site-to-Site VPN |
| 67 | |
| 68 | |
| 69 | resource "azurerm_virtual_network_gateway" "vpn" { |
| 70 | name = "vpn-gateway" |
| 71 | location = azurerm_resource_group.main.location |
| 72 | resource_group_name = azurerm_resource_group.main.name |
| 73 | |
| 74 | type = "Vpn" |
| 75 | vpn_type = "RouteBased" |
| 76 | sku = "VpnGw1" |
| 77 | |
| 78 | ip_configuration { |
| 79 | name = "vnetGatewayConfig" |
| 80 | public_ip_address_id = azurerm_public_ip.vpn.id |
| 81 | private_ip_address_allocation = "Dynamic" |
| 82 | subnet_id = azurerm_subnet.gateway.id |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | |
| 87 | #### 2. Azure ExpressRoute |
| 88 | |
| 89 | Private connection via connectivity provider |
| 90 | Up to 100 Gbps |
| 91 | Low latency, high reliability |
| 92 | Premium for global connectivity |
| 93 | |
| 94 | ### GCP Connectivity |
| 95 | |
| 96 | #### 1. Cloud VPN |
| 97 | |
| 98 | IPSec VPN (Classic or HA VPN) |
| 99 | HA VPN: 99.99% SLA |
| 100 | Up to 3 Gbps per tunnel |
| 101 | |
| 102 | #### 2. Cloud Interconnect |
| 103 | |
| 104 | Dedicated (10 Gbps, 100 Gbps) |
| 105 | Partner (50 Mbps to 50 Gbps) |
| 106 | Lower latency than VPN |
| 107 | |
| 108 | ### OCI Connectivity |
| 109 | |
| 110 | #### 1. IPSec VPN Connect |
| 111 | |
| 112 | IPSec VPN with redundant tunnels |
| 113 | Dynamic routing through DRG |
| 114 | Good fit for branch offices and migration phases |
| 115 | |
| 116 | #### 2. OCI FastConnect |
| 117 | |
| 118 | Private dedicated connectivity through Oracle or partner edge |
| 119 | Suitable for predictable throughput and lower-latency hybrid traffic |
| 120 | Commonly paired with DRG for hub-and-spoke designs |
| 121 | |
| 122 | ## Hybrid Network Patterns |
| 123 | |
| 124 | ### Pattern 1: Hub-and-Spoke |
| 125 | |
| 126 | |
| 127 | On-Premises Datacenter |
| 128 | ↓ |
| 129 | VPN/Direct Connect |
| 130 | ↓ |
| 131 | Transit Gateway (AWS) / vWAN (Azure) |
| 132 | ↓ |
| 133 | ├─ Production VPC/VNet |
| 134 | ├─ Staging VPC/VNet |
| 135 | └─ Development VPC/VNet |
| 136 | |
| 137 | |
| 138 | ### Pattern 2: Multi-Region Hybrid |
| 139 | |
| 140 | |
| 141 | On-Premises |
| 142 | ├─ Direct Connect → us-east-1 |
| 143 | └─ Direct Connect → us-west-2 |
| 144 | ↓ |
| 145 | Cross-Region Peering |
| 146 | |
| 147 | |
| 148 | ### Pattern 3: Multi-Cloud Hybrid |
| 149 | |
| 150 | |
| 151 | On-Premises Datacenter |
| 152 | ├─ Direct Connect → AWS |
| 153 | ├─ ExpressRoute → Azure |
| 154 | ├─ Interconnect → GCP |
| 155 | └─ FastConnect → OCI |
| 156 | |
| 157 | |
| 158 | ## Routing Configuration |
| 159 | |
| 160 | ### BGP Configuration |
| 161 | |
| 162 | |
| 163 | On-Premises Router: |
| 164 | - AS Number: 65000 |
| 165 | - Advertise: 10.0.0.0/8 |
| 166 | |
| 167 | Cloud Router: |
| 168 | - AS Number: 64512 (AWS), 65515 (Azure), provider-assigned for GCP/OCI |
| 169 | - Advertise: Cloud VPC/VNet CIDRs |
| 170 | |
| 171 | |
| 172 | ### Route Propagation |
| 173 | |
| 174 | Enable route propagation on route tables |
| 175 | Use BGP for dynamic routing |
| 176 | Implement route filtering |
| 177 | Monitor route advertisements |
| 178 | |
| 179 | ## Security Best Practices |
| 180 | |
| 181 | **Use private connectivity** (Direct Connect/ExpressRoute/Interconnect/FastConnect) |
| 182 | **Implement encryption** for VPN tunnels |
| 183 | **Use VPC endpoints** to avoid internet routing |
| 184 | **Configure network ACLs** and security groups |
| 185 | **Enable VPC Flow Logs** for monitoring |
| 186 | **Implement DDoS protection** |
| 187 | **Use PrivateLink/Private Endpoints** |
| 188 | **Monitor connections** with CloudWatch/Azure Monitor/Cloud Monitoring/OCI Monitoring |
| 189 | **Implement redundancy** (dual tunnels) |
| 190 | **Regular security audits** |
| 191 | |
| 192 | ## High Availability |
| 193 | |
| 194 | ### Dual VPN Tunnels |
| 195 | |
| 196 | |
| 197 | resource "aws_vpn_connection" "primary" { |
| 198 | vpn_gateway_id = aws_vpn_gateway.main.id |
| 199 | customer_gateway_id = aws_customer_gateway.primary.id |
| 200 | type = "ipsec.1" |
| 201 | } |
| 202 | |
| 203 | resource "aws_vpn_connection" "secondary" { |
| 204 | vpn_gateway_id = aws_vpn_gateway.main.id |
| 205 | customer_gateway_id = aws_customer_gateway.secondary.id |
| 206 | type = "ipsec.1" |
| 207 | } |
| 208 | |
| 209 | |
| 210 | ### Active-Active Configuration |
| 211 | |
| 212 | Multiple connections from different locations |
| 213 | BGP for automatic failover |
| 214 | Equal-cost multi-path (ECMP) routing |
| 215 | Monitor health of all connections |
| 216 | |
| 217 | ## Monitoring and Troubleshooting |
| 218 | |
| 219 | ### Key Metrics |
| 220 | |
| 221 | Tunnel status (up/down) |
| 222 | Bytes in/out |
| 223 | Packet loss |
| 224 | Latency |
| 225 | BGP session status |
| 226 | |
| 227 | ### Troubleshooting |
| 228 | |
| 229 | |
| 230 | # AWS VPN |
| 231 | aws ec2 describe-vpn-connections |
| 232 | aws ec2 get-vpn-connection-telemetry |
| 233 | |
| 234 | # Azure VPN |
| 235 | az network vpn-connection show |
| 236 | az network vpn-connection show-device-config-script |
| 237 | |
| 238 | # OCI IPSec VPN |
| 239 | oci network ip-sec-connection list |
| 240 | oci network cpe list |
| 241 | |
| 242 | |
| 243 | ## Cost Optimization |
| 244 | |
| 245 | **Right-size connections** based on traffic |
| 246 | **Use VPN for low-bandwidth** workloads |
| 247 | **Consolidate traffic** through fewer connections |
| 248 | **Minimize data transfer** costs |
| 249 | **Use dedicated private links** for high bandwidth |
| 250 | **Implement caching** to reduce traffic |
| 251 | |
| 252 | |
| 253 | ## Related Skills |
| 254 | |
| 255 | `multi-cloud-architecture` - For architecture decisions |
| 256 | `terraform-module-library` - For IaC implementation |
| 257 |
Details
- Updated
- Sep 21, 2026
- License
- MIT
- Stars on the repo
- ★ 39,857
- Checked
- Source
- wshobson/agents ↗
- Creator
- wshobson · 179 listings
Similar skills
See all →
SkillFrom a business idea, app ideaAzure app onboard
SkillAssess whether source code is ready to deploy to AzureAzure App Onboard Prereq — Repository Evaluation
SkillConfigure Azure API Management as an AI Gateway for AIAzure aigateway
SkillQuery and analyze data in Azure Data Explorer using KQLAzure Data Explorer (Kusto) Query & Analytics
MCPRun any server from the Docker MCP Catalog in its ownDocker MCP gateway
MCPOpen infrastructure for AI agents to discover and pay eachElisymMore from wshobson
SkillMaster C/.NET backend development patterns for building
SkillImplement WCAG 2.2 compliant interfaces with mobileAccessibility compliance
SkillMaster Material Design 3 and Jetpack Compose patternsAndroid Mobile Design
SkillMigrate from AngularJS to Angular using hybrid modeAngular migration
SkillUnderstand anti-reversing, obfuscationAnti reversing techniques
SkillBuild production Apache Airflow DAGs with best practicesApache Airflow DAG Patterns