OpenVPN 2.4 enormously speed issues

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
Calcifer
OpenVpn Newbie
Posts: 1
Joined: Sun Sep 02, 2018 7:29 pm

OpenVPN 2.4 enormously speed issues

Post by Calcifer » Sun Sep 02, 2018 7:44 pm

Hey there,

my problem is, that OpenVPN is pretty slow. I searched on different places for some tweaks but nothing worked (sadly). I am currently using OpenVPN 2.4 with UDP, i tried some MTU settings and so on, nothing realy helped me. With verbose 3, there aren't any warnings or errors, everything seems fine, the serverload isn't high at all (about 0.05) and i only got 20mbit while connected to the server (i have 200mbit at home), and when i download files over my Browser e.g. https://download.lineageos.org/m8 the speed is at 80KB/s (not on all sites i guess), if i download it with jdownloader i got around 20mbit while multiple connections.

My Configurations are as followed:

Server Hardware:

Code: Select all

CPU: 2x2,67 Ghz
RAM: 1GB
HDD: 50GB
Bandwith: 200mbit
Server-side config:

Code: Select all

port 1194
proto udp
dev tun
user nobody
group nogroup
persist-key
persist-tun
keepalive 10 120
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 1.0.0.1"
push "dhcp-option DNS 1.1.1.1"
push "redirect-gateway def1 bypass-dhcp"
crl-verify crl.pem
ca ca.crt
cert server_qx0rCMHbN0m7AaE1.crt
key server_qx0rCMHbN0m7AaE1.key
tls-auth tls-auth.key 0
dh dh.pem
auth SHA256
cipher AES-128-CBC
tls-server
tls-version-min 1.2
tls-cipher TLS-DHE-RSA-WITH-AES-128-GCM-SHA256
status /dev/null
verb 0
log /dev/null
local config:

Code: Select all

client
proto udp
remote xxx.xxx.xxx.xxx xxxx
dev tun
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
verify-x509-name server_qx0rCMHbN0m7AaE1 name
auth SHA256
auth-nocache
cipher AES-128-CBC
tls-client
tls-version-min 1.2
tls-cipher TLS-DHE-RSA-WITH-AES-128-GCM-SHA256
setenv opt block-outside-dns
verb 0

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN 2.4 enormously speed issues

Post by TinCanTech » Sun Sep 02, 2018 7:51 pm

If only you had seen this first:
HOWTO: Request Help !

This probably does not help:
https://community.openvpn.net/openvpn/w ... orks_Linux

Post Reply