SlideShare a Scribd company logo
Connecting On-Premises to AWS with Site-to-
Site VPN
By - Tamanna
NextGen_Outlier 1
What is AWS Site-to-Site VPN?
A secure, encrypted connection between your on-premises network and AWS VPC.
Uses IPsec protocol over the public internet.
Ideal for hybrid cloud setups.
Example: Office database (192.168.1.0/24) connects to AWS web app (10.0.1.0/24).
NextGen_Outlier 2
Why Use Site-to-Site VPN?
Secure: Encrypts data between on-premises and AWS.
Cost-Effective: Uses internet, no dedicated lines needed.
Flexible: Works with most firewalls (Cisco, Fortinet, etc.).
Hybrid Cloud: Seamlessly integrates on-premises and cloud resources.
NextGen_Outlier 3
Key Components of AWS Site-to-Site VPN
Component Description
VPC Your isolated cloud network in AWS.
Virtual Private Gateway (VPG) AWS-side VPN endpoint.
Customer Gateway (CGW) Your on-premises VPN device.
Site-to-Site VPN Encrypted IPsec tunnels (two for redundancy).
NextGen_Outlier 4
Architecture Overview
[On-Premises Network] --> [Customer Gateway] --> [Internet]
|
v
[VPG] <-- [Site-to-Site VPN Tunnels] --> [AWS VPC]
Visualizes the secure connection between on-premises and AWS.
NextGen_Outlier 5
Requirements and Prerequisites
AWS account with VPC access.
Compatible on-premises VPN device (e.g., Cisco, Juniper).
Static public IP for VPN device (e.g., 203.0.113.1).
Non-overlapping CIDRs:
On-Premises: 192.168.0.0/16
AWS VPC: 10.0.0.0/16
Firewall rules: Allow UDP 500, 4500, ESP protocol.
NextGen_Outlier 6
Step-by-Step Setup Overview
1. Create and attach a Virtual Private Gateway (VPG).
2. Configure the Customer Gateway (CGW).
3. Set up the Site-to-Site VPN connection.
4. Configure your on-premises VPN device.
5. Verify and test the connection.
NextGen_Outlier 7
Step 1: Set Up Virtual Private Gateway (VPG)
Go to VPC > Virtual Private Gateways.
Create VPG:
Name: MyVPG
ASN: 64512 (AWS default)
Attach to your VPC (e.g., vpc-12345678).
Enable route propagation in VPC route table.
Example Route Table:
Destination Target
10.0.0.0/16 local
192.168.0.0/16 vgw-12345678
NextGen_Outlier 8
Step 2: Configure Customer Gateway (CGW)
Go to VPC > Customer Gateways.
Create CGW:
Name: MyCGW
IP Address: 203.0.113.1 (on-premises VPN device)
Routing: Dynamic (BGP) or Static
BGP ASN: 65000 (if dynamic)
NextGen_Outlier 9
Step 3: Create Site-to-Site VPN Connection
Go to VPC > Site-to-Site VPN Connections.
Create VPN:
Name: MyVPN
VPG: MyVPG
CGW: MyCGW
Routing: Dynamic or Static (match CGW)
Static Routes (if static): 192.168.0.0/16
Download configuration file for your VPN device.
NextGen_Outlier 10
Step 4: Configure On-Premises VPN Device
Use AWS configuration file for settings (e.g., Cisco ASA).
Configure IPsec tunnels (two for redundancy).
Set up routing (static or BGP).
Update firewall rules: Allow UDP 500, 4500, ESP.
Example Cisco CLI:
crypto ikev2 enable outside
tunnel-group 52.1.2.3 type ipsec-l2i
route outside 10.0.0.0 255.255.0.0 52.1.2.3
NextGen_Outlier 11
Step 5: Verify and Test the Connection
Check VPN status in AWS: Both tunnels should be UP.
Ping test: Ping from on-premises to AWS (e.g., 10.0.1.10).
Monitor logs: AWS CloudWatch and on-premises device.
Test application access (e.g., database queries).
Troubleshooting:
Verify pre-shared keys.
Check firewall rules and routes.
Use VPC Flow Logs for debugging.
NextGen_Outlier 12
Additional Configuration Tips
High Availability: Use both tunnels with BGP for failover.
Security: Use AES-256, SHA-256 encryption.
Performance: Monitor bandwidth (~1.25 Gbps per tunnel).
Monitoring: Set up CloudWatch alarms for tunnel status.
NAT Traversal: Enable NAT-T if behind NAT.
NextGen_Outlier 13
Common Pitfalls to Avoid
Issue Solution
Overlapping CIDRs Use non-overlapping ranges (e.g., 10.0.0.0/16 vs. 192.168.0.0/16).
Incorrect Pre-shared Keys Copy keys from AWS configuration file.
Firewall Blocking IPsec Open UDP 500, 4500, ESP.
Missing Routes Verify AWS and on-premises routing.
NextGen_Outlier 14
Conclusion
AWS Site-to-Site VPN enables secure hybrid cloud connectivity.
Follow the 5-step process for a robust setup.
Test thoroughly and monitor for reliability.
Refer to AWS documentation: https://docs.aws.amazon.com/vpn
NextGen_Outlier 15
Thank you!!
NextGen_Outlier 16

More Related Content

PDF
AWS Direct Connect 및 VPN을 이용한 클라우드 아키텍쳐 설계:: Steve Seymour :: AWS Summit Seou...
PDF
Mastering AWS Networking: A Practical Guide to VPCs and Cloud Connectivity
PDF
Architecting Advanced Network Security Across VPCs with AWS Transit Gateway
PDF
PLNOG 17 - Tomasz Stachlewski - Infrastruktura sieciowa w chmurze AWS
PDF
Amazon AWS Workspace Howto
PDF
AWS Virtual Private Cloud
DOCX
Virtual private cloud fundamentals
PDF
aws vpn connection
AWS Direct Connect 및 VPN을 이용한 클라우드 아키텍쳐 설계:: Steve Seymour :: AWS Summit Seou...
Mastering AWS Networking: A Practical Guide to VPCs and Cloud Connectivity
Architecting Advanced Network Security Across VPCs with AWS Transit Gateway
PLNOG 17 - Tomasz Stachlewski - Infrastruktura sieciowa w chmurze AWS
Amazon AWS Workspace Howto
AWS Virtual Private Cloud
Virtual private cloud fundamentals
aws vpn connection

Similar to How to Connect Your On-Premises Site to AWS Using Site-to-Site VPN.pdf (20)

PPTX
AWS SSA Webinar 10 - Getting Started on AWS: Networking
DOCX
AWS VPN with Juniper SRX- Lab Sheet
PPTX
Introduction to AWS VPC, Guidelines, and Best Practices
PPTX
Amazon Virtual Private Cloud - VPC 2
PDF
AWS VPC NOTES _ LEARN AWS EFFECTIVELY and Easily
PPTX
Vpc (virtual private cloud)
PPTX
AWS Certified Solutions Architect Professional Course S6-S9
PPTX
AWS network services
PPTX
AWS Transit Gateway-Benefits and Best Practices
PDF
Openstack Summit Vancouver 2018 - Multicloud Networking
PPTX
Productos de redes con AWS
TXT
Vpn 3854d825
PDF
AWS Connectivity, VPC Design and Security Pro Tips
PPTX
Networking Best Practices for Your Serverless Applications
PDF
Securing Remote Access for Cloud-Based Systems
PDF
Deep Dive: Amazon Virtual Private Cloud (March 2017)
PPTX
Pitt Immersion Day Module 3 - networking in AWS
DOCX
AWS | NAT Gateway Configuration
PPTX
Virtual Private Cloud(subnet,routetable).pptx
AWS SSA Webinar 10 - Getting Started on AWS: Networking
AWS VPN with Juniper SRX- Lab Sheet
Introduction to AWS VPC, Guidelines, and Best Practices
Amazon Virtual Private Cloud - VPC 2
AWS VPC NOTES _ LEARN AWS EFFECTIVELY and Easily
Vpc (virtual private cloud)
AWS Certified Solutions Architect Professional Course S6-S9
AWS network services
AWS Transit Gateway-Benefits and Best Practices
Openstack Summit Vancouver 2018 - Multicloud Networking
Productos de redes con AWS
Vpn 3854d825
AWS Connectivity, VPC Design and Security Pro Tips
Networking Best Practices for Your Serverless Applications
Securing Remote Access for Cloud-Based Systems
Deep Dive: Amazon Virtual Private Cloud (March 2017)
Pitt Immersion Day Module 3 - networking in AWS
AWS | NAT Gateway Configuration
Virtual Private Cloud(subnet,routetable).pptx
Ad

More from Tamanna (14)

PDF
Building Production-Ready AI Agents with LangGraph.pdf
PDF
Web Scraping with Google Gemini 2.0 .pdf
PDF
Choosing the Right Database for Indexing.pdf
PDF
Context Engineering vs. Prompt Engineering, A Comprehensive Guide.pdf
PDF
Context Engineering for AI Agents, approaches, memories.pdf
PDF
Data Chunking Strategies for RAG in 2025.pdf
PDF
Simplifying Document Processing with Docling for AI Applications.pdf
PDF
The Best NVIDIA GPUs for LLM Inference in 2025.pdf
PDF
Optimizing Large Language Models with vLLM and Related Tools.pdf
PPTX
Building Powerful Agentic AI with Google ADK, MCP, RAG, and Ollama.pptx
PDF
NVIDIA Triton Inference Server, a game-changing platform for deploying AI mod...
PPTX
Understanding Large Language Model Hallucinations: Exploring Causes, Detectio...
PPTX
Understanding LLM Temperature: A comprehensive Guide
PDF
Knowledge based System
Building Production-Ready AI Agents with LangGraph.pdf
Web Scraping with Google Gemini 2.0 .pdf
Choosing the Right Database for Indexing.pdf
Context Engineering vs. Prompt Engineering, A Comprehensive Guide.pdf
Context Engineering for AI Agents, approaches, memories.pdf
Data Chunking Strategies for RAG in 2025.pdf
Simplifying Document Processing with Docling for AI Applications.pdf
The Best NVIDIA GPUs for LLM Inference in 2025.pdf
Optimizing Large Language Models with vLLM and Related Tools.pdf
Building Powerful Agentic AI with Google ADK, MCP, RAG, and Ollama.pptx
NVIDIA Triton Inference Server, a game-changing platform for deploying AI mod...
Understanding Large Language Model Hallucinations: Exploring Causes, Detectio...
Understanding LLM Temperature: A comprehensive Guide
Knowledge based System
Ad

Recently uploaded (20)

PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PDF
[EN] Industrial Machine Downtime Prediction
PDF
Capcut Pro Crack For PC Latest Version {Fully Unlocked 2025}
PPT
Quality review (1)_presentation of this 21
PPT
ISS -ESG Data flows What is ESG and HowHow
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PPTX
Leprosy and NLEP programme community medicine
PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
PPT
Predictive modeling basics in data cleaning process
PDF
Lecture1 pattern recognition............
PPTX
Computer network topology notes for revision
PPTX
modul_python (1).pptx for professional and student
PPTX
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PPTX
SAP 2 completion done . PRESENTATION.pptx
PDF
Data Engineering Interview Questions & Answers Cloud Data Stacks (AWS, Azure,...
PPTX
Database Infoormation System (DBIS).pptx
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
[EN] Industrial Machine Downtime Prediction
Capcut Pro Crack For PC Latest Version {Fully Unlocked 2025}
Quality review (1)_presentation of this 21
ISS -ESG Data flows What is ESG and HowHow
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
Leprosy and NLEP programme community medicine
STUDY DESIGN details- Lt Col Maksud (21).pptx
Predictive modeling basics in data cleaning process
Lecture1 pattern recognition............
Computer network topology notes for revision
modul_python (1).pptx for professional and student
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
SAP 2 completion done . PRESENTATION.pptx
Data Engineering Interview Questions & Answers Cloud Data Stacks (AWS, Azure,...
Database Infoormation System (DBIS).pptx
Acceptance and paychological effects of mandatory extra coach I classes.pptx

How to Connect Your On-Premises Site to AWS Using Site-to-Site VPN.pdf

  • 1. Connecting On-Premises to AWS with Site-to- Site VPN By - Tamanna NextGen_Outlier 1
  • 2. What is AWS Site-to-Site VPN? A secure, encrypted connection between your on-premises network and AWS VPC. Uses IPsec protocol over the public internet. Ideal for hybrid cloud setups. Example: Office database (192.168.1.0/24) connects to AWS web app (10.0.1.0/24). NextGen_Outlier 2
  • 3. Why Use Site-to-Site VPN? Secure: Encrypts data between on-premises and AWS. Cost-Effective: Uses internet, no dedicated lines needed. Flexible: Works with most firewalls (Cisco, Fortinet, etc.). Hybrid Cloud: Seamlessly integrates on-premises and cloud resources. NextGen_Outlier 3
  • 4. Key Components of AWS Site-to-Site VPN Component Description VPC Your isolated cloud network in AWS. Virtual Private Gateway (VPG) AWS-side VPN endpoint. Customer Gateway (CGW) Your on-premises VPN device. Site-to-Site VPN Encrypted IPsec tunnels (two for redundancy). NextGen_Outlier 4
  • 5. Architecture Overview [On-Premises Network] --> [Customer Gateway] --> [Internet] | v [VPG] <-- [Site-to-Site VPN Tunnels] --> [AWS VPC] Visualizes the secure connection between on-premises and AWS. NextGen_Outlier 5
  • 6. Requirements and Prerequisites AWS account with VPC access. Compatible on-premises VPN device (e.g., Cisco, Juniper). Static public IP for VPN device (e.g., 203.0.113.1). Non-overlapping CIDRs: On-Premises: 192.168.0.0/16 AWS VPC: 10.0.0.0/16 Firewall rules: Allow UDP 500, 4500, ESP protocol. NextGen_Outlier 6
  • 7. Step-by-Step Setup Overview 1. Create and attach a Virtual Private Gateway (VPG). 2. Configure the Customer Gateway (CGW). 3. Set up the Site-to-Site VPN connection. 4. Configure your on-premises VPN device. 5. Verify and test the connection. NextGen_Outlier 7
  • 8. Step 1: Set Up Virtual Private Gateway (VPG) Go to VPC > Virtual Private Gateways. Create VPG: Name: MyVPG ASN: 64512 (AWS default) Attach to your VPC (e.g., vpc-12345678). Enable route propagation in VPC route table. Example Route Table: Destination Target 10.0.0.0/16 local 192.168.0.0/16 vgw-12345678 NextGen_Outlier 8
  • 9. Step 2: Configure Customer Gateway (CGW) Go to VPC > Customer Gateways. Create CGW: Name: MyCGW IP Address: 203.0.113.1 (on-premises VPN device) Routing: Dynamic (BGP) or Static BGP ASN: 65000 (if dynamic) NextGen_Outlier 9
  • 10. Step 3: Create Site-to-Site VPN Connection Go to VPC > Site-to-Site VPN Connections. Create VPN: Name: MyVPN VPG: MyVPG CGW: MyCGW Routing: Dynamic or Static (match CGW) Static Routes (if static): 192.168.0.0/16 Download configuration file for your VPN device. NextGen_Outlier 10
  • 11. Step 4: Configure On-Premises VPN Device Use AWS configuration file for settings (e.g., Cisco ASA). Configure IPsec tunnels (two for redundancy). Set up routing (static or BGP). Update firewall rules: Allow UDP 500, 4500, ESP. Example Cisco CLI: crypto ikev2 enable outside tunnel-group 52.1.2.3 type ipsec-l2i route outside 10.0.0.0 255.255.0.0 52.1.2.3 NextGen_Outlier 11
  • 12. Step 5: Verify and Test the Connection Check VPN status in AWS: Both tunnels should be UP. Ping test: Ping from on-premises to AWS (e.g., 10.0.1.10). Monitor logs: AWS CloudWatch and on-premises device. Test application access (e.g., database queries). Troubleshooting: Verify pre-shared keys. Check firewall rules and routes. Use VPC Flow Logs for debugging. NextGen_Outlier 12
  • 13. Additional Configuration Tips High Availability: Use both tunnels with BGP for failover. Security: Use AES-256, SHA-256 encryption. Performance: Monitor bandwidth (~1.25 Gbps per tunnel). Monitoring: Set up CloudWatch alarms for tunnel status. NAT Traversal: Enable NAT-T if behind NAT. NextGen_Outlier 13
  • 14. Common Pitfalls to Avoid Issue Solution Overlapping CIDRs Use non-overlapping ranges (e.g., 10.0.0.0/16 vs. 192.168.0.0/16). Incorrect Pre-shared Keys Copy keys from AWS configuration file. Firewall Blocking IPsec Open UDP 500, 4500, ESP. Missing Routes Verify AWS and on-premises routing. NextGen_Outlier 14
  • 15. Conclusion AWS Site-to-Site VPN enables secure hybrid cloud connectivity. Follow the 5-step process for a robust setup. Test thoroughly and monitor for reliability. Refer to AWS documentation: https://docs.aws.amazon.com/vpn NextGen_Outlier 15