Home WireGuard vs OpenVPN
Post
Cancel

WireGuard vs OpenVPN

WireGuard vs OpenVPN

Speed Test

In the official WireGuard page, there is a Benchmark between WireGuard, IPsec and OpenVPN. In terms of throughput, WireGuard wins with a difference of 753 mbps over OpenVPN. But it only beats IPsec by 130 mbps.

There is also a second test that checks the response time of a ping. WireGuard is again the best performer, with a difference of 0.1ms compared to IPsec and 1.1ms compared to OpenVPN.

Encryption

OpenVPN uses the OpenSSL library to provide encryption. OpenSSL supports the following cryptographic algorithms:

This number of algorithms allows OpenVPN to be more flexible. The code can negotiate the use of different algorithms depending on the circumstances. On the other hand, this complexity of the code slows down performance.

The operation of WireGuard encryption algorithms is different. WireGuard uses a fixed set of algorithms:

OpenVPN uses certificates for identification and encryption, while WireGuard uses a public key for these tasks. Although, WireGuard allows you to create an additional pre-shared key to add another layer of security.

Depending on the needs, in the aspect of the encryption, both have advantages and disadvantages. OpenVPN can operate using several protocols, but at the same time broadens the attack surface. WireGuard only uses one set of protocols and this leads to a lighter, smaller attack area. On the downside, if a vulnerability is found, you will have to upgrade to a newer version.

Auditability

Both programs are code, but OpenVPN has hundreds of thousands of lines, while WireGuard has only 4000.

Privacy

VPN protocols provide security, not privacy. What determines privacy are the policies of the VPN service, in particular whether it stores logs.

OpenVPN’s design does not need to store any user information on the VPN server, so it does not compromise user privacy.

The main problem with the WireGuard VPN is that it stores the user’s IP on the VPN server. WireGuard maps the public keys with the allowed IPs, simplifying some aspects, but making the user’s IP stored in the VPN server until is rebooted. Saving the IP on the server in this way would make WireGuard no longer be considered “no-logs” VPN. 

This post is licensed under CC BY 4.0 by the author.