The debate over WireGuard vs OpenVPN used to be about speed alone, and WireGuard won it easily. That is no longer the real question. The real question is whether OpenVPN's new kernel-level offload and post-quantum defaults can keep it relevant now that one of the largest privacy-focused VPN providers has walked away from it entirely.
Key takeaways
- Mullvad shut down all its OpenVPN servers on January 15, 2026, after announcing the move in November 2024, leaving WireGuard as the only protocol on its network.
- WireGuard's kernel module is about 4,000 lines of code, built on fixed modern primitives (ChaCha20, Poly1305, Curve25519); OpenVPN's codebase is many times larger because it supports configurable ciphers through a TLS library.
- OpenVPN 2.7, released in February 2026, turns on hybrid post-quantum key exchange by default, something WireGuard does not do out of the box.
- WireGuard is UDP-only; OpenVPN still supports TCP on port 443, which matters on networks that block or throttle UDP traffic.
WireGuard vs OpenVPN Is No Longer a Speed Contest
For most of the last five years, choosing between WireGuard and OpenVPN meant choosing between fast and compatible. WireGuard, created by security researcher Jason Donenfeld in 2017 and merged into the Linux kernel as version 5.6 in March 2020, runs inside the kernel itself rather than as a userspace process, according to CSO Online's technical history of the project. That kernel placement, combined with a fixed set of modern cryptographic primitives, is why independent tests have repeatedly clocked it well ahead of OpenVPN running in its default userspace mode, with margins that vary widely by hardware and provider but routinely land somewhere between double and quadruple OpenVPN's throughput.
OpenVPN has spent the last two years closing that gap from the other direction. Its Data Channel Offload module, known as DCO, moves OpenVPN's encryption into the kernel too, and the "ovpn" kernel module became part of mainline Linux with version 6.16, released July 27, 2025. On its own comparison page, OpenVPN reports an internal benchmark on a Ryzen 9 9950X with a 25-gigabit network card showing userspace OpenVPN at 3.61 Gbps and DCO-enabled OpenVPN at 7.15 Gbps, roughly double. That is OpenVPN's own test on high-end hardware, not an independent measurement, so treat it as a best-case number rather than what a typical router or laptop will see.
| Attribute | WireGuard | OpenVPN |
|---|---|---|
| Transport | UDP only | UDP or TCP (port 443 fallback) |
| Core cipher suite | Fixed: ChaCha20, Poly1305, Curve25519, BLAKE2s | Configurable via TLS library |
| Kernel integration | Mainline since Linux 5.6 (March 2020) | DCO module mainline since Linux 6.16 (July 2025) |
| Post-quantum key exchange | Not on by default; manual pre-shared key workaround | On by default in 2.7 with OpenSSL 3.5 |
| Approximate codebase size | About 4,000 lines (kernel module) | Considerably larger; built on a TLS library and configurable ciphers |
Mullvad's Exit Is the Clearest Signal Yet
The most concrete evidence that the industry has made up its mind came from Mullvad, one of the most privacy-focused VPN providers still standing. Mullvad announced in November 2024 that it would retire OpenVPN entirely, and it followed through on January 15, 2026, pulling every OpenVPN server from its network and moving all remaining users to WireGuard, according to the company's own blog post and reporting from TechRadar and Tom's Guide. Mullvad's Android and iOS apps were already WireGuard-only; the January deadline finished the job on desktop.
That is not the same as OpenVPN disappearing everywhere. Mullvad made a provider-level choice about which protocol to maintain, not a verdict on OpenVPN's security. But when a provider that built its reputation on technical rigor decides that running two protocols is no longer worth the maintenance burden, it tells you where the industry's center of gravity has moved. If you already use a VPN through a consumer app, this shift has likely already happened under the hood without you noticing, since most major providers default new connections to WireGuard or a proprietary variant of it.
Why WireGuard's Codebase Is the Quiet Argument for Security
Codebase size is not a glamorous metric, but it is the one security researchers keep coming back to. WireGuard's kernel implementation runs to roughly 4,000 lines of code, with its cryptography built directly into that module, according to CSO Online. OpenVPN's codebase is many times larger because it is designed to be configurable: it supports multiple ciphers through its TLS library rather than locking in one fixed suite. Linus Torvalds reportedly called WireGuard's code "a work of art" when comparing it to OpenVPN and IPsec during the kernel merge review, per the same CSO Online account.

A smaller, simpler codebase is easier to audit line by line, which is the main reason security engineers favor WireGuard for new deployments. The tradeoff is that WireGuard's fixed cipher suite, ChaCha20 for encryption, Poly1305 for authentication, Curve25519 for key exchange, and BLAKE2s for hashing, cannot be swapped out if a flaw is ever found in one of them, whereas OpenVPN's cipher agility lets an administrator rotate to a different algorithm. Both designs are defensible; they just represent opposite bets on where risk lives.
OpenVPN's Post-Quantum Default Is a Real Advantage, for Now
Here is the one place OpenVPN has genuinely pulled ahead. OpenVPN 2.7, which shipped in February 2026, turns on hybrid post-quantum key exchange by default when paired with OpenSSL 3.5, according to OpenVPN's own comparison page. WireGuard, by contrast, is not post-quantum secure by default; its mitigation is a pre-shared key that administrators have to configure manually, which OpenVPN's own documentation compares to its own legacy tls-crypt workaround rather than a true fix.

This matters less today than it will in five or ten years, when a sufficiently powerful quantum computer could retroactively break key exchanges recorded today ("harvest now, decrypt later"). For anyone securing data that needs to stay confidential for a decade or more, government networks, healthcare records, long-lived corporate secrets, that single default is a legitimate reason to still reach for OpenVPN, or to manually configure WireGuard's pre-shared-key option rather than assume it is covered.
Never miss a story
Tools, tutorials and AI deep-dives - straight to your inbox, every week.
Who Should Pick Which Protocol
The honest answer depends on what you are actually building, not on which protocol is trendier. A simple decision rule cuts through most of the confusion:
- Choose WireGuard if you control both endpoints (a home server, a self-hosted VPN, a site-to-site link between offices you manage) and want the simplest, fastest, easiest-to-audit option.
- Choose OpenVPN if your traffic needs to survive networks that block or throttle UDP, such as hotel Wi-Fi, corporate firewalls, or countries that actively filter VPN traffic, since its TCP port 443 fallback can look like ordinary HTTPS traffic.
- Choose OpenVPN if you specifically need its cipher agility or its default post-quantum key exchange today, rather than configuring WireGuard's manual pre-shared-key workaround yourself.
- Skip this decision entirely if you just use a commercial VPN app for everyday privacy. Most providers now pick the protocol for you automatically, and the choice described here mostly matters to people configuring their own VPN server or evaluating enterprise remote-access tools.
The Counterpoint Most Coverage Skips: Speed Isn't the Whole Story
Most WireGuard-vs-OpenVPN writeups stop at the benchmark chart and declare a winner. That undersells two real limitations. First, WireGuard's UDP-only design is a genuine operational constraint, not a footnote: any network that blocks UDP, which includes plenty of corporate and public Wi-Fi setups, will simply refuse WireGuard traffic outright, while OpenVPN's TCP fallback keeps working. Second, "faster and newer" does not automatically mean "more production-proven." OpenVPN has been running in enterprise environments since 2001 and has been through a formal independent security audit, with OpenVPN's own page noting that high-priority findings were fixed back in version 2.4.2. WireGuard is younger, and while its design has held up well, organizations with strict compliance requirements often default to the technology with the longer operational track record, not necessarily the fastest one.

It's also worth being skeptical of precise speed numbers from either side. OpenVPN's own DCO benchmarks come from a high-end 25-gigabit test rig that almost no one's home router matches, and third-party WireGuard-vs-OpenVPN speed comparisons found across the web disagree wildly with each other, some showing a 2x gap and others showing more than 10x, depending on the hardware, the VPN provider, and whether OpenVPN's kernel offload was even enabled. Treat any single benchmark number, including the ones in this article, as a snapshot of one test setup rather than a universal truth.
What to Watch Next
Two things will determine whether this debate keeps shifting. The first is adoption of OpenVPN's DCO module: it only works where Linux 6.16 or later is actually deployed, and OpenVPN itself acknowledges that is not yet most installed systems, so its benchmark advantages remain theoretical for a lot of real-world servers. The second is whether other major VPN providers follow Mullvad's lead in dropping OpenVPN outright, or whether enough enterprise and censorship-circumvention use cases keep it alive as a deliberate second option rather than a legacy holdover.

Common Questions About WireGuard and OpenVPN
Is WireGuard less secure than OpenVPN because its code is smaller? No. A smaller, fixed codebase is generally easier to audit than a large, configurable one, which is why security researchers tend to favor WireGuard for new deployments. The tradeoff is flexibility, not safety: WireGuard cannot swap ciphers if one is ever broken, while OpenVPN can.
Can I still use OpenVPN if my provider drops it, like Mullvad did? Yes, if you run your own VPN server (on a home router, a cloud instance, or self-hosted software) you can keep using OpenVPN indefinitely. Mullvad's move only affects users of Mullvad's own network, not the protocol itself.
Does WireGuard support Windows, Mac, and mobile devices? Yes. Native Linux kernel support is fastest, but official WireGuard apps exist for Windows, macOS, iOS, Android, and OpenBSD; these userspace versions still generally match or beat OpenVPN's speed, per CSO Online's review of the project.
Sources