What is a VPN?
A VPN is a restricted logical network over a real one, usually with encryption and tunneling, not magic anonymity.
Published here , updated · 6 sources · Resume reading
A VPN (virtual private network) is a restricted-use logical network built from a real physical network, often the internet, usually with encryption and tunneling so the path behaves like a dedicated private link [1] [2]. It is a private path tool, not a personality shield.
Quick start (under a minute)
Before you buy or deploy anything, write one sentence:
"I need a protected path from A to B so protocol P works without exposing B on the public internet."
If you cannot name A, B, and P, pause. Marketing pages sell subscriptions; they rarely name your staging box.
Plain definition (sourced)
NIST's glossary collects aligned definitions: a protected connection using tunneling and security controls between a computer and a logical network, or a logical network constructed with encryption and/or tunnels over a public network [1]. SP 800-77 Rev. 1 describes a VPN as virtual networks on top of physical networks that can secure data and IP information between networks or nodes [2].
Developers usually care about the node-to-network or node-to-node shapes: your laptop becomes logically on the same LAN as a build server or kube API behind a gateway.
How a tunnel sits on the real path
The ciphertext crosses the untrusted segment. Peers at the ends hold keys. What happens after decryption on the exit depends on your architecture: split tunnel vs full tunnel, DNS, and identity still matter.
Worked example: what changes on the wire (conceptual trace)
Suppose your laptop sends an SSH packet to 10.50.0.5 on a corporate LAN. Without VPN, the packet never routes to that RFC1918 address from a cafe network. With VPN connected:
- The SSH TCP segment is handed to the VPN interface as plaintext on the laptop.
- The VPN stack encrypts and encapsulates it toward the corporate gateway peer [2].
- The gateway decrypts and forwards the inner packet onto the LAN where
10.50.0.5lives.
What you should see on the laptop when it works: an interface (WireGuard wg0, Tailscale tailscale0, OpenVPN tun0, vendor-specific names) with a VPN-side address; ssh [email protected] connects without public port forwarding on the server.
This draft host had no VPN client configured (2026-12-03), so the trace above is the expected shape from NIST tunneling language [1] [2], not a live capture. For product-specific status lines, see WireGuard vs Tailscale vs OpenVPN.
Split tunnel vs full tunnel
Split tunnel: only prefixes you list (for example 10.0.0.0/8, staging VPC CIDR) ride the VPN. Public web traffic exits locally.
Full tunnel: default route goes through VPN. Useful when policy demands all traffic exit a known audit point. Costs latency for unrelated browsing.
Pick explicitly. Accidental full tunnel makes local printer and captive portal debugging miserable.
What a VPN does not automatically fix
CISA's joint network access guidance notes that after remote VPN connects, weak segmentation and excessive privilege can still expose broad internal resources [3]. VPN software bugs and misconfiguration remain in scope [3].
A consumer "privacy VPN" moves your internet exit to the provider's node. The provider can still observe metadata and must comply with law and abuse policy. Prefer precise claims: confidential path to a destination you chose, not "invisible on the internet."
HTTPS still matters for each site session. A VPN does not replace TLS to https:// endpoints on the public internet unless your architecture deliberately intercepts and inspects, which is a different trust model.
DNS and identity rides the same policy
Many VPN clients also push DNS resolvers so internal hostname resolution works [2]. If DNS leaks around the tunnel, you can still expose which names you looked up on local resolver paths. Tailscale's MagicDNS and similar features are convenience layers on top of the same trust question: who runs the resolver and which zones it is authoritative for?
Identity is separate: certificates, SSH keys, and SSO still prove who you are after the packet arrives on the private side. A VPN is network attachment, not a replacement for MFA on admin surfaces.
Threat modeling in one table
| Threat on public Wi-Fi | VPN helps? | Still required |
|---|---|---|
| Passive sniffing of unencrypted traffic | Often yes for tunneled prefixes [1] | TLS for web apps anyway |
| Fake captive portal | Partial; depends on client UX | Verify HTTPS certs |
| Lateral move after VPN connect | No | Segmentation, least privilege [3] |
| Compromised VPN vendor exit | No | Minimize sensitive traffic via untrusted exits |
Developer jobs that fit VPNs well
Reach a home lab without publishing SSH to 0.0.0.0. Join staging databases that listen only on private RFC1918 space. Mesh coding-agent hosts that should never accept public SSH (Tailscale for agent machines). Pair with SSH keys and host aliases once the tunnel works.
Product tradeoffs among WireGuard, Tailscale, and OpenVPN: WireGuard vs Tailscale vs OpenVPN. Single VPS hand roll: WireGuard from scratch on a Linux VPS.
Document which internal CIDRs each profile may reach. A contractor laptop on the same VPN as production databases without ACLs recreates the CISA segmentation warning in miniature [3].
Failure modes worth naming
Buying a VPN subscription to "be secure" while leaving admin panels on the public internet.
A VPN is not zero-trust by itself. Identity, device posture, and per-app access may still be required [3].
Running full tunnel globally because the installer defaulted to it, then blaming Slack latency.
Exposing every service on the LAN to every VPN user instead of firewalling by role.
Treating VPN and bastion as the same thing; bastions are jump hosts, VPNs are network attachment.
The VPN operator can still see your traffic metadata and must follow their own policy and law.
Write the threat you actually care about on a sticky note. If it is cafe Wi-Fi sniffing to your VPS, a tunnel helps; if it is a stolen session cookie, patch and MFA matter more. Product picks for developers are in WireGuard vs Tailscale vs OpenVPN for development; a from-scratch Linux path is WireGuard from scratch on a Linux VPS.
Send this to the friend who thinks a VPN makes them invisible to the VPN operator.

Keep this guide
Filed under Dev explainers, Security
Questions about this guide
Does a VPN make me anonymous on the internet?
No. NIST definitions describe a protected logical network over a physical one. Traffic still exits somewhere, and that exit can see metadata. Treat consumer anonymity ads as unverified.
What do developers use VPNs for?
Reach private staging hosts, join a company network from untrusted Wi-Fi, or mesh lab machines without exposing every service port. Product picks live in the WireGuard vs Tailscale vs OpenVPN post.
Is a VPN the same as HTTPS?
No. HTTPS protects one application session to one site. A VPN typically tunnels IP packets between hosts or networks so multiple protocols ride the same protected path.
Does a VPN replace patching and least privilege?
No. CISA's modern network access guidance still treats VPN endpoints as part of a larger access and segmentation story.
Sources
- Full Byte Developer: WireGuard vs Tailscale vs OpenVPNfullbytedeveloper.com
- Full Byte Developer: Tailscale for agent machinesfullbytedeveloper.com
- Full Byte Developer: WireGuard from scratch on a Linux VPSfullbytedeveloper.com