D
D
Denis Verbin2017-10-03 01:20:08
linux
Denis Verbin, 2017-10-03 01:20:08

How to set up fast OpenVPN?

Help me understand the speed of OpenVPN. The server is configured according to the default manual for DO.
Before adding "tun-mtu 1400" to the config, the speed was 150-300KB/sec, after - 2.5-3MB/sec.
But if you install squid on this server - the download speed through it is 10MB / sec +, that is, the problem is not in 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

In general, did anyone have OpenVPN pumping more than 5MB / sec?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
theurs, 2017-10-03
@theurs

May rest on the processor due to encryption.

Z
zooks, 2017-10-03
@zooks

59d2bca120a15243404638.png
Set up according to this manual. As you can see, the speed is excellent.
p.umputun.com/p/2014/08/12/svoi-sobstviennyi-vpn-z...

A
Alex, 2017-10-12
@ALexhha

At one time I used such a config to build a tunnel with Hetzner. As far as I remember, it received almost a maximum of ~ 90 Mbps, with a 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

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question