What is a VPN, and how does it work?

A virtual private network wraps traffic in an encrypted tunnel between two points, so the networks in between see only scrambled packets. Companies, server operators and individuals all use them, for quite different reasons.

What happens to traffic inside a VPN?

Each packet is encrypted and wrapped inside another packet addressed to the VPN server, or peer. The receiving end decrypts it and passes the original packet on, either into a private network or out to the internet. Anyone watching the path, such as a café Wi-Fi operator or an internet provider, sees only encrypted traffic between the device and the VPN endpoint. Authentication with keys or certificates ensures each end is who it claims to be.

Which protocols are used today?

ProtocolStrengthsTypical use
WireGuardSmall, fast, modern cryptography, in the Linux kernelServer meshes, remote access, site links
OpenVPNMature, flexible, works over TCP 443 when neededRemote access through restrictive networks
IPsec (IKEv2)Standardised, built into many devices and routersSite-to-site with office equipment, mobile clients

WireGuard has become the default for new Linux deployments because its configuration is short and its throughput is high: a single modern core encrypts several gigabits per second.

What is the difference between remote access and site-to-site?

Remote access connects individual devices, such as staff laptops and phones, to a network. Site-to-site connects whole networks, such as an office and a set of servers, so machines on each side reach each other without client software. Server operators use a third pattern too: a mesh in which every server is a peer of every other, which on our machines replaces a private network, since we do not sell one.

What is split tunnelling?

Sending only some traffic through the VPN. With a full tunnel, all traffic goes through the VPN server; with a split tunnel, only traffic for private ranges, such as your servers' tunnel addresses, uses it, and everything else goes directly to the internet. Split tunnels reduce load on the gateway and keep video calls off it; full tunnels give consistent protection on untrusted networks. In WireGuard the difference is just the AllowedIPs line on the client.

# split tunnel: only the server network
AllowedIPs = 10.20.0.0/24, fd20:4a::/64
# full tunnel: everything
AllowedIPs = 0.0.0.0/0, ::/0

How fast is a VPN?

The tunnel adds encryption work and a little packet overhead, about 60 to 80 bytes per packet for WireGuard. On modern processors the encryption cost is small, so the limits are usually the port speed and the path. A gateway serving hundreds of users at once needs a few cores and an unshared port; a machine such as ESSENTIAL-2 with a guaranteed 1 Gbps port suits most companies, while BUSINESS-1 2024 with a 3 Gbps port suits heavy use.

How do I run my own VPN gateway?

Install WireGuard, create a server interface and a peer entry for each device, enable IP forwarding, and add NAT if clients should reach the internet through the server. Open one UDP port in the firewall. For many users, a management tool that generates client profiles and QR codes saves time. Our Company VPN gateways page walks through a full setup.

wg set wg0 peer "$(cat /etc/wireguard/peers/lina-laptop.pub)" allowed-ips 10.20.0.31/32,fd20:4a::31/128
wg-quick save wg0
nft add rule inet nat postrouting oifname "enp1s0f0" ip saddr 10.20.0.0/24 masquerade

Does a VPN make me anonymous?

No. It hides your traffic from the networks between you and the VPN server and shows websites the server's address instead of yours, but the server operator can see where traffic goes. With your own server, that operator is you, and the server's address is tied to your rental. Use a VPN for security and access control rather than anonymity. VPS and VPN: the difference clears up a common confusion, and Network security places VPNs among other defences.

Machines for VPN gateways

ModelProcessorCoresMemoryDrivesPortPer month
ESSENTIAL-1Intel Xeon-E 2386G632 GB2x 512 GB SSD NVMe1 Gbps unmetered$38.40
ESSENTIAL-2Intel Xeon-E 2388G832 GB2x 512 GB SSD NVMe1 Gbps unmetered$43.20
BUSINESS-1 2024AMD EPYC 4244P632 GB2x 960 GB SSD NVMe3 Gbps unmetered$81.60
BUSINESS-1 2026AMD EPYC 4245P632 GB2x 960 GB SSD NVMe3 Gbps unmetered$113.40

Related pages

Company VPN gateways

Small, efficient machines for WireGuard and IPsec gateways that connect staff, offices and servers privately.

Read more

VPS and VPN: the difference

A VPS is a rented virtual machine; a VPN is an encrypted tunnel. How they differ, how they combine, and where a dedicated server fits for running your own VPN.

Read more

Network security

Layered network security for servers on the public internet: edge filtering, host firewalls, encrypted links, segmentation without a private network and watching traffic.

Read more

Privacy-friendly hosting

Rent bare metal without handing over a name, email or phone number, pay in crypto, choose the country of your data and encrypt what you store.

Read more

Questions and answers

What does a VPN do?

It encrypts traffic between a device or network and a VPN endpoint, so networks in between cannot read or alter it.

Which VPN protocol should I use for servers?

WireGuard for most Linux setups: it is fast, simple and built into the kernel. IPsec suits office routers.

What is split tunnelling?

Routing only some traffic, such as your private server ranges, through the VPN while the rest goes directly to the internet.

Can I host my own VPN on your servers?

Yes. Install WireGuard or OpenVPN, open one port and enable forwarding; our network usage terms apply to the traffic.

Does a VPN make me anonymous?

No. It protects traffic in transit, but the VPN server operator can see where it goes.