C.W.K.
Stream
Lesson 01 of 12 · published

Why VPN

~12 min · vpn, remote-access, nat, private-network

Level 0Pinger
0 XP0/101 lessons0/12 achievements
0/150 XP to next level150 XP to go0% complete

The problem in concrete terms

You're on coffee-shop Wi-Fi. Your home server lives at 192.168.1.11 behind your router's NAT. From the coffee shop, you can't reach a 192.168.x.x address — the routing tables of the wider internet have no path to your private subnet. And even if you set up port forwarding, the coffee-shop network is shared with strangers and unencrypted.

What a VPN actually solves

A VPN creates an encrypted tunnel between your device and your network. Once the tunnel is up, it's as if you were physically present on the home/office LAN:

  • Reach private IPs (192.168.x.x, 10.x.x.x) from anywhere.
  • All tunneled traffic is encrypted — public Wi-Fi can't read it.
  • No router port forwarding needed.
  • Devices on the VPN can reach each other regardless of which network they're physically on.

Three flavors of VPN

TypeExamplesBest for
Site-to-siteWireGuard, IPsecConnecting two networks (offices, branches)
Remote accessWireGuard, OpenVPNOne device joining a network
MeshTailscale, ZeroTier, NebulaEvery device speaks to every device, anywhere

For a personal fleet, mesh wins almost always — it gives you the "reach any of my machines from any other" property without configuring per-pair tunnels.

Code

Verify the problem firsthand·bash
# From outside your home network:
ping 192.168.1.11                # times out — no route
ssh you_username@192.168.1.11          # connection refused / timeout

# From INSIDE your home network — works
ping 192.168.1.11                # responds
ssh you_username@192.168.1.11          # connects

# After Tailscale (later in this track) — works from anywhere
ping office                       # via MagicDNS
ssh office                        # via SSH config alias

External links

Exercise

From a network you don't control (phone tethering, coffee shop), try to ping or SSH a private IP at home. Confirm it doesn't work — that's the problem this track solves. By the end of the track you'll be reaching the same machine via Tailscale and the connection will feel exactly like LAN.

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.