# What is WireGuard?

> WireGuard is an open-source VPN protocol that runs over UDP, built into Linux since kernel 5.6, with apps for 4 desktop and phone systems.

- URL: https://tunnelvps.com/what-is-wireguard/
- Last updated: 2026-11-16
- Publisher: TunnelVPS (https://tunnelvps.com)

The protocol behind most personal VPN servers today: what it does, how it differs from older VPNs, and what it does not hide.

**Quick answer — What is WireGuard?**

WireGuard is a free, open-source VPN protocol that sends encrypted traffic over UDP between peers that know each other's public keys. It has been part of the Linux kernel since version 5.6 and has official apps for iOS, Android, Windows and macOS. **TunnelVPS** servers run it from about $2.25 a month.

**In brief**

- **What it is**: a VPN protocol and its software, released under open-source licences.
- **How it connects**: each device and the server swap public keys; traffic travels over UDP.
- **Where it runs**: inside the Linux kernel, plus official apps on four desktop and phone systems.
- **What it is not**: an anonymity tool. It hides traffic from the local network, not from the sites visited.

## What do the main WireGuard terms mean?

**Peer** — Any machine in a WireGuard tunnel: the server and each phone or laptop. Each peer has its own key pair and its own line in the other side's configuration.

**Key pair** — A private key kept on the device and a public key handed to the other side. `wg genkey` makes the private key and `wg pubkey` derives the public one.

**AllowedIPs** — The list of addresses a peer may send through the tunnel. `0.0.0.0/0, ::/0` on a phone sends all its traffic to the server; a short list makes a split tunnel.

**Endpoint** — The public IP address and UDP port of the server, written in each client file. On a TunnelVPS server it is the dedicated IPv4 shown in the dashboard.

**Handshake** — The short key exchange that opens or refreshes a session. A recent handshake time in the app is the quickest sign that the tunnel works.

**wg-quick** — The helper that reads `/etc/wireguard/wg0.conf` and brings the interface up or down with `wg-quick up wg0` and `wg-quick down wg0`.

## How does WireGuard compare with older VPN protocols?

*WireGuard, OpenVPN and IPsec on the points that matter for a personal VPN server, from the projects' own pages read 16 November 2026*

| Point | WireGuard | OpenVPN | IPsec (IKEv2) |
| --- | --- | --- | --- |
| Transport | UDP only | UDP or TCP | UDP (ports 500 and 4500) |
| Where it runs on Linux | In the kernel since 5.6 | User space | Kernel plus a key daemon |
| Setup on a server | One package, one config file | Certificates and a CA | Certificates or pre-shared keys |
| Authentication | Public keys per peer | Certificates, passwords | Certificates, passwords, PSK |
| Easy to block on strict networks | Yes, easy to spot | Less so over TCP 443 | Yes |

## How does WireGuard work, in plain words?

**Each device and the server hold a key pair, and each knows the other's public key.** A device sends encrypted packets over UDP to the server's endpoint. The server checks the key, decrypts the packet and forwards it to the internet. Replies come back the same way.

There are no user names and no passwords in WireGuard. A device that does not hold a listed key gets no answer at all. This is why one WireGuard server can serve many devices: one `[Peer]` block per device. The [guide to adding a device](https://tunnelvps.com/guides/how-to-add-a-device-to-a-wireguard-server/ "How do I add a device to a WireGuard server?") shows that step.

## Why is WireGuard the usual choice for a personal VPN server?

**It is small, fast to set up and already on every recent Linux server.** On Ubuntu, the official install page lists one command: `sudo apt install wireguard`. A server then needs a key pair, a `wg0.conf` file and IP forwarding. The [one-command install guide](https://tunnelvps.com/help/install-wireguard-in-one-command/ "How do I install WireGuard on my TunnelVPS server?") walks through those parts.

TunnelVPS read the WireGuard install page on 16 November 2026. It lists apps for iOS and macOS in the App Store, Android on Google Play, a Windows installer and packages for most Linux systems. Routers with OpenWrt or GL.iNet firmware import the same file.

## When is WireGuard not the best protocol?

**On networks that block VPN traffic, WireGuard is easy to recognise and cut.** Its packets have a fixed shape. Some hotel, office and national networks drop them. Outline, which uses Shadowsocks, and AmneziaWG, a WireGuard variant that disguises its packets, were built for those networks.

The [protocol comparison](https://tunnelvps.com/wireguard-vs-outline-vs-amneziawg/ "WireGuard vs Outline vs AmneziaWG: which should you use?") sets the three side by side. A single TunnelVPS server can run WireGuard for most devices and Outline or AmneziaWG for the one that needs it.

## What does WireGuard hide, and what does it not hide?

**WireGuard hides traffic from the café Wi-Fi, the office network and the internet provider.** It does not hide traffic from the sites visited. A personal VPN hides traffic from the local network and the internet provider, not from the sites visited: every connection leaves through one IP address rented by one account, so it is a private tunnel, not anonymity.

On a self-hosted server, the exit address belongs to one renter. That is useful for a stable address, and the reverse of a crowd. The page [is a self-hosted VPN anonymous?](https://tunnelvps.com/is-a-self-hosted-vpn-anonymous/ "Is a self-hosted VPN anonymous?") explains the difference.

## What does it cost to run WireGuard on your own server?

**The software is free; the cost is the server.** On TunnelVPS, Solo costs $2.25 a month on 12 months with 2 TB of traffic, and Home costs $6.37 with 5 TB. Plans under $15 a month (Solo, Duo, Home) are rented for 3 months at least; Crew, Fleet can be rented month to month. The page [how much does a personal VPN server cost](https://tunnelvps.com/how-much-does-a-personal-vpn-server-cost/ "How much does a personal VPN server cost?") compares this with shared VPN services.

## WireGuard questions

### Is WireGuard free?

Yes. The protocol and its official apps are free and open source. A self-hosted setup only costs the server it runs on.

### Is WireGuard a VPN service?

No. It is a protocol. Commercial VPN services use it on their own servers, and anyone can run it on a rented VPS.

### Which port does WireGuard use?

Any UDP port the server owner picks. The examples on wireguard.com use 51820. On TunnelVPS, inbound UDP is open and the customer sets the firewall.

### Is WireGuard better than OpenVPN?

For a personal server, it is simpler and lighter. OpenVPN can run over TCP, which helps on some networks that block UDP.

### Does WireGuard work with IPv6?

Yes. A tunnel can carry IPv4 and IPv6. Every TunnelVPS server has a dedicated IPv4 and a routed IPv6 /64.

**Verdict**

- **WireGuard is the default protocol** for a personal VPN server: one package, one file, apps everywhere.
- **Add Outline or AmneziaWG** only where a network blocks it.

## Sources

1. [WireGuard: fast, modern, secure VPN tunnel](https://www.wireguard.com/) — WireGuard (read 2026-11-16)
2. [WireGuard: installation](https://www.wireguard.com/install/) — WireGuard (read 2026-11-16)
3. [WireGuard: quick start](https://www.wireguard.com/quickstart/) — WireGuard (read 2026-11-16)
4. [wg-quick(8) manual page](https://man7.org/linux/man-pages/man8/wg-quick.8.html) — man7.org (read 2026-11-16)
5. [AmneziaVPN: install a VPN on your server](https://docs.amnezia.org/documentation/instructions/install-vpn-on-server/) — Amnezia (read 2026-11-16)

**Run WireGuard on a server of your own** Solo: 1 shared vCPU, 2 GB RAM, 40 GB NVMe, 2 TB a month, $2.25 a month on 12 months. [Order Solo for 12 months](https://tunnelvps.com/app/checkout/?plan=solo&term=12m&image=ubuntu-24.04&from=what-is-wireguard&lang=en) · [Install WireGuard](https://tunnelvps.com/help/install-wireguard-in-one-command/ "How do I install WireGuard on my TunnelVPS server?")

---

TunnelVPS: TunnelVPS rents Linux KVM servers for a personal VPN (WireGuard, Outline or AmneziaWG) in New York, Dallas, Los Angeles, London, Amsterdam and Frankfurt, paid in crypto with no ID document. 5 plans from 2 to 16 GB of RAM and 2 to 6 TB of traffic a month cost the same in all six cities; on the 12-month term each is priced at least 25% under a named comparable plan of a no-KYC crypto host, read on 16 November 2026. The operator is DomaineGoat LLC, Panama.
