
Slow OpenVPN is seldom slow encryption. It is packets being carried back and forth between the kernel and the program.
Slow has to be measured first. 80 out of 300 Mbps and pages that do not load are different problems. Write down three numbers.
Measure, do not guess
iperf3 -c server-public-ip # without the tunnel
iperf3 -c 10.9.0.1 # through the tunnel
top # how much CPU openvpn takes| Result | The limit |
|---|---|
| Slow without the tunnel too | The line |
| Slow in the tunnel, one core at 100% | CPU |
| Slow in the tunnel, CPU idle | Loss, MTU or TCP in TCP |

What helps, biggest first
- TCP to UDPThe largest difference on lossy lines
- Turn on DCOData stays in the kernel; automatic with 2.7 and a new kernel
- AES-GCMMuch faster than old CBC on processors with AES instructions
- No compressionTraffic is mostly encrypted already; it also harms security
- mssfix 1360When pages stop halfway or large files stall
Is DCO in use
sudo journalctl -u openvpn-server@server | grep -i dcoLinux has the ovpn module since kernel 6.16. The Windows community edition uses the ovpn-dco driver by default, and wintun was dropped in 2.7. comp-lzo, old ciphers or TAP mode fall back to the slow path.

Very slow on a router
Old routers have no AES instructions. Use CHACHA20-POLY1305, or move OpenVPN to a small PC.
Three numbers
| Number | How |
|---|---|
| A: without VPN | A speed test |
| B: to the server, no tunnel | iperf3 -c public-ip -R |
| C: to the server, in the tunnel | iperf3 -c 10.9.0.1 -R |
B far below A: the line to the server. C near B: the tunnel is fine. C far below B: read on.
C far below B
top -d 1One core full with openvpn is the processor's limit; the data channel uses one thread. If it is not full, look for loss and MTU:
ping -n 100 10.9.0.1
ping -f -l 1400 10.9.0.1Turning on DCO
Both ends 2.6 or later, AES-GCM or CHACHA20, no compression, tun mode, and the ovpn kernel module or ovpn-dco:
uname -r
modinfo ovpn 2>/dev/null | head -3
sudo journalctl -u openvpn-server@server | grep -iE "dco|data channel offload"DCO device tun0 opened means yes. disabling data channel offload names the option that prevents it; remove that option.
Compression slows things down
Pages and videos are compressed already. Worse, compressed lengths leak contents. Remove comp-lzo and compress on both sides.
Ciphers
| Processor | Fastest |
|---|---|
| Computers of the last ten years | AES-GCM |
| Old routers without AES | CHACHA20-POLY1305 |
| BF-CBC anywhere | Replace it |
grep -o -m1 aes /proc/cpuinfo prints aes if it is there.
The server is in the wrong place
A single download slows with latency. A nearer server beats any parameter. Many parallel connections hide this, which is why speed tests look good and video does not.
Would another protocol be faster?
On the same line WireGuard usually is. If the line is slow, nothing helps.
AdLuoboyunTo compare with another line: take 1 GB of trial traffic and test within 24 hours; Alipay, WeChat and crypto accepted.Take it and compareDo larger buffers help?
Systems adjust them now. Most sndbuf advice on the web is out of date.
sndbuf and rcvbuf?
Set to 0 or removed; the old numbers are ten years out of date.
Phones are slower?
OpenVPN 3 on phones has no kernel acceleration; tens to a bit over a hundred Mbps is normal.
How much faster is WireGuard?
Two or three times when the processor is the limit, nothing when the line is.



