1. Home
  2. Guides
  3. What is WireGuard?
Guide · · 2 min read

What is WireGuard?

WireGuard is the VPN protocol behind ZelaVPN. It is small, fast and built on modern cryptography, which is why it is now part of the Linux kernel and used by most leading VPNs.

Why WireGuard is different

  • Small code base. About 4,000 lines in the Linux kernel, compared with hundreds of thousands for older protocols. Less code means fewer places for bugs to hide.
  • Modern cryptography. Curve25519, ChaCha20-Poly1305, BLAKE2s and other well-studied primitives, with no outdated options to misconfigure.
  • Fast. It runs in the kernel and connects almost instantly, so switching networks on a phone is seamless.
  • Battery friendly. It stays quiet when you are not sending data.

WireGuard vs OpenVPN

FeatureWireGuardOpenVPN
SpeedVery fastSlower
Connection timeUnder a secondSeveral seconds
Code size~4,000 lines~100,000+ lines
Mobile roamingSeamlessReconnects

How a WireGuard connection works

  1. Keys, not passwords. Each device has a private key that never leaves it, plus a public key the server knows. It works like SSH keys.
  2. Handshake. When you connect, the device and server prove who they are with those keys and agree on fresh session keys. This takes one round trip.
  3. Encrypted packets. Every packet is encrypted and authenticated with ChaCha20-Poly1305. Anything tampered with is dropped.
  4. Key rotation. Session keys are replaced every two minutes, so even a stolen key would only expose a tiny window (forward secrecy).
  5. Silence by default. A WireGuard server doesn't reply to anyone without a valid key, which makes it hard to discover by scanning.

Is WireGuard private?

WireGuard needs to know which device is which, so a server has to keep a record of each device's public key and tunnel address. What matters is what the provider does with it. ZelaVPN stores only the device's name and keys, needed to let you connect, and doesn't log the websites you visit or keep connection history. Details are in our privacy policy.

WireGuard at ZelaVPN

Every ZelaVPN device gets its own WireGuard key pair and a private tunnel address. Your traffic is encrypted from your device to our server, then leaves from our fixed IP. On Android you can combine it with Always-on VPN and a kill switch, so traffic never leaves your phone unencrypted.

Frequently asked questions

Is WireGuard secure?

Yes. It uses modern, well-reviewed cryptography and has been formally verified in parts. It is included in the Linux kernel.