mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 10:05:48 +03:00
[GH-ISSUE #282] Slow Performance #259
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @squishycat92 on GitHub (Mar 1, 2022).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/282
Hi, I really like this Docker image and the ease of configuring the container!
However, upon running a few speedtests, it seems like the VPN server is not performing well (not even close to the host network speed). Is this something that could be fixed or is it an inherent limitation of VPNs? I was expecting a performance hit with a VPN, but this performance gap seems extremely large.
Docker host connection:

Underlying connection (no VPN activated):

VPN connection (VPN activated):

I have noticed that the upstream/downstream connections seem to be bottlenecked to the upload speed, although I am not quite sure why this would affect the downstream speed.
System Information:
@squishycat92 commented on GitHub (Mar 1, 2022):
Oh also a quick question about using Docker's NAT: will setting the networking option to
hostimprove latency and/or performance? I've read that routing through Docker increases latency and decreases performance, but I'm not sure if this is required (due to the fact that the container creates a subnet for clients).@hwdsl2 commented on GitHub (Mar 2, 2022):
@squishycat92 Hello! When connected to the VPN, the client's network speed is limited by the server's upload or download speed, whichever is lower. This is because data must be transferred into the VPN server from the 3rd party host/website you visit (e.g. a speed test server), then transferred out from the VPN server to the VPN client. There is also some additional overhead for the VPN encryption and encapsulation.
For your other question, I think setting the networking option to "host" probably won't make a noticeable difference in performance.
@squishycat92 commented on GitHub (Mar 2, 2022):
Oh yes, that makes sense. So in this case if I wanted a better internet connection, I would need to upgrade my upstream internet speeds, correct?
@hwdsl2 commented on GitHub (Mar 2, 2022):
@squishycat92 Yes, most likely your server's upload speed.
@squishycat92 commented on GitHub (Mar 2, 2022):
I see, thank you so much for clarifying!