In this article I will provide a short speed comparison on speed test for 2 vpn options that come within opnsense.
First is the openvpn, a built in vpn client that is provided with opnsense.
The second is wireguard that is provided as a plugin for opnsense.
A few words about connection settings:
- encryption was set to aes 256 gcm for openvpn while wireguard uses ChaCha20 for symmetric encryption
- this was a virtual machine in the cloud with no hardware acceleration for encryption or anything
- openvpn uses an internal network adapter called tun/tap same as wireguard
In regards with the speed, the winner is wireguard at the download speed and openvpn at the upload.
Below are the speeds that were reached for both setups.
OPENVPN has reached to 32.13 mbps for download and 17.6 mbps for upload
Wireguard has reached a download speed of 37.53mb and an upload of 14.59
In the end I believe the results are the same, as both servers are using NAT to route traffic from internal network and that slows down the connection.