Openvpn is very slow

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
lucfortunato
OpenVpn Newbie
Posts: 1
Joined: Fri Jul 13, 2018 7:45 am

Openvpn is very slow

Post by lucfortunato » Fri Jul 13, 2018 8:18 am

I have just finished configuring openvpn but doing a speed test I get a speed of upload and download of only 2-3 mbps, while the connection of the vps is 100 mbps both download and upload and my connection is 30 mbps also this is download and upload.

Here is my server config:
auth SHA256
port 1194
proto tcp
dev tun
ca ca.crt
cert bypassvpn.crt
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway autolocal def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 10 120
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3

and this is the client config:
client

resolv-retry infinite
nobind
persist-key persist-tun
remote-cert-tls server
cipher AES-256-CBC
auth SHA256
verb 3

Then there were the keys but I omitted them and I know that the udp protocol is faster than the tcp in this case but I am forced to use tcp.

mattheww@thereachagency.com
OpenVpn Newbie
Posts: 2
Joined: Wed Jul 18, 2018 2:23 am

Re: Openvpn is very slow

Post by mattheww@thereachagency.com » Wed Jul 18, 2018 2:26 am

Same here.
I just did a deployment of OpenVPN's Open Access Server AMI on AWS and have it setup with their recommended instance type and security recommendations. And best throughput I can get on data transfer over the VPN connection is 400K. I've already tried reducing the crypto from AES 256 CBC to AES 128 CBC and modified the send/receive buffers in the openvpn_as.conf (sndbuf 0 and rcvbuf 0).
Still not change, still maxes out at 400K

Post Reply