-
-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Lowering MTU drastically improves the Wireguard upload bandwidth #1650
Comments
Two different servers are benched both times, thats not a fare comparison? |
I've reproduced this behavior consistently across multiple servers, and the delta is substantial every time. The script and configuration are all there, so anyone can reproduce it with fixed benchmark servers. |
Thanks to @LarsHaalck and since PR #1571 you can now use Also 2ec9293 changes the default MTU from 1420 to 1400, let's see how it does. |
Awesome, thanks for the quick fix!
…On Thu, Jun 8, 2023, 11:55 AM Quentin McGaw ***@***.***> wrote:
Closed #1650 <#1650> as completed.
—
Reply to this email directly, view it on GitHub
<#1650 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABCM7PLJBHXXPSJCT4TKADXKGOP7ANCNFSM6AAAAAAYYLCGLQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I just spent a few hours trying to figure out why only DNS, IMCP and (some) HTTP traffic seemed to make it through my tunnel, but not HTTPS and SSH. Lowering the MTU even further to 1320 fixed all of my issues. AirVPN seems to recommend a MTU of 1320. They also seem to use this MTU in their official application (Eddie). Would it make sense to use this MTU value for AirVPN specifically? If so, should I open a new issue for this? |
@Ditti4 please reply to #2044 (comment) |
Slightly related, now all MTU default to 1320, since other users faced the same issue (TLS handshake errors mostly). |
Is this urgent?
None
Host OS
No response
CPU arch
x86_64
VPN service provider
AirVPN
What are you using to run the container
docker-compose
What is the version of Gluetun
v3.34.3
What's the problem 🤔
Hello! Thanks for the wonderful project.
I’ve noticed that my upload across a custom site-to-site Wireguard connection was pretty bad, so I’ve replicated the issue on two commercial VPNs: Mullvad and AirVpn.
After a bit of investigation, I've identified the culprit: the MTU is a smidge too high. Lowering it slightly (1420 -> 1400) solves the issue.
How to replicate:
The output I get:
This is likely due to packet fragmentation - I'm happy to confirm that through tcpdump/wireshark if needed.
Once you've confirmed this behavior, is it possible to either:
MTU=1400
)?
Thanks for the attention and the great project!
Share your logs
Share your configuration
The text was updated successfully, but these errors were encountered: