What Is WireGuard? How the VPN Protocol Works and Its Limits

WireGuard is an open-source VPN protocol built into Linux since 2020. How it works, what the server remembers and which VPNs add post-quantum protection.

By VPN Clue Editorial Team

WireGuard is an open-source VPN protocol, the set of rules a VPN app and server follow to build an encrypted tunnel. Each device holds a pair of keys, and the tunnel runs over UDP, a lightweight delivery method with no receipt for each packet. WireGuard has been part of Linux since 2020, and every provider we track offers it.

For a head-to-head with the older protocol, see WireGuard vs OpenVPN. Here we explain WireGuard itself: where it came from, how it works, what the server remembers about you and where it falls short.

Where WireGuard came from

Jason Donenfeld designed WireGuard and described it in a paper for the Network and Distributed System Security Symposium in February 2017. The project describes that paper as the document that “clearly defines the protocol”. Donenfeld still maintains the Linux code and holds the WireGuard trademark.

IPsec and OpenVPN were the standard ways of building encrypted tunnels at the time. WireGuard aimed to replace both “while being more secure, more performant, and easier to use”. To get there it gave up the flexibility of the older designs and fixed one set of encryption methods in advance, so there is no cipher menu for a provider to get wrong.

Into the Linux kernel

On 29 March 2020 Linus Torvalds released Linux 5.6, the first version of the Linux kernel to include WireGuard. The kernel sits at the heart of every Linux system, and Donenfeld wrote that kernels from then on would have WireGuard “built-in by default”. The kernel’s own help text calls it “a secure, fast, and easy to use replacement for IPSec”.

WireGuard has since spread well beyond Linux. The project lists Windows, macOS, BSD, iOS and Android among its platforms and publishes its own apps for four of them. Its whitepaper puts the Linux code at fewer than 4,000 lines without the cryptography. The project wants it to be “comprehensively reviewable by single individuals”.

Why VPN apps adopted it

That design suits the job a commercial VPN app has to do:

  • Less code to trust. A provider’s security team can read the whole protocol. The project calls the software behind older tunnels “behemoths”.
  • Quick to connect. The opening exchange needs just one message in each direction.
  • Tunnels that survive a move. A phone that hops from home Wi-Fi to a cellular network keeps its tunnel because the server follows the new address.
  • Formally verified. Researchers proved the protocol’s core security properties with Tamarin, a tool for checking security protocols.

Every provider we track now offers WireGuard, and some have built their own versions on it. NordVPN’s version is NordLynx, and most NordVPN apps connect with it unless you pick another protocol. Mullvad went furthest: since 15 January 2026 it has offered WireGuard and nothing else.

How WireGuard works

A WireGuard tunnel has fewer moving parts than older protocols, and each part does a single job. For the journey of a packet through any VPN, see how a VPN works. This section stays with WireGuard’s own pieces.

Keys instead of passwords

Each device creates a private key and keeps it to itself. From that key it works out a matching public key, which can be shared openly. Before the first connection the app and the server swap public keys, and VPN apps do this in the background when you sign in or add a device.

The server keeps what the project calls a cryptokey routing table. It pairs every public key with the internal address that key may use inside the tunnel. A packet that decrypts with your key but claims someone else’s internal address is thrown away, so the table works as a firewall too.

A handshake every few minutes

When you connect, the app and the server run a handshake, a short opening exchange that agrees on fresh session keys. They repeat it every few minutes and wipe old session keys from memory once they expire. Someone who steals a key later still cannot read what you sent before.

All of this travels in UDP packets. A WireGuard server also ignores every packet it cannot trace to a known key. It keeps no record of such packets and sends no reply, which the whitepaper says makes it “invisible to illegitimate peers and network scanners”.

No connection to close

WireGuard has no notion of a connection that opens and closes. The project calls it connection-less: you switch the tunnel on, and the protocol handles handshakes and reconnections by itself. That is why a laptop can wake from sleep and carry on where it left off. The same design causes the privacy problem in the next section.

What the server remembers about you

To send replies, a server has to know your device’s address on the internet. WireGuard learns your public IP address from the last packet that arrived and decrypted correctly, then stores it next to your public key. The standard wg command-line tool shows a server’s record for each device, including these fields:

Field What it holds
Public key The key that identifies your device, unchanged until your app replaces it
Endpoint The public IP address, with a port number, that your last authenticated packet came from
Allowed IPs The internal address reserved for your key inside the tunnel
Latest handshake When your device last agreed session keys with the server
Transfer How much data has passed in each direction

Two details turn this into a privacy question. WireGuard never decides that you have gone, so nothing in the protocol clears your address when you close the app. Unless the provider’s software removes it, the entry stays in the server’s memory until the server or its WireGuard service restarts.

The internal address is fixed as well. WireGuard leaves the job of handing out addresses and keys to other software, so a plain setup gives each key the same internal address every time it connects.

Neither detail reveals the sites you visit. But the table holds the kind of details our no-logs explainer files under connection logs, such as your real IP address and when you were last active. A fixed internal address can also identify you if a malicious app on your device reads it or if it leaks through WebRTC, the technology that lets browsers make calls.

To see whether your browser gives that address away, run our WebRTC leak test. Our comparison page also covers a related limit, the risk to recorded handshakes if a server’s private key is ever stolen.

How providers say they deal with it

Providers have built fixes on top of WireGuard and describe them on their own support pages. Some combine several:

  • Removing idle entries. Software on the server deletes a device’s entry a few minutes after its last handshake, then adds the key back without an address.
  • One shared inside address. Every app starts from the same internal address, and the server translates it into a temporary one for each session.
  • Rotating keys. The app replaces its key pair on a schedule, from once a day to every few weeks, and some providers issue a new internal address with each new key.

None of these fixes is part of WireGuard, and what we know of them comes from the providers themselves. An independent no-logs audit can test such claims, and each of our reviews lists the audits a provider has had.

Post-quantum protection

Post-quantum protection guards against a threat that has not arrived yet. Someone could record your encrypted traffic today and decrypt it years later with a quantum computer, a machine that could break the encryption methods in use now. The US standards agency NIST notes that some experts predict such a machine could appear within a decade.

WireGuard agrees its keys with a method called Curve25519, and its whitepaper names this exact risk: adversaries “recording encrypted traffic on a long term basis, in hopes of someday being able to break Curve25519 and decrypt past traffic”. The project’s own list of limitations admits that plain WireGuard has no post-quantum security.

How providers add it

WireGuard has room for an optional pre-shared key, a 256-bit secret shared ahead of time and mixed into the handshake. The project’s “best bet for post-quantum security” is to “run a truly post-quantum handshake on top of WireGuard, and then insert that key into WireGuard’s pre-shared key slot.”

That extra key helps only if it was agreed in a way a quantum computer cannot break. A common choice for that step is ML-KEM, which NIST chose in August 2024 as its main standard for setting up encryption keys. It began life as CRYSTALS-Kyber, and some providers still use the old name.

This table lists each provider we track and whether it documents post-quantum protection on any protocol.

Post-quantum encryption by provider. From each provider's official pages, checked between 31 Oct and 13 Nov 2026.
Provider Post-quantum
CyberGhost Not stated
ExpressVPN Yes
hide.me No
IPVanish Yes
IVPN Yes
Mullvad VPN Yes
NordVPN Yes
PrivadoVPN Not stated
Private Internet Access Not stated
Proton VPN No
Surfshark Yes
Windscribe Yes

A Yes does not always mean WireGuard. ExpressVPN’s protection comes from Lightway, its own protocol. Five providers add the layer to WireGuard itself: Mullvad, IVPN, NordVPN, Surfshark and Windscribe. IPVanish has added it to WireGuard too, but so far it has documented the change only in the release notes of its iOS app.

Defaults differ as well. Surfshark applies it to WireGuard automatically, NordVPN offers a setting that works only with NordLynx, and Mullvad lets you pick it in the app’s WireGuard settings.

Proton VPN lists post-quantum encryption as future work on its 2026 roadmap, so it offers none yet. hide.me makes no post-quantum claim. Its blog says each connection does get a pre-shared key, but the key reaches your device over a link that lacks post-quantum protection. Not stated means the provider documents nothing either way.

Where WireGuard falls short

WireGuard does one job and leaves the rest to other software. It leaves out obfuscation, which disguises VPN traffic as something else. Its list of known limitations says obfuscation “should happen at a layer above WireGuard”.

WireGuard will not run over TCP either. TCP is the internet’s other main delivery method, and it confirms that each packet arrives. The project blames the poor performance of TCP inside TCP and leaves any conversion to the same upper layer.

That makes plain WireGuard easy to stop. A network that blocks UDP can end the tunnel before it starts. So can a filter that spots WireGuard’s packets through deep packet inspection, which examines traffic closely enough to tell what kind it is. Providers name office, campus and hotel networks among the places where this happens.

Ways around a block

Some providers have built disguises of their own for WireGuard. Mullvad’s apps can wrap it in UDP-over-TCP or Shadowsocks, and its desktop app can also hide it inside QUIC. Proton VPN’s Stealth wraps WireGuard in TLS, the encryption behind HTTPS websites.

NordVPN took a different route and moved its obfuscated servers to NordWhisper, a protocol of its own. We covered the move in a news report.

A disguise adds no privacy of its own and can cost speed. If your network never blocks WireGuard, leave the disguise switched off. When one does, every pick in our best VPNs for travel documents a way around such blocks. Our protocol comparison explains why OpenVPN over TCP still helps.

Countries that restrict VPNs. Some governments ban VPNs, require a license or punish people who use one, and the rules can change without warning. We do not give advice for those places, because a mistake could put you at risk. Before you travel, read your own government's official advice for each country on your route.

How to switch to WireGuard in a VPN app

Most apps let you choose the protocol yourself, and several start on an automatic setting that picks one for you. To use WireGuard:

  1. In the app’s settings, find the option that sets the protocol. Apps label it differently, but Protocol is a common name.
  2. Choose WireGuard or your provider’s version of it, such as NordLynx at NordVPN.
  3. Disconnect and connect again so the app builds the tunnel with the new protocol.
  4. Run our VPN check to see the address websites now get and to catch WebRTC or IPv6 leaks.
  5. If the app no longer connects, go back to the automatic setting or an obfuscated option. The network may be blocking WireGuard.

Mullvad users have nothing to change, since WireGuard is the only protocol its apps offer. For routers and other devices without an app, Mullvad, Proton VPN and IVPN publish WireGuard configuration files or tools that generate them. You can also load such a file into the official WireGuard app for Windows, macOS, iOS or Android.

A configuration file carries the tunnel but not every feature of the provider’s app. For example, IVPN does not offer its quantum-resistant connections in manual configurations. Our guide to setting up a VPN covers a first install, and a kill switch matters whichever protocol you use.

How we checked this page

We drew the explanations on this page from WireGuard’s own documentation and whitepaper, the Linux kernel’s release records and NIST’s post-quantum standard. Every statement about a named provider matches that provider’s official pages, and the table’s caption shows when we last confirmed them.

We have not measured WireGuard’s speed, tested streaming or inspected any provider’s servers, so the fixes above are the providers’ own accounts. Our testing plans set out the lab work still to come. More explainers on protocols and privacy are in the Learn hub.

Frequently asked questions

Who created WireGuard?
Jason Donenfeld designed WireGuard and presented it in a paper at the NDSS security symposium in February 2017. He still maintains its code in the Linux kernel, which has carried WireGuard since version 5.6 in March 2020. The protocol is open source, and its kernel code uses the same GPLv2 license as the rest of Linux.
Is WireGuard safe to use?
Its encryption is modern and fixed in advance, and researchers have formally verified the protocol with the Tamarin tool. Its small code base is also easier to review than the code behind older protocols. Privacy depends more on the provider because a WireGuard server holds your last IP address in memory unless the provider's software removes it.
Does WireGuard log my IP address?
WireGuard writes no activity log by default. But the server keeps your public IP address in memory so it can send replies, together with the time of your last handshake. Plain WireGuard holds that entry until the server or its WireGuard service restarts. Providers add their own fixes, and their no-logs policies decide what is kept.
Can WireGuard run over TCP?
Not by itself. The project rules TCP out because carrying TCP traffic inside a TCP tunnel performs badly, and it leaves any conversion to a separate layer. Providers fill the gap with wrappers of their own, such as Mullvad's UDP-over-TCP option or Proton VPN's Stealth protocol, which carries WireGuard inside TLS.
Is NordLynx the same as WireGuard?
NordLynx is NordVPN's own implementation built on WireGuard, and it uses WireGuard's cryptography. Most NordVPN apps use it unless you pick another protocol, and NordVPN's optional post-quantum setting works only with NordLynx. Mullvad, Proton VPN, Surfshark and the other providers we track offer WireGuard under its own name.
Does WireGuard work on routers?
Often, yes. The WireGuard project lists OpenWrt, an open-source system for routers, among its supported platforms. Mullvad, Proton VPN and IVPN publish WireGuard configuration files or generators for routers, while the router guides from CyberGhost and PrivadoVPN use OpenVPN. Check what your router's firmware supports before you set it up.

Sources

  1. 1. WireGuard: fast, modern, secure VPN tunnel (conceptual overview) (accessed 23 Nov 2026)
  2. 2. WireGuard: Protocol and cryptography (accessed 23 Nov 2026)
  3. 3. WireGuard: Known limitations (accessed 23 Nov 2026)
  4. 4. WireGuard: Formal verification (accessed 23 Nov 2026)
  5. 5. WireGuard: Installation (official apps and supported systems) (accessed 23 Nov 2026)
  6. 6. WireGuard: Quick start (key generation) (accessed 23 Nov 2026)
  7. 7. Jason A. Donenfeld: WireGuard: Next Generation Kernel Network Tunnel (whitepaper, revision of 1 June 2020) (accessed 23 Nov 2026)
  8. 8. NDSS Symposium 2017: WireGuard: Next Generation Kernel Network Tunnel (paper page, 27 February 2017) (accessed 23 Nov 2026)
  9. 9. WireGuard mailing list: [ANNOUNCE] WireGuard 1.0.0 for Linux 5.6 Released (Jason A. Donenfeld, 30 March 2020) (accessed 23 Nov 2026)
  10. 10. Linux kernel source: tag v5.6 by Linus Torvalds (29 March 2020) (accessed 23 Nov 2026)
  11. 11. Linux 5.6 source: drivers/net/Kconfig, help text for WIREGUARD (accessed 23 Nov 2026)
  12. 12. Linux kernel MAINTAINERS file: WireGuard secure network tunnel entry (accessed 23 Nov 2026)
  13. 13. wireguard-tools: wg(8) manual page (accessed 23 Nov 2026)
  14. 14. NIST: FIPS 203, Module-Lattice-Based Key-Encapsulation Mechanism Standard (13 August 2024) (accessed 23 Nov 2026)
  15. 15. NIST news: NIST Releases First 3 Finalized Post-Quantum Encryption Standards (13 August 2024) (accessed 23 Nov 2026)
  16. 16. Mullvad help: Why WireGuard? (accessed 23 Nov 2026)
  17. 17. IVPN help center: Using WireGuard for privacy protection (accessed 23 Nov 2026)
  18. 18. Proton VPN support: How private is WireGuard? (accessed 23 Nov 2026)
  19. 19. NordVPN blog: The NordLynx protocol (accessed 23 Nov 2026)
  20. 20. NordVPN help center: Which NordVPN protocol should I choose? (accessed 23 Nov 2026)
  21. 21. NordVPN help center: Post-quantum encryption explained (accessed 23 Nov 2026)
  22. 22. Proton VPN support: Change your VPN protocol (accessed 23 Nov 2026)
  23. 23. Proton VPN: Features (Stealth) (accessed 23 Nov 2026)
  24. 24. Proton VPN blog: 2026 spring and summer roadmap (accessed 23 Nov 2026)
  25. 25. Surfshark: VPN protocols (accessed 23 Nov 2026)
  26. 26. Surfshark: VPN security features (accessed 23 Nov 2026)
  27. 27. Mullvad help: Quantum-resistant tunnels with WireGuard (accessed 23 Nov 2026)
  28. 28. Mullvad blog: Removing OpenVPN from the Mullvad VPN app (accessed 23 Nov 2026)
  29. 29. IVPN: Windows app (quantum-resistant WireGuard connections) (accessed 23 Nov 2026)
  30. 30. Windscribe: Strongest encryption (accessed 23 Nov 2026)
  31. 31. ExpressVPN blog: Lightway post-quantum protection (accessed 23 Nov 2026)
  32. 32. IPVanish VPN on the App Store (release notes) (accessed 23 Nov 2026)

Changelog

  • Published.