Skip to content

OpenVPN slow without sndbuf 0 / rcvbuf 0 #352

Open
@hjohnson57

Description

@hjohnson57

I'm running OpenVPN 2.4.0-6+deb9u2 on my Debian 9 server and OpenVPN 2.4.6-I601 on my Windows 10 client. The issue is not related to a specific version of either of these. RTT latency between these is about 40msec (this is relevant).

openvpn-install.sh works great, but is slow. Installed as tcp-over-tcp with no packet loss (it's faster that way). By default, I get about 5Mbps throughput and links on both ends are at least 600Mbps up/down in both directions (this is also relevant). If I add the following to the scripts on both ends, I get about 60Mbps each way:

sndbuf 0
rcvbuf 0

Feature request: include these two lines in openvpn-install.sh.

See https://www.lowendtalk.com/discussion/40099/why-openvpn-is-so-slow-cool-story for details.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions