Page 1 of 1

OpenVPN Performance (TCP)

Posted: Mon Jan 07, 2019 8:15 pm
by bigjohns97
I have an install of Openvpn running on a Hyper-V VM with a single core from a 9700k and 1GB of ram.

Recently i have had to switch over to TCP instead of UDP and am noticing that my speed is limited around 20-30mbs.

I used the default build from PiVPN with the exception of using TCP instead of UDP and i feel like the performance should be much better.

I do have a 1Gb fiber connection with no limit on download and upload.

my client connection speed test is well over 100mbit so the network speed should be there.

BTW when doing my speed tests the cpu usage on the VM is around 0-1%.

I feel like there should be something that would drive the CPU a little and gain some performance.

Here is my server config below.

dev tun
proto tcp
port 1194
dh none
topology subnet
push "route"
keepalive 1800 3600
remote-cert-tls client
tls-version-min 1.2
cipher AES-256-CBC
auth SHA256
user nobody
group nogroup
status /var/log/openvpn-status.log 20
status-version 3
verb 3

Re: OpenVPN Performance (TCP)

Posted: Wed Jan 09, 2019 7:22 am
by jafree
I can't get OpenVPN to do more than 10mbit. I'm using UDP and a "tun" adapter. The device is 100mbit and I can definitely see that throughput on it. However, once I route via OpenVPN, it won't go above 10mbit.

Re: OpenVPN Performance (TCP)

Posted: Mon Jan 21, 2019 8:59 pm
by bigjohns97
Same here and I recently switched over to the OpenVPN Virtual Appliance in hopes to solve this issue but still nothing, only around 25mbit when speed tests show 100mbit to the internet.