Skip to content

WireGuard vs OpenVPN: Which Protocol Is More Secure?

Digital sovereignty editorial illustration for The Unhacked

WireGuard and OpenVPN are the two open-source tunnelling protocols most consumer VPN apps are built on, and for most people the better default is WireGuard: it is a much smaller design, uses one fixed set of modern ciphers, and is built into the Linux kernel. OpenVPN is the better pick when you need TCP transport, a long-established TLS-based setup, or a way through networks that block UDP. Whichever protocol your provider runs, a VPN such as NordVPN only protects you on untrusted Wi-Fi if the tunnel is actually switched on.

The short version: WireGuard is specified in a paper that describes an implementation of under 4,000 lines of code (excluding cryptographic primitives), and it offers no cipher menu. OpenVPN is a larger, TLS-based user-space program with configurable options. No source was found in this review reporting a practical break of either protocol’s encryption, though that is an absence of evidence, not a guarantee. The deciding factor is how much can go wrong in setup: WireGuard has little to configure, OpenVPN has a lot. This page lists only claims traced to the projects’ own documentation or to published audits, each dated below. Neither protocol was tested hands-on for this page.

WireGuard vs OpenVPN at a glance

Attribute WireGuard OpenVPN
Data-channel crypto ChaCha20-Poly1305, Curve25519, BLAKE2s, HKDF (fixed, no negotiation menu) 2.6 default list: AES-256-GCM, AES-128-GCM, CHACHA20-POLY1305 (configurable)
Transport UDP only; TCP tunnelling explicitly unsupported UDP by default, port 1194 by default; TCP also available
Where it runs Inside the Linux kernel since 5.6 (29 March 2020) User-space program; kernel Data Channel Offload (module “ovpn”) in Linux 6.16 and later
Code size (author’s figure) Under 4,000 lines, excluding crypto primitives (2020 paper revision) No comparable official figure found; not compared here
Independent audit on record Formal proofs of the protocol (2017-2019 work listed by the project); no single full-code audit located Quarkslab/OSTIF audit of 2.4.0, published 11 May 2017

As of 2026-10-12. Sources: wireguard.com, the WireGuard paper, the OpenVPN 2.6 manual, kernelnewbies.org, OSTIF; see the list at the end.

Free checklist: Secure Your Accounts in 30 Minutes

Get the free "Secure Your Accounts in 30 Minutes" checklist by email. You will also get four short follow-up emails over about two weeks (passwords, two-factor, optional tools, a recap). One of them includes affiliate recommendations: if you buy through our links we may earn a commission at no extra cost to you. Unsubscribe in one click, any time.
By subscribing you agree to receive this checklist and a short email series from The Unhacked (Dr. AshR), including affiliate recommendations, at the address you enter. See our Privacy Policy.

Code size and attack surface

The WireGuard paper (revision dated 1 June 2020) says the Linux implementation is under 4,000 lines of code, not counting cryptographic primitives, and presents that as the reason it can be audited and verified. The paper contrasts this with OpenVPN, which it calls enormously complex because it supports the whole range of TLS functionality, exposing more code to potential vulnerabilities. That is the WireGuard author’s own comparison, and no independent line count for OpenVPN was found, so treat the ratio you may see quoted elsewhere as unverified. The direction of the argument is sound, though: less code and fewer features leave fewer places for bugs to hide.

Cryptography: fixed versus configurable

WireGuard uses one construction, identified by the project as Noise_IKpsk2_25519_ChaChaPoly_BLAKE2s: Curve25519 key agreement, ChaCha20-Poly1305 encryption and BLAKE2s hashing, all carried over UDP. There is nothing to downgrade, which removes a whole class of setup mistakes. The flip side is that a weakness found in one of those primitives would require a protocol revision rather than a config change.

OpenVPN’s 2.6 manual lists a default data-ciphers value of AES-256-GCM, AES-128-GCM and CHACHA20-POLY1305 (the last only where available). From 2.6.0 the older --cipher option no longer chooses the data-channel cipher in TLS mode. The manual also marks --compress as deprecated and warns that combining compression with encryption can leak secrets, citing the CRIME, BREACH and VORACLE attacks. In short: OpenVPN’s defaults are strong, but the same configuration file can also express weaker choices, so the safe result depends on the person or provider who wrote it.

Speed: one dated benchmark, and what it does not show

The only benchmark traced to a primary source is the one in the WireGuard paper itself. Using iperf3 between two Intel laptops over gigabit Ethernet (averaged over thirty minutes), it reports about 1,011 Mbit/s for WireGuard against 258 Mbit/s for OpenVPN (AES-256, HMAC-SHA2-256, UDP mode), and a ping of 0.403 ms against 1.541 ms. The paper notes OpenVPN’s CPU was at 100% during its throughput test while WireGuard’s was not fully used.

Read that with care. The WireGuard project’s own performance page now describes these benchmarks as “old, crusty, and not super well conducted”. They were run by the WireGuard author, on that project’s own test hardware, against the OpenVPN of that period. Since then OpenVPN 2.6 added Data Channel Offload, which moves encryption into the kernel; OpenVPN’s June 2025 announcement says it was merged for Linux 6.16 (accepted by the networking maintainers on 17 April 2025) and claims gains of up to 300%, without publishing test conditions. No neutral, current benchmark was found, nor a primary source for commonly quoted battery-saving percentages, so those are not repeated.

What WireGuard does not do (limitations)

The project’s own known-limitations page is blunt about the trade-offs:

  • No obfuscation. WireGuard does not try to disguise itself from deep packet inspection; the project says that belongs in a layer above it. The project does not attempt obfuscation.
  • No TCP mode. It explicitly does not tunnel over TCP, so it cannot get through a network that only allows TCP/443 unless wrapped by other tooling.
  • Not post-quantum by default. It offers an optional pre-shared key slot that can add a layer, but the base handshake is not quantum-resistant.
  • Clock dependence. It uses system time as a counter, so an attacker who controls your clock could replay stored handshake messages.
  • Identity hiding is limited. If a server’s private key is later compromised and handshake logs exist, an attacker can learn which peers connected, though not their data.

And neither protocol hides who you are from the sites you log in to, stops malware or phishing, or protects a device that is already compromised. A protocol secures the tunnel between you and the VPN server; the server’s operator still sees your traffic’s destination.

Audit and trust record

  • OpenVPN: An audit of OpenVPN 2.4.0 by Quarkslab for OSTIF (published 11 May 2017), including the Windows GUI and NDIS6 TAP driver. It found 7 issues: one high-severity issue (CVE-2017-7478), one medium issue (CVE-2017-7479) and five low or informational items. The report says the high-priority items were fixed in 2.4.2, while at least one lower-priority fix (a null-pointer issue) was deferred to a later release. A separate cryptography review by Matthew Green, paid for by Private Internet Access, is referenced in the same report. These audits are nearly a decade old.
  • WireGuard: the project lists several formal-verification efforts: a Tamarin symbolic model, a computational proof by Dowling and Paterson (2018), a CryptoVerif proof by Lipp (2018), a ProVerif model by Kobeissi and Bhargavan (2018), and verified Curve25519 implementations (HACL* 2017, Fiat-Crypto 2019). These prove properties of the protocol design; they are not the same as a code audit of every implementation. No single published full audit of the Linux kernel code was found on the project’s own pages, so the frequent claim that it has been repeatedly audited since 2020 is unconfirmed.
  • Provider implementations: audits of VPN apps are separate from the protocol. For example, Mullvad published that Cure53 assessed its app in June 2020 and found nothing it classed as critical.

As of 2026-10-12. Check the provider’s own audit page for anything newer.

Maturity and where the industry is heading

WireGuard landed in Linux 5.6 (released 29 March 2020), so it is no longer an out-of-tree experiment, and its install page lists clients for Windows, macOS, iOS, Android, BSD and many Linux distributions. Mullvad announced on 8 November 2024 that it would focus on WireGuard alone, and its blog set 15 January 2026 as the date OpenVPN servers would go offline; the post recommends WireGuard. Mullvad’s live server list showed no OpenVPN servers on 2026-10-15, so the shutdown has happened. Not every provider has made that move, and plenty still offer both.

Which protocol should you use?

Choose WireGuard if:

  • Your provider offers it and you want a small, fixed-cipher design with little to misconfigure.
  • You self-host a tunnel on Linux and want the in-kernel implementation.
  • Your concern is everyday privacy: your ISP, shared Wi-Fi and location masking, not an adversary blocking VPNs.

Choose OpenVPN if:

  • You must tunnel over TCP, for example through a network that only passes port 443.
  • You are on a network that blocks or fingerprints plain WireGuard and your provider supplies an obfuscated OpenVPN option.
  • Your provider, router or corporate gateway supports only OpenVPN.
  • You need certificate-based, multi-user setups already built around OpenVPN’s TLS model.

If your provider offers both and none of those apply, use WireGuard. For provider-by-provider details, see the reviews of Proton VPN and Surfshark, and check each provider’s own documentation for which protocols it currently offers.

Frequently asked questions

Can WireGuard be hacked if it has so little code?

Any software can have bugs. A small codebase is easier to review, and the project lists formal proofs of the protocol design, but those do not guarantee that every implementation is flawless. Its documented weaknesses include no built-in obfuscation, no post-quantum protection by default and reliance on a trustworthy system clock.

Is OpenVPN dead?

No. OpenVPN 2.6 added kernel Data Channel Offload, and a Linux kernel module for it shipped from 6.16. Some providers have dropped it (Mullvad’s server list now shows no OpenVPN servers), while others still offer it.

Can WireGuard be used with every VPN service?

No. Support depends on the provider, and some offer only OpenVPN or other protocols. Check the provider’s own documentation before assuming.

Does WireGuard leak my IP address?

A protocol alone does not leak your IP; leaks come from configuration, DNS handling and what happens when the tunnel drops. WireGuard’s small configuration surface leaves fewer options to get wrong, and a kill switch in the app matters more than the protocol choice.

Which is better for torrenting or large file transfers?

In the one benchmark traced to a primary source, WireGuard delivered about four times OpenVPN’s throughput on gigabit hardware (1,011 against 258 Mbit/s), though that test is old and run by WireGuard’s author. Current OpenVPN with kernel offload may narrow the gap, so test on your own connection if speed matters.

Where to get it: Get NordVPN — runs on NordLynx, its WireGuard-based protocol, with a no-logs policy. Affiliate link — The Unhacked may earn a small commission at no cost to you; our verdict isn’t for sale.

Sources (accessed 2026-10-12): WireGuard paper, WireGuard known limitations, WireGuard formal verification, WireGuard protocol, Linux 5.6 release notes, OpenVPN 2.6 manual, OSTIF audit of OpenVPN 2.4.0, OpenVPN DCO announcement, Mullvad on removing OpenVPN, Mullvad 2020 app audit.

Related reading: The Privacy Stack I Actually Use (No Tinfoil Hat Required), and VPN Kill-Switches: Ensuring 100% Data Integrity and the Privacy Unhack.

Sources and how we checked

The main facts in this article were checked against these primary sources on 15 October 2026. Prices, features and policies change; check the vendor’s own page before you buy.

Dr. AshR · Founder & Editor, The Unhacked

Dr. AshR is the founder and editor of The Unhacked, an independent publication on digital sovereignty — privacy, self-custody, health, and money. The Unhacked publishes disclosure-first, independently-tested guidance and never lets a commercial link change a verdict. More about our methodology →

The Signal - free dispatch

One practical email that makes your digital life calmer. Checklists, tool cautions, plain-English decisions. No noise.

Free. No spam. Unsubscribe any time.

Affiliate disclosure. The Unhacked may earn a commission when you use some links on this page. Recommendations remain editorially independent.
📡

Join the Inner Circle

Weekly dispatches. No algorithms. No surveillance. Just sovereign intelligence.

Zero spam · Fully private · Sovereign by design.