We use analytics cookies.We use cookies to analyze site traffic and improve your experience.
Loading...
System Design Masterclass · Cloud Infrastructure
Free preview: the first 2 parts of this 6-part lesson.
Already bought the course? Sign in to read the whole lesson.
this lesson is part of
System Design Masterclass
Unlock this lesson and the 751 other paid lessons
$25 once, by PayPal
See the System Design courseread the rest of this lesson in
System Design Masterclass
Unlock this lesson and the 751 other paid lessons
$25 once, by PayPal
See the System Design coursein Cloud Infrastructure
This lesson is part of the full System Design Masterclass. Unlock it along with 769 other lessons for a one-time payment.
One-time payment by card or PayPal
Get Lifetime AccessOne-time payment: UPI, card or netbanking
Get Lifetime Access18 Foundation lessons are free, no payment needed. Try them now
It is easy and good
“It is really nice and good Please join the course”
Your company has an office in New York and a cloud VPC in AWS us-east-1. Developers need to access internal tools running in the VPC, databases, admin panels, monitoring dashboards. These resources are in private subnets with no public IPs. How do your developers reach them?
Option A: Make everything public. Terrible idea. Your database is now exposed to every bot scanner on the internet.
Option B: Build a dedicated physical cable from your office to AWS. Works, but costs $10,000+ per month (this is what AWS Direct Connect is).
Option C: Create an encrypted tunnel through the public internet. Your traffic travels over the same cables as everyone else's, but it's wrapped in encryption that makes it unreadable to anyone who intercepts it. From your office network's perspective, the VPC feels like it's on the same local network.
That's a VPN. It's the most common way to connect private networks across untrusted infrastructure. Every remote worker who connects to their company's internal network uses one. Every hybrid cloud architecture relies on one. It's the duct tape that holds modern enterprise networking together.
A VPN creates an encrypted tunnel between two endpoints. All traffic inside the tunnel is encrypted before it enters the public internet and decrypted when it exits.
Key protocols:
| Protocol | Speed | Security | Use Case |
|---|---|---|---|
| IPsec | Fast | Strong (industry standard) | Site-to-site, cloud connections |
| OpenVPN | Moderate | Strong (open source) | Client-to-site, remote access |
| WireGuard | Very fast | Strong (modern crypto) | Both, gaining adoption fast |
| IKEv2 | Fast | Strong | Mobile devices (handles network switches well) |
The tunnel process:
Split tunneling vs full tunneling: