Bookmarks

VPN — virtual private network

A network that uses a shared channel, such as the internet or a provider’s network, to join hosts into a closed group: outside traffic cannot see its addresses and data.

Also: VPN, virtual private network (VPN)

checked 9 Nov

All terms

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:

TypeHow it worksExamples
PE-basedthe provider builds tunnels inside its own network: customer traffic never reaches the internetL3VPN over BGP/MPLS, L2VPN, VPLS
CE-basedthe customer’s edge devices handle encryption and tunnels, and the provider sees only an encrypted streamIPsec 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

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • VLANvirtual LAN

    A VLAN divides one physical switch into isolated segments, whereas a VPN connects hosts across a shared network, the internet or a provider’s network.

  • NATnetwork address translation

    NAT merely rewrites addresses so that private networks can reach the internet; a VPN builds a closed channel between networks without exposing them to the public.

  • ZTNAzero trust network access

    ZTNA grants access to individual applications after verifying the user and device, whereas a VPN connects straight to an entire network.

In depth in the references

where the topic is covered in detail

Appears in the references