siomiz / SoftEtherVPN

A Docker Automated Build Repository for SoftEther VPN
https://hub.docker.com/r/siomiz/softethervpn/
MIT License
454 stars 174 forks source link

Very low throughput #81

Open skleeschulte opened 4 years ago

skleeschulte commented 4 years ago

Hi there, thanks for creating this project! Unfortunately I get only very low throughput with a Layer 3 site-to-site connection when the SoftEther VPN servers run in Docker containers. "Very low" is 30 to 80 KB/s in both directions (tested with SMB and HTTP download), whereas the slowest links at the two sites are 4 MB/s (= 32 Mbps) and 1.25 MB/s (= 10 Mbps). Pings are ok (20 to 30 ms).

I closesly followed 10.6 Build a LAN-to-LAN VPN (Using L3 IP Routing), except only for two sites. Containers are running in privileged mode.

Here is what I tried to narrow down the problem:

I also found the hint to modify the MTU settings in SoftEther VPN, but as I understand it, as SecureNAT is disabled this does not apply.

And I also found hints that using tap devices as local links and bridging to eth0 could resolve speed issues (e.g. here: SoftEther VPN has very slow download, while upload is high). Unfortunately I did not manage to set this up in a container.

Any ideas what to do next?

siomiz commented 4 years ago

Thank you for the detailed report!

As you can see this image is really a script wrapper around SoftEther VPN, so I'm assuming there is an underlying network performance issues within the Docker networking layer...

Are you using Docker Desktop for Windows to run the image? There are reported slowness with it and they suggest:

Unfortunately I don't have the environment to test it by myself... Hope this helps!