VPN
01 / 02

Tunneling, Encryption & VPN Use Cases

Tunneling, Encryption & VPN Use Cases

Tunneling + Encryption

A VPN creates an encrypted tunnel across a public network like the internet — tunneling encapsulates one protocol's packets inside another so data traverses the intermediate network transparently; encryption scrambles that tunneled data so an eavesdropper without the key can't read its contents. Establishing the connection starts with a handshake negotiating the cryptographic parameters (keys, algorithms) both endpoints will use.

Site-to-Site vs. Remote-Access

A site-to-site VPN connects two entire networks (branch offices, data centers) as one combined network. A remote-access VPN connects an individual device/user to a network — the common enterprise pattern for letting remote employees reach internal resources not exposed to the public internet, as if physically on-site.

Protocols: IPsec & WireGuard

IPsec is a long-established protocol suite providing authentication and encryption for IP packets, underlying many VPN implementations. WireGuard is a newer, deliberately minimal protocol — a much smaller codebase, aiming for easier security auditing and often better performance than older, larger implementations.

Consumer Use: Privacy & Public Wi-Fi

Commercial VPN services mask a user's apparent IP/location and encrypt traffic on untrusted networks — protecting against eavesdropping on public Wi-Fi (a coffee shop's network being less trustworthy than a private one) and sometimes used to access region-restricted content, though streaming services actively try to detect and block known VPN server IPs due to region-locked licensing agreements.

Keep your own version of these notes — editable, searchable, and organised by your stack.

Start free