Packet.School
HomeLevelsSandboxPricingAbout
XP1,240
L5 · Advanced Topics
Level 5
6 lessons
  • 01Subnetting Basics
  • 02Subnet Calculation
  • 03What is NAT?
  • 04VPN
  • 05Terminal Commands
  • 06Final Quiz
Levels/L5 · Advanced Topics/Lesson 04
Lesson · 04

VPN

VPN creates a secure, encrypted tunnel over the internet.

Duration
2min
Level
L5
Type
Lesson
Progress
4/ 6

01What is VPN?

code
[Your PC] ══════════════════════════ [Company Network]
             Encrypted Tunnel (VPN)
             Over the Internet
  • Virtual: Software-based, not physical
  • Private: Encrypted, secure
  • Network: Network connection

02VPN Use Cases

1. Remote Access

code
Work from home → VPN → Company network

2. Site-to-Site Connection

code
Branch A → VPN Tunnel → Main Office

3. Privacy

code
You → VPN Server → Internet
        ↓
   Your IP is hidden

4. Bypassing Geographic Restrictions

code
Turkey → US VPN → US Netflix

03VPN Protocols

ProtocolSecuritySpeedUsage
OpenVPNHighMediumMost common
WireGuardHighVery HighNext generation
IPSecHighMediumEnterprise
L2TP/IPSecMediumLowLegacy
PPTPLowHighDon't use!

04How VPN Works?

1. Connection Setup

code
Client → Authentication → VPN Server
         (user/password or certificate)

2. Tunnel Creation

code
[Original Packet] → Encryption → [VPN Packet]

Original:
[IP Header][TCP][Data]
        ↓
With VPN:
[New IP][VPN][Encrypted(IP+TCP+Data)]

3. Data Transmission

code
Encrypted data → Internet → VPN Server → Decryption → Destination

05Enterprise VPN Scenario

code
                    Internet
                       |
        ┌──────────────┼──────────────┐
        |              |              |
    [Home]        [Branch]      [Mobile]
        |              |              |
        └──────────────┼──────────────┘
                       |
                 [VPN Gateway]
                       |
                 [Company Network]
                    /     \
               Server   Files

06VPN Types

Remote Access VPN

  • Single user connection
  • Work from home
  • SSL VPN common

Site-to-Site VPN

  • Connection between two networks
  • Between branches
  • IPSec common

07Split Tunneling

Full Tunnel:

code
All traffic → VPN → Internet
(slow but secure)

Split Tunnel:

code
Company traffic → VPN
Internet traffic → Direct
(fast but risky)

08VPN Security

Provides:

  • ✅ Encryption (data can't be read)
  • ✅ Authentication
  • ✅ IP hiding
  • ✅ Man-in-the-middle protection

Doesn't Provide:

  • ❌ Anonymity (VPN provider can see)
  • ❌ Malware protection
  • ❌ 100% privacy

09Summary

  • VPN = Encrypted tunnel over internet
  • For remote access and security
  • OpenVPN and WireGuard recommended
  • Split tunneling balances performance/security
Previous
What is NAT?
Next
Terminal Commands
On this page
  • What is VPN?
  • VPN Use Cases
  • VPN Protocols
  • How VPN Works?
  • Enterprise VPN Scenario
  • VPN Types
  • Split Tunneling
  • VPN Security
  • Summary
Packet.School

An open, interactive curriculum for computer networking.

v3.0 · MIT22 lessons live

Learn

  • Lessons
  • Sandbox
  • Levels
  • Pricing
  • About

Simulations

  • Packet Journey
  • DNS Lookup
  • DHCP Simulator
  • Subnet Calc
  • Network Builder
  • Terminal

Project

  • About
  • Changelog
  • GitHub
  • Contributing
  • Style guide

Newsletter

One short email when a new level ships. No tracking pixels.

© 2026 Packet.School — MIT licensed☕ Support with a coffeebuilt in the open · last updated 2026.05.14