Glossary

VPN Server

A VPN server is the endpoint that devices or other networks connect to through an encrypted tunnel. Once connected, they reach private services, or the internet, as if they were on its network.

What does a VPN server do?

It accepts encrypted tunnels from clients, checks who they are, gives each one an address on a virtual network and routes their packets. A laptop in a cafe connects to the VPN server and can then reach an internal database that is not exposed to the internet. Or every device of a small team connects, and their traffic leaves to the internet from the server's address. The server is both a door, deciding who gets in, and a router, deciding where their traffic goes.

What are the main uses?

  • Remote access to private services. Admin panels, databases and monitoring stay off the public internet and are reachable only through the tunnel.
  • Site to site. Two offices, or an office and a server, are joined into one routed network.
  • Fixed outbound address. Team traffic leaves from one known IP, which partners can allow in their firewalls.
  • Safe use of untrusted networks. Traffic is encrypted between the device and your server.

A dedicated machine also works well as the hub joining several of your own servers in different cities, since we do not offer private networks between machines; WireGuard tunnels give the same effect over the internet.

WireGuard, OpenVPN or IPsec?

WireGuardOpenVPNIPsec (strongSwan)
Setup effortLow: short config, key pairsMedium: certificates and optionsHigher: many parameters
SpeedVery high, runs in the kernelGood, mostly user spaceHigh
TransportUDPUDP or TCPUDP (IKE, ESP)
Best forNew deployments, servers, phonesNetworks that only allow TCP 443Connecting to existing routers and firewalls

For a new setup, WireGuard is the usual pick. A minimal server config looks like this:

[Interface]
Address = 10.66.0.1/24
ListenPort = 51820
PrivateKey = (server private key)

[Peer]
PublicKey = (laptop public key)
AllowedIPs = 10.66.0.2/32

Bring it up with wg-quick up wg0 and enable it at boot with systemctl enable wg-quick@wg0. If clients should reach the internet through the server, enable IP forwarding and add a masquerade rule, as in iptables port forwarding.

How much CPU does a VPN server need?

Encryption costs CPU, but modern processors handle it well. WireGuard uses ChaCha20, which runs fast on any 64-bit CPU, and spreads work across cores. As a rough guide, one modern core moves several gigabits per second of WireGuard traffic, so even E1 with 4 cores can fill its 2x 1 Gbps port. OpenVPN in its classic form handles each tunnel in one process, so a high clock speed helps: S1 at Intel Xeon E-2276G is a good fit. For hundreds of users at high speed, a 10 or 25 Gbps machine such as S13 gives room to grow.

How do traffic allowances apply to a VPN?

When clients browse through the VPN, the server receives web content from the internet (inbound, free) and sends it to the clients through the tunnel (outbound, counted). So the outgoing traffic of a full-tunnel VPN roughly equals what its users download. With 15 TB a month per machine (5 TB in Singapore), a team of twenty using the VPN all day for work traffic usually stays far below the limit, while video streaming through the tunnel can use it up quickly. Split tunneling, where only private networks go through the VPN, keeps usage tiny. Outbound traffic allowance has the numbers.

Where should I put a VPN server?

Near the users for remote access, or near the services they need. A team in Europe accessing servers in Amsterdam is best served by a VPN in Amsterdam. For joining machines in several cities, put the hub where most of them are. Each machine has one public IPv4 address, which is all WireGuard needs; port 51820 UDP must be open in the host firewall.

What else should I set up?

Unique keys per device, so a lost phone is revoked without touching others; a host firewall that only allows SSH and the VPN port; logs of connections; and backups of the configuration. Read the fair use rules before offering a VPN to people outside your own team. VPN gateways describes typical VPN builds on our hardware.

Machines for VPN Gateways

ServerProcessorCores / threadsMemoryStorageNetworkPer monthSmallest order
E1Intel Xeon E3-1240 v34 / 816 GB DDR32x 240 GB SSD2x 1 Gbps$30.52$91.56 (3 months)
E2Intel Xeon E3-1270 v34 / 832 GB DDR31x 480 GB SSD2x 1 Gbps$38.32$114.96 (3 months)
S1Intel Xeon E-2276G6 / 1264 GB DDR41x 1 TB NVMe2x 10 Gbps$53.32$53.32 (1 month)
S2Intel Xeon E-2356G6 / 1264 GB DDR41x 1 TB NVMe2x 10 Gbps$58.39$58.39 (1 month)
S13AMD EPYC 4345P8 / 16128 GB DDR52x 2 TB NVMe2x 25 Gbps$237.92$237.92 (1 month)

Keep Reading

VPN gateways

Run WireGuard or OpenVPN for a team or a fleet of offices on a box whose CPU and port belong to you alone.

Open

Gateway server

A server that joins two networks or protocols and controls what passes between them, from NAT gateways to API and payment gateways.

Open

Outbound traffic allowance

How the 15 TB monthly egress allowance works, what it means per day and per second, and why inbound data costs nothing.

Open

iptables port forwarding

Forward a public port to a VM, container or remote host with DNAT, enable routing, and keep replies flowing back the right way.

Open

FAQ

Quick Answers

WireGuard for most new setups: it is fast, simple and built into the Linux kernel. OpenVPN when clients can only use TCP 443.

Yes, the data the server sends to clients counts as outgoing traffic. Inbound traffic, including what the server downloads for clients, is free.

Yes. WireGuard tunnels between machines create a private network over the internet, which replaces a private network service.

WireGuard can reach several gigabits per second per core, so the port speed is usually the limit.

The UDP listen port, 51820 by default, plus SSH for administration.