I've been struggling with this for the past days and I have not made any progress so far. The configuration of OpenVPN was delightfully straight forward and pretty much everything worked out of the box. The only thing wrong with the installation are the transfer speeds. Without OpenVPN "iperf" reports about 300 mbps download speed. As soon as OpenVPN is involved the speed drops to anywhere between 10 and 70 mbps depending on different mtu/crypto configurations.
I've been able to reproduce the issue in a simple adhoc VPN.
Server (Debian 8):
Code: Select all
openvpn --dev tun --proto udp --port 11000 --secret static.key --ifconfig 192.168.222.11 192.168.222.10
iperf -c 192.168.222.10
Code: Select all
openvpn --dev tun --proto udp --port 11000 --secret static.key --ifconfig 192.168.222.10 192.168.222.11 --remote server.ip
iperf -s
Code: Select all
--txqueuelen 15000 --tcp-queue-limit 128 --cipher aes-256-cbc
While researching this issue I've found people who have the same problem with no solution, people who had to change a tun-mtu or buf setting and the issue was gone, people who say that this is normal and people who say that the overhead should be max 10%. None of the setting changes I've found have helped.
If anyone has any idea as to what might be causing the slowdown and how we can get at least 100mbps out of the VPN that would be greatly appreciated!