Configure secure, high-performance connectivity between

Hybrid cloud networking

by wshobson · MIT license · ★ 39,857 on GitHub · updated Sep 21

Hybrid cloud networking cover

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)
Claude Codenpx skills add wshobson/agents --skill hybrid-cloud-networking -g -a claude-code
Claude Code (manual)mkdir -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-networking
Windows (PowerShell)New-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" -Force
Claude.ai / desktopDownload the ZIP and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md6.0 KB
  • references/1 file · 799 B
Read the files here
wshobson/4236bb92 files
SKILL.md
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

  1. Use private connectivity (Direct Connect/ExpressRoute/Interconnect/FastConnect)
  2. Implement encryption for VPN tunnels
  3. Use VPC endpoints to avoid internet routing
  4. Configure network ACLs and security groups
  5. Enable VPC Flow Logs for monitoring
  6. Implement DDoS protection
  7. Use PrivateLink/Private Endpoints
  8. Monitor connections with CloudWatch/Azure Monitor/Cloud Monitoring/OCI Monitoring
  9. Implement redundancy (dual tunnels)
  10. 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

  1. Right-size connections based on traffic
  2. Use VPN for low-bandwidth workloads
  3. Consolidate traffic through fewer connections
  4. Minimize data transfer costs
  5. Use dedicated private links for high bandwidth
  6. Implement caching to reduce traffic
  • multi-cloud-architecture - For architecture decisions
  • terraform-module-library - For IaC implementation
1---
2name: hybrid-cloud-networking
3description: 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 
8Configure secure, high-performance connectivity between on-premises and cloud environments using VPN, Direct Connect, ExpressRoute, Interconnect, and FastConnect.
9 
10## Purpose
11 
12Establish 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```hcl
34resource "aws_vpn_gateway" "main" {
35 vpc_id = aws_vpc.main.id
36 tags = {
37 Name = "main-vpn-gateway"
38 }
39}
40 
41resource "aws_customer_gateway" "main" {
42 bgp_asn = 65000
43 ip_address = "203.0.113.1"
44 type = "ipsec.1"
45}
46 
47resource "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```hcl
69resource "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```
127On-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```
141On-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```
151On-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```
163On-Premises Router:
164- AS Number: 65000
165- Advertise: 10.0.0.0/8
166 
167Cloud 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 
1811. **Use private connectivity** (Direct Connect/ExpressRoute/Interconnect/FastConnect)
1822. **Implement encryption** for VPN tunnels
1833. **Use VPC endpoints** to avoid internet routing
1844. **Configure network ACLs** and security groups
1855. **Enable VPC Flow Logs** for monitoring
1866. **Implement DDoS protection**
1877. **Use PrivateLink/Private Endpoints**
1888. **Monitor connections** with CloudWatch/Azure Monitor/Cloud Monitoring/OCI Monitoring
1899. **Implement redundancy** (dual tunnels)
19010. **Regular security audits**
191 
192## High Availability
193 
194### Dual VPN Tunnels
195 
196```hcl
197resource "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 
203resource "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```bash
230# AWS VPN
231aws ec2 describe-vpn-connections
232aws ec2 get-vpn-connection-telemetry
233 
234# Azure VPN
235az network vpn-connection show
236az network vpn-connection show-device-config-script
237 
238# OCI IPSec VPN
239oci network ip-sec-connection list
240oci network cpe list
241```
242 
243## Cost Optimization
244 
2451. **Right-size connections** based on traffic
2462. **Use VPN for low-bandwidth** workloads
2473. **Consolidate traffic** through fewer connections
2484. **Minimize data transfer** costs
2495. **Use dedicated private links** for high bandwidth
2506. **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 
View all files on GitHub →

Details

Updated
Sep 21, 2026
License
MIT
Stars on the repo
★ 39,857
Checked
Source
wshobson/agents ↗
Creator
wshobson · 179 listings
View creator

Similar skills

See all →
SkillFrom a business idea, app ideaAzure app onboardmicrosoft/skills · by microsoftEnd-to-end orchestrator: from a business idea, app idea, or existing app to running Azure deployment with cost estimates and pre-deploy approval. Analyzes your app, auto-detects the right Azure services, scaffolds infrastructure code, and deploys — tailored to your app, not a template. Handles moving existing apps to Azure without rewriting or with minimal changes. WHEN: bring your app to Azure, plan my app, cost to run, is my code ready to deploy, deploy my app to the cloud, deploy all my services, what Azure services do I need, plan my Azure deployment, deploy my new app to Azure, one-click deploy, I have an app and want it on Azure, migrate my app to Azure, help me get started, build an app, no code yet, starter project. DO NOT USE FOR: use azd for deployment(use azure-deploy), optimizing existing costs (use cost-optimization), code readiness checks only (use azure-app-onboard-prereq).★ 3.1k GitHub starsSkillAssess whether source code is ready to deploy to AzureAzure App Onboard Prereq — Repository Evaluationmicrosoft/skills · by microsoftAssess whether source code is ready to deploy to Azure — the check BEFORE infrastructure work. Evaluates build health, app completeness, dependencies and local services, stack compatibility, and deployment feasibility. Answers questions about what your app needs before it can be deployed — frameworks, dependencies, and configuration. Checks whether dependencies are compatible and identifies deployment blockers and unsupported frameworks. WHEN: "evaluate my repo", "is my app ready to deploy", "what does my app need to deploy", "what do I need before deploying", "does my app need", "can I ship this to Azure", "scan my repo for issues", "is this app deployable", "check if my app is ready for Azure", "do I need a Dockerfile", "what's blocking my deployment", "are there any blockers", "are my dependencies compatible", "does Azure support my framework", "what needs to change before deploying", "check my app configuration".★ 3.1k GitHub starsSkillConfigure Azure API Management as an AI Gateway for AIAzure aigatewaymicrosoft/azure-skills · by microsoftConfigure Azure API Management as an AI Gateway for AI models, MCP tools, and agents. WHEN: semantic caching, token limit, content safety, load balancing, AI model governance, MCP rate limiting, jailbreak detection, add Azure OpenAI backend, add AI Foundry model, test AI gateway, LLM policies, configure AI backend, token metrics, AI cost control, convert API to MCP, import OpenAPI to gateway.★ 1.6k GitHub starsSkillQuery and analyze data in Azure Data Explorer using KQLAzure Data Explorer (Kusto) Query & Analyticsmicrosoft/azure-skills · by microsoftQuery and analyze data in Azure Data Explorer (Kusto/ADX) using KQL for log analytics, telemetry, and time series analysis. WHEN: KQL queries, Kusto database queries, Azure Data Explorer, ADX clusters, log analytics, time series data, IoT telemetry, anomaly detection.★ 1.6k GitHub starsMCPRun any server from the Docker MCP Catalog in its ownDocker MCP gatewaydocker/mcp-gateway · by dockerDocker's own CLI plugin: run any server from the Docker MCP Catalog in its own container, behind one connection, with secrets kept out of env vars.★ 1.6k GitHub starsMCPOpen infrastructure for AI agents to discover and pay eachElisymelisymlabs/elisym · by elisymlabsOpen infrastructure for AI agents to discover and pay each other★ 17 GitHub stars

More from wshobson

SkillMaster C/.NET backend development patterns for buildingwshobson/agents · by wshobsonMaster C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications. Covers async/await, dependency injection, Entity Framework Core, Dapper, configuration, caching, and testing with xUnit. Use when developing .NET backends, reviewing C# code, or designing API architectures.★ 39.9k GitHub starsSkillImplement WCAG 2.2 compliant interfaces with mobileAccessibility compliancewshobson/agents · by wshobsonImplement WCAG 2.2 compliant interfaces with mobile accessibility, inclusive design patterns, and assistive technology support. Use when auditing accessibility, implementing ARIA patterns, building for screen readers, or ensuring inclusive user experiences.★ 39.9k GitHub starsSkillMaster Material Design 3 and Jetpack Compose patternsAndroid Mobile Designwshobson/agents · by wshobsonMaster Material Design 3 and Jetpack Compose patterns for building native Android apps. Use when designing Android interfaces, implementing Compose UI, or following Google's Material Design guidelines.★ 39.9k GitHub starsSkillMigrate from AngularJS to Angular using hybrid modeAngular migrationwshobson/agents · by wshobsonMigrate from AngularJS to Angular using hybrid mode, incremental component rewriting, and dependency injection updates. Use when upgrading AngularJS applications, planning framework migrations, or modernizing legacy Angular code.★ 39.9k GitHub starsSkillUnderstand anti-reversing, obfuscationAnti reversing techniqueswshobson/agents · by wshobsonUnderstand anti-reversing, obfuscation, and protection techniques encountered during software analysis. Use this skill when analyzing malware evasion techniques, when implementing anti-debugging protections for CTF challenges, when reverse engineering packed binaries, or when building security research tools that need to detect virtualized environments.★ 39.9k GitHub starsSkillBuild production Apache Airflow DAGs with best practicesApache Airflow DAG Patternswshobson/agents · by wshobsonBuild production Apache Airflow DAGs with best practices for operators, sensors, testing, and deployment. Use when creating data pipelines, orchestrating workflows, or scheduling batch jobs.★ 39.9k GitHub stars