What it is
A modern protocol for encrypted tunnels: it joins offices, servers and remote staff into one private network over the internet. Fast, light on the server, with a configuration that fits on one screen.
How we use it
Our default for linking servers with each other and giving staff access to internal systems, unless equipment or policy requires something else.
What it is in plain words
WireGuard is a modern protocol for encrypted tunnels. It joins computers, servers and offices into one private network over the ordinary internet: devices see each other at internal addresses, and everything between them is encrypted. The code is small, the configuration fits on one screen, and since 2020 WireGuard has been part of the Linux kernel.
Where it helps a business
- Staff working from home or another city need the accounting system, file shares or an internal portal that must not be open to the whole internet.
- Servers in different data centres need one closed network so that databases and internal services talk to each other without public ports.
- Two offices or an office and a warehouse should work as one network.
- Remote administration of servers should go through an encrypted tunnel rather than through an RDP or database port open to the world.
How it works
- Keys instead of passwords. Every device has a key pair. The server knows the public keys of the devices allowed in, and a device knows the public key of the server.
- Peers and allowed addresses. For each peer the configuration lists which internal addresses belong to it (
AllowedIPs). This one list both routes traffic and filters it: a packet from the wrong address is dropped. - UDP and a quiet server. WireGuard runs over UDP and does not answer unknown packets at all, so a port scan sees nothing.
- Roaming. A laptop moving from Wi-Fi to mobile data keeps the tunnel: the server simply learns its new address from the next valid packet.
WireGuard, OpenVPN and Tailscale
| WireGuard | OpenVPN | Tailscale |
|---|
| Speed and load | high speed, little CPU | slower, heavier on the server | WireGuard speed |
| Setup | a short config, keys by hand | certificates, many options | install the app and sign in |
| Transport | UDP only | UDP or TCP | UDP, with relays when needed |
| Control | fully yours | fully yours | coordination through an external service |
| Old equipment | needs fairly recent software | supported almost everywhere | needs its own app |
Common mistakes
- All traffic goes into the tunnel by accident.
AllowedIPs = 0.0.0.0/0 sends everything through the server, including video calls and ordinary browsing. For access to internal systems, list only their subnets: that is split tunneling. - Overlapping subnets. The office uses 192.168.1.0/24 and so does the employee's home router: the internal server becomes unreachable. Pick a less common range for the internal network.
- The tunnel drops behind NAT. A device behind a router that sits idle loses the connection;
PersistentKeepalive of about 25 seconds solves it. - A wrong MTU. Small pages open while large files and some sites hang. The tunnel MTU has to be lowered.
- Keys are never revoked. When an employee leaves, their key must be removed from the server the same day, or access remains.
- Manual keys at scale. With dozens of devices, handing out keys by hand becomes a job of its own; a control layer such as Tailscale or a management script helps.
When you do not need it
If every work system is a cloud service with its own sign-in, a private network adds nothing. To reach a single server for administration, SSH by key is enough. And if the company's equipment or policy requires OpenVPN, it is simpler to keep it than to run two systems.