How to set up speed OpenVPN?

Help to understand with the speed of OpenVPN. The server is configured by default to manual on DO.
To add to the config "tun-mtu 1400" speed was 150-300KB/sec, then 2.5-3MB/sec.
But if you install squid on the server - the download speed through it 10MB/sec, that is, the problem is not the channel that's for sure.

port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key vserver.key
dh dh2048.pem

server 10.8.0.0 255.255.255.0
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
;duplicate-cn
keepalive 10 120

tls-auth ta.key 0
key-direction 0
cipher AES-128-CBC
auth SHA256

;comp-lzo

user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
fragment 0
mssfix 0
tun-mtu 1400


Generally one or OpenVPN pumped more than 5MB/sec?
June 14th 19 at 20:36
3 answers
June 14th 19 at 20:38
Can touch the CPU because of the encryption.
Thought so too, fair point. Tried on 3 different hosts.
1. The dev DO (5$, ping 30ms)
2. The dev Takewyn (1ядро, ping 5ms)
3. Server at hetzner 6700 i7 (4c/8t, ping 30ms)

Also, tried cipher none.
The result is always the same :( - Aylin_Hetting commented on June 14th 19 at 20:41
June 14th 19 at 20:40
59d2bca120a15243404638.png
Set up in this manual. As you can see, the speed is great.

p.umputun.com/p/2014/08/12/svoi-sobstviennyi-vpn-z...
Thank you! Very quick and easy way to configure a VPN. In my case, nothing has changed.
PS. And You do not mind that you have to the VPN server on 8080 port is hanging the web server, which gives your config anyone? :) - Aylin_Hetting commented on June 14th 19 at 20:43
mark answer solution. About the server, this is a decision made by a person who understands security. So I think that config will not be given again to anybody. Unable to see for yourself. - Aylin_Hetting commented on June 14th 19 at 20:46
So even easier https://git.io/vpn - rhianna_Yost commented on June 14th 19 at 20:49
In my case, nothing has changed.

So you need to change the hosting to normal, your cuts the load on the CPU. - Jaqueline.Parisian commented on June 14th 19 at 20:52
@zooks
mark solution.

The crux of the matter in performance tuning OpenVPN, not how to configure OpenVPN. Unfortunately Your answer has nothing to do with the decision.

So you need to change the hosting to normal, your cuts the load on the CPU.

Actually, I checked on the server with the 6700 Core i7 (4c/8t) - 3MB/s ceiling, alas. - rhianna_Yost commented on June 14th 19 at 20:55
my test is held generally in VDS-ke. So the problem is your hosting provider or ISP and not the software. - Aylin_Hetting commented on June 14th 19 at 20:58
and for the proxy script it? - rhianna_Yost commented on June 14th 19 at 21:01
NEA - rhianna_Yost commented on June 14th 19 at 21:04
June 14th 19 at 20:42
At the time, used this configuration to build the tunnel with Hetzner. As far as I remember, it received almost the maximum of ~90 Mbps, 100 Mbps channel

dev tun0

remote 176.xxx.xxx.xxx
port 1552
proto udp

script-security 1

sndbuf 0
rcvbuf 0

txqueuelen 1024

ifconfig 10.0.0.2 10.0.0.1

float
nobind

secret /etc/openvpn/secret.key

user nobody
group nobody

comp-lzo

ping 15
ping-restart 30
ping-timer-rem

persist-tun
persist-key
persist-remote-ip

log /var/log/openvpn.log

verb 3

Find more questions by tags LinuxVPNOpenVPN