Answer the question
In order to leave comments, you need to log in
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
Answer the question
In order to leave comments, you need to log in
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...
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 questionAsk a Question
731 491 924 answers to any question