-
Notifications
You must be signed in to change notification settings - Fork 269
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
wondershaper/GCE - standard MTU causes fragmentation, some Google sites fail. #39
Comments
@mwoolweaver I'm open to fixing this issue. However, my time and knowledge are limited. Where does wondershaper actually set this MTU to 1500? Can you provide a line? https://github.com/magnific0/wondershaper/blob/master/wondershaper Or is that a default value for tc? |
It’s very possible that this is a default value. I haven’t used wondershaper in a couple months. I was using it to limit upload/download speeds of a python script I was using to tweet pihole stats amongst other things. https://github.com/mwoolweaver/tweetStats I’m not sure of the best way to address the issue for more users. My idea would be to check the interface that is be I used for internet access but I’m sure how to go about determining the which interface that is? Or would it better to use |
Thanks, that's what I understand too. In that case it's probably smarter to do it for the entire interface separate from wondershaper. The instructions for this are: View current MTU
Outputs something like:
Or use ip command:
Which looks like:
In this examples MTU set to 1500 for eth0. To change this to 1460 use either:
or
Example taken from https://www.cyberciti.biz/faq/how-can-i-setup-the-mtu-for-my-network-interface/ accessed April 4, 2020. |
But if I remember correctly wondershaper creates a network interface for itself to control the flow of traffic and that’s the interface that doesn’t have the MTU set. In my case the MTU for eth0 is 1460 and I had to adjust the interface for wondershaper to match that or I had this issue. |
MTU not being set properly will cause connectivity issues. It seems wondershaper sets a default value of 1500 which probably ok in most cases but google use a 1460 MTU for the GCE network so this will cause intermittent connectivity issues.
Wondershaper should mimic the GCE MTU of 1460 and everything seems to work as it should.
More info can be found in the links below
https://www.reddit.com/r/WireGuard/comments/aru07q/wireguard_slow/
StreisandEffect/streisand#1089
StreisandEffect/streisand#1552
The text was updated successfully, but these errors were encountered: