A VPN provides a private network where building your own physical network is not possible: employees and offices connect over the internet, and traffic between a company’s sites travels through a provider’s network. The name promises three properties (private, confidential and running over someone else’s network), and each is delivered by its own mechanism.
How it works
Packets from some hosts are wrapped inside packets from others: encapsulation hides internal addresses from transit devices and makes two remote networks behave as a single segment. Encryption and authentication are added to encapsulation so that contents and participants cannot be forged. The choice of mechanism depends on who builds the network, the provider or the organisation itself:
| Type | How it works | Examples |
|---|---|---|
| PE-based | the provider builds tunnels inside its own network: customer traffic never reaches the internet | L3VPN over BGP/MPLS, L2VPN, VPLS |
| CE-based | the customer’s edge devices handle encryption and tunnels, and the provider sees only an encrypted stream | IPsec between office routers, WireGuard |
Where it is used
- employee access to internal services (Git, CRM, admin panels) through a gateway that controls who is let in and where
- joining offices and data centres into one network: site-to-site over IPsec or WireGuard, so that services talk directly
- separating environments: a dedicated VPN for production, so that development and monitoring networks do not interfere with production ones
- protecting traffic between cluster nodes: container networks such as Calico and Cilium can encrypt it with WireGuard tunnels
Protocols
IPsec is a suite of protocols for protection at the network layer: Authentication Header (AH), encryption (ESP) and IKEv2 key exchange. In transport mode the payload of each packet is protected; in tunnel mode the entire original packet, with the addresses of both networks, is encapsulated and encrypted. For site-to-site links, tunnel mode is usually chosen.
WireGuard is a modern protocol: it runs inside the Linux kernel, encrypts IP packets over UDP, relies on proven cryptography (Noise, Curve25519, ChaCha20-Poly1305) and is configured by exchanging public keys between peers. OpenVPN is a flexible user-space daemon built on TLS: it runs over TCP or UDP, passes through proxies and NAT, and supports client certificates.
Not a cure-all
A VPN encrypts the channel but does not replace access control: a compromised laptop inside the tunnel is still inside. So VPN access is complemented with multi-factor authentication and the zero-trust principle: instead of “let into the network, therefore trusted”, every service verifies the user and device itself. Under this model, remote access is increasingly being replaced by ZTNA solutions.
Sources
the term is written from these pages- RFC 4026 — Provider Provisioned Virtual Private Network (VPN) Terminologyrfc-editor.org/rfc/rfc4026.html(opens in a new tab)
- RFC 4301 — Security Architecture for the Internet Protocol (IPsec)rfc-editor.org/rfc/rfc4301.html(opens in a new tab)
- WireGuard: fast, modern, secure VPN tunnelwireguard.com(opens in a new tab)
Verified 9 Nov