Privacy & security
OpenVPN vs WireGuard
Speed, security and compatibility of the two main VPN protocols.
Updated · First published · 10 sources
The short answer
For most people, WireGuard is the better default: it’s newer, far smaller, uses one fixed set of modern ciphers and is built to be faster than OpenVPN. OpenVPN is the better fallback on networks that block VPN ports, because it can run over TCP port 443 like ordinary web traffic, which WireGuard can’t. Heavy censorship that uses deep packet inspection needs a provider’s obfuscated mode instead. Both are considered secure when a trustworthy provider runs them.
What does a VPN protocol do?
The protocol is the set of rules your device and the VPN server use to agree on keys, encrypt each packet and carry it across the internet. It decides how fast the tunnel is, how quickly it reconnects and which networks it can get through.
Most VPN apps let you choose. All six VPNs in our [rankings](/) support both WireGuard and OpenVPN. NordVPN offers WireGuard as NordLynx, its own protocol built on WireGuard, and ExpressVPN also has its own protocol, Lightway.
How do OpenVPN and WireGuard compare?
- Transport: WireGuard sends every packet over UDP and nothing else. OpenVPN runs over UDP or TCP.
- Encryption: WireGuard always uses ChaCha20 with Poly1305, Curve25519 for key exchange and BLAKE2s for hashing. OpenVPN negotiates a cipher; its recommended data-channel ciphers are AES-256-GCM, AES-128-GCM and ChaCha20-Poly1305.
- Key exchange: WireGuard uses a short handshake based on the Noise framework that repeats every few minutes. OpenVPN sets up a TLS session with certificates and uses it to exchange keys.
- Code size: WireGuard’s Linux implementation is under 4,000 lines of code, excluding its cryptography code. Its author describes OpenVPN as “enormously complex”.
- Track record: WireGuard joined the Linux kernel in version 5.6, released in March 2020. OpenVPN is much older.
- Getting through firewalls: WireGuard “does not focus on obfuscation”. OpenVPN can run on TCP port 443, the port used by HTTPS websites.
Is WireGuard faster than OpenVPN?
It’s designed to be. The WireGuard project says it intends to be “considerably more performant than OpenVPN”, partly because on Linux it runs inside the kernel. In the whitepaper’s benchmark between two machines on gigabit Ethernet, WireGuard beat OpenVPN on both throughput and ping.
Over the real internet the gap is usually smaller, because your own line and the distance to the server limit you first. It’s telling that in Gizmodo’s October 2026 speed tests, each provider was tested on its fastest protocol, and every one it details used WireGuard, a WireGuard-based protocol or ExpressVPN’s Lightway, not OpenVPN.
Which is more secure?
Both are trusted, and neither has a known weakness that should stop you using it. They make different trade-offs.
WireGuard is deliberately simple. Its whitepaper says it “intentionally lacks cipher and protocol agility”: there are no options to get wrong, and a smaller codebase is easier to audit. The cost is that if one of its ciphers were ever broken, every implementation would have to be updated. It also supports an optional pre-shared key, an extra layer that can add resistance to future quantum computers.
OpenVPN is flexible. It sets up a TLS session in which certificates authenticate both sides, then encrypts your traffic with the cipher the two ends agree on. That flexibility means its security depends more on how the provider configures it, which is one more reason to choose a VPN whose setup has been independently audited.
Does WireGuard store your IP address?
Plain WireGuard keeps the last IP address it saw for each client in memory, with no built-in timeout to clear it. A WireGuard server identifies each client by its public key and sends replies to the “most recent IP endpoint” it received valid data from. That’s also how WireGuard roams smoothly when you switch from Wi-Fi to mobile data.
A commercial VPN that uses WireGuard has to handle this in its own systems. Its no-logs policy, and whether an auditor has checked it, tells you whether it does. See what a no-logs policy means.
Which works on networks that block VPNs?
OpenVPN. WireGuard “explicitly does not support tunneling over TCP”, so a hotel, office or school network that blocks unusual UDP traffic can stop it entirely. OpenVPN’s own documentation says it uses UDP for performance and supports TCP for restrictive networks, and that TCP 443 is often allowed through firewalls because it mimics HTTPS.
Expect OpenVPN over TCP to feel slower, so use it only when UDP fails. Some governments use deep packet inspection to recognize and block common VPN protocols, and there you need a provider’s obfuscated mode, which disguises VPN traffic; check the travel guide before you go somewhere that restricts VPNs.
Which protocol should you use?
- Start with WireGuard, or your provider’s WireGuard-based protocol.
- If you can’t connect or keep dropping, switch to OpenVPN over UDP.
- If that fails too, use OpenVPN over TCP, ideally on port 443.
- After you switch, run a leak test to check your IP address and DNS are still hidden.
Protocol choice affects speed far less than server distance. If a connection feels slow, try a closer server first; Will a VPN slow down my internet? explains why.
Common questions
Is WireGuard more secure than OpenVPN?
Neither is clearly more secure. WireGuard has a much smaller codebase and no cipher options to misconfigure; OpenVPN is older, more flexible and relies on well-studied TLS. Both are safe when a reputable provider runs them.
Is WireGuard faster than OpenVPN?
It’s designed to be, and its author’s benchmark showed higher throughput and lower ping than OpenVPN. In everyday use, server distance and your own connection usually matter more than the protocol.
Does WireGuard work over TCP?
No. WireGuard only uses UDP. If a network blocks it, switch to OpenVPN over TCP or your provider’s obfuscated mode.
Should I use OpenVPN UDP or TCP?
Use UDP by default, because OpenVPN uses it for performance. Switch to TCP, ideally port 443, only when a network blocks UDP.
Is NordLynx the same as WireGuard?
NordLynx is NordVPN’s protocol built on WireGuard, so it uses WireGuard’s cryptography. When choosing between protocols in NordVPN’s app, treat it as WireGuard.
Sources
We checked this guide against these pages on October 22, 2026.
- WireGuard: fast, modern, secure VPN tunnel · WireGuard
- Protocol & cryptography · WireGuard
- Known limitations · WireGuard
- WireGuard: next generation kernel network tunnel (whitepaper) · Jason A. Donenfeld, Jun 1, 2020
- Linux 5.6 · Kernel Newbies, Mar 29, 2020
- Why does OpenVPN use UDP and TCP? · OpenVPN
- Tutorial: change the data-channel encryption cipher · OpenVPN, May 15, 2026
- OpenVPN cryptographic layer · OpenVPN
- Tunnel vision: anti-censorship tools, end-to-end encryption, and the fight for a free and open internet · Freedom House and European University Institute
- Fastest VPN speed tests (October 2026) · Gizmodo, Oct 12, 2026