I have a gigabit connection (both upload and download). I have installed OpenVPN server and works fine to some extend but it is slow. I’m using UDP connection and I’m getting around 50mbit download when I’m outside and for testing purposes I connected to VPN locally, I got 140mbit tops.
VPN server is on 8th gen NUC i3. I checked the CPU usage and when I do a speedtest it goes as high as 70% single core.
Do you have any suggestions for me to speed up things? I don’t need it to be ultra secure so faster encryption algorithms with lower security options are also fine.
Trail of Bits is a renowned security auditing firm.
Otherwise, a solution that combines the following primitives
SHA256 (SHA2) for hashing as very efficient implementations are available widely (OpenSSL)
AES for encryption as it’s hardware accelerated via AES-NI
256-bit Elliptic curves (Curve25519 or Nist P256) for key exchange as they have fast implementations in all libraries and they are way smaller than RSA keys (2048~4096 bits).