# What is a VPN?

> A VPN is a restricted logical network over a real one, usually with encryption and tunneling, not magic anonymity.

Source: https://fullbytedeveloper.com/blog/what-is-a-vpn
Published here: 2026-12-03, updated 2026-12-03

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

<figure aria-label="VPN client through encrypted tunnel to gateway reaching a private destination, not anonymity">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 340" role="img" aria-hidden="true">
  <defs>
    <marker id="vpn-arr" markerWidth="8" markerHeight="8" refX="4" refY="7" orient="auto">
      <path d="M0,0 L4,8 L8,0 Z" fill="#14b8a6"/>
    </marker>
  </defs>
  <rect x="0" y="0" width="320" height="340" rx="12" fill="#0b1f3a"/>
  <rect x="48" y="16" width="224" height="52" rx="6" fill="#123052" stroke="#14b8a6" stroke-width="2"/>
  <text x="160" y="38" text-anchor="middle" font-size="14" fill="#e6edf7" font-family="system-ui,sans-serif">client laptop</text>
  <text x="160" y="56" text-anchor="middle" font-size="13" fill="#e6edf7" font-family="system-ui,sans-serif">your process</text>
  <line x1="160" y1="68" x2="160" y2="92" stroke="#14b8a6" stroke-width="2" marker-end="url(#vpn-arr)"/>
  <rect x="40" y="92" width="240" height="72" rx="6" fill="#123052" stroke="#14b8a6" stroke-width="2" stroke-dasharray="5 3"/>
  <text x="160" y="118" text-anchor="middle" font-size="14" fill="#e6edf7" font-family="system-ui,sans-serif">encrypted tunnel [1]</text>
  <text x="160" y="140" text-anchor="middle" font-size="13" fill="#e6edf7" font-family="system-ui,sans-serif">over public internet</text>
  <line x1="160" y1="164" x2="160" y2="188" stroke="#14b8a6" stroke-width="2" marker-end="url(#vpn-arr)"/>
  <rect x="48" y="188" width="224" height="52" rx="6" fill="#123052" stroke="#f59e0b" stroke-width="2"/>
  <text x="160" y="210" text-anchor="middle" font-size="14" fill="#e6edf7" font-family="system-ui,sans-serif">VPN gateway</text>
  <text x="160" y="228" text-anchor="middle" font-size="13" fill="#e6edf7" font-family="system-ui,sans-serif">peer / concentrator</text>
  <line x1="160" y1="240" x2="160" y2="264" stroke="#14b8a6" stroke-width="2" marker-end="url(#vpn-arr)"/>
  <rect x="48" y="264" width="224" height="52" rx="6" fill="#123052" stroke="#14b8a6" stroke-width="2"/>
  <text x="160" y="286" text-anchor="middle" font-size="14" fill="#e6edf7" font-family="system-ui,sans-serif">private network</text>
  <text x="160" y="304" text-anchor="middle" font-size="13" fill="#e6edf7" font-family="system-ui,sans-serif">apps / RFC1918</text>
</svg>
</figure>

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:

1. The SSH TCP segment is handed to the VPN interface as plaintext on the laptop.
2. The VPN stack encrypts and encapsulates it toward the corporate gateway peer [2].
3. The gateway decrypts and forwards the inner packet onto the LAN where `10.50.0.5` lives.

**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 user@10.50.0.5` 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](/blog/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](/blog/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](/blog/wireguard-vs-tailscale-vs-openvpn). Single VPS hand roll: [WireGuard from scratch on a Linux VPS](/blog/wireguard-from-scratch-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](/blog/wireguard-vs-tailscale-vs-openvpn); a from-scratch Linux path is [WireGuard from scratch on a Linux VPS](/blog/wireguard-from-scratch-linux-vps).

Send this to the friend who thinks a VPN makes them invisible to the VPN operator.

Image: Illustration of a teal-outlined phone releasing discs into a ringed tunnel that routes toward a cube grid and an amber gateway arch, no people and no readable UI text.
https://fullbytedeveloper.com/media/what-is-a-vpn/what-is-a-vpn-venice.webp
Device traffic enters an encrypted tunnel, then routes as the far network allows.

## Sources

1. [NIST CSRC glossary: virtual private network, accessed 2026-12-03](https://csrc.nist.gov/glossary/term/virtual_private_network)
2. [NIST SP 800-77 Rev. 1: Guide to IPsec VPNs, accessed 2026-12-03](https://csrc.nist.gov/pubs/sp/800/77/r1/final)
3. [CISA joint guide: Modern approaches to network access security, accessed 2026-12-03](https://www.cisa.gov/sites/default/files/2024-06/joint-guide-modern-approaches-to-secure-network-access-security-508c.pdf)
4. [Full Byte Developer: WireGuard vs Tailscale vs OpenVPN](https://fullbytedeveloper.com/blog/wireguard-vs-tailscale-vs-openvpn)
5. [Full Byte Developer: Tailscale for agent machines](https://fullbytedeveloper.com/blog/tailscale-for-agent-machines)
6. [Full Byte Developer: WireGuard from scratch on a Linux VPS](https://fullbytedeveloper.com/blog/wireguard-from-scratch-linux-vps)
