WireGuard
2,942 Total views across this article’s versions; includes the historical baseline where available.
WireGuard was the “new kid on the block” when this article was first published in December 2019. Its production status changed soon afterward: the project announced WireGuard 1.0.0 for Linux 5.6 in March 2020. The comparison below distinguishes that history from the protocol’s capabilities. Release announcement.
Protocol adoption in the VPN world is a very slow process. Yet a relatively recent upstart was garnering a lot of attention: WireGuard. Does it live up to the hype? Or is it Science Fiction?
The early debate about code size compared different things. The cited 2018 Ars Technica article reports about 600,000 lines for OpenVPN plus OpenSSL, and about 400,000 for XFRM plus strongSwan. It does not attribute 400,000 lines to OpenVPN alone.1 Donenfeld’s February 2017 presentation lists 116,730 lines for OpenVPN, with OpenSSL excluded, and 3,904 for WireGuard.3 Those are historical counts with different boundaries, not a current size ratio or a measurement of security.
OpenVPN’s April 2019 response concerns another comparison, linked from that response, and discusses differences in supported features and dependencies.2 It is not a direct rebuttal of the Ars article. A dependency’s size alone does not make its use obsolete; nor does a smaller implementation establish that every deployment will be safer or faster.
OpenVPN remains an option for deployments that need its authentication integrations, configuration choices or TCP transport. WireGuard takes a smaller, more opinionated approach. Neither the age of a project nor its line count establishes a universal winner. OpenVPN 2.6 manual.
Let’s begin by taking a look at WireGuard’s design choices:
- Roaming and mobile use: a peer can learn a new endpoint address from authenticated traffic. That helps when a device changes networks. It is not a guarantee of lower battery use on every device, and WireGuard is intended for general-purpose networking, not only mobile clients. Conceptual overview.
- Cryptography: WireGuard uses a fixed suite rather than a wider menu of selectable ciphers. It combines ChaCha20-Poly1305 authenticated encryption, Curve25519 key agreement, BLAKE2s hashing and related constructions. This avoids cipher-suite negotiation within the current protocol. Protocol description.
- Code and review: keeping an implementation small can make it easier to inspect. Code size alone does not prove the absence of vulnerabilities. Formal protocol verification also differs from auditing every platform implementation or a provider’s complete service. The project documents several verification efforts. Formal verification.
- Performance: the protocol uses a short handshake and refreshes session keys automatically. Throughput, latency, roaming and power use still depend on implementation, hardware, configuration and workload. Historical benchmarks do not establish a universal ranking against current OpenVPN builds. Technical paper.
There are also trade-offs to consider:
- Operational state and privacy: WireGuard maintains peer configuration and current runtime information, including endpoints and latest-handshake times. This is distinct from a durable history of user activity. The protocol does not impose a 24-hour IP-address logging requirement or make a provider’s no-logging policy impossible. Conversely, choosing WireGuard does not prove that a provider keeps no logs. wg(8) describes the exposed state; the Linux implementation updates the current peer endpoint and removes peer state when the interface is destroyed.
- Address and identity management: public keys identify peers, and allowed tunnel addresses are configured for each peer. WireGuard itself does not provide a DHCP-like address-assignment or account-management service. Other software can manage that configuration. This does not require a fixed public Internet address: endpoint roaming is part of the design. Conceptual overview and configuration utility.
- Transport and filtering: WireGuard carries its packets over UDP and has no native TCP mode or built-in traffic obfuscation. Those limitations can matter on restricted networks. Known limitations.
- NAT persistence: optional keepalives can preserve an idle NAT or firewall mapping; they are disabled by default. They do not mean every peer is reachable through every network. Quick start.
- Review history: the March 2020 release announcement explicitly reports a security audit during stabilization. The claim that WireGuard had never been audited, and had no prospect of review, is no longer tenable. Audits and formal proofs have defined scopes; neither guarantees a bug-free service. Release announcement and formal verification.
The Bottom Line
The article’s original preference was to keep using OpenVPN while watching WireGuard mature. That is a dated personal judgment. WireGuard’s 2020 release and subsequent cross-platform availability mean the old description of an unfinished, pre-production project should not be read as current guidance. Project overview.
The practical choice depends on the features a deployment needs: supported clients, authentication and account management, routing, network restrictions and measured performance. A protocol choice alone does not settle a service provider’s privacy practices.
Footnotes
1 Jim Salter. 26 August 2018. WireGuard VPN review: A new type of VPN offers serious advantages. Historical source for the code-count comparison, not a current benchmark.
2 OpenVPN Team. 6 April 2019. The New Cloudflare VPN: What It Is And Is Not. Historical response; its statements about then-current WireGuard review status are time-bound.
3 Jason A. Donenfeld. February 2017. WireGuard: Fast, Modern, Secure VPN Tunnel. INRIA presentation, slides 4–5. The OpenVPN count excludes OpenSSL.