Skip to content
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

mtu set too high #33

Open
hyber-code opened this issue Oct 19, 2020 · 2 comments
Open

mtu set too high #33

hyber-code opened this issue Oct 19, 2020 · 2 comments

Comments

@hyber-code
Copy link

hyber-code commented Oct 19, 2020

ISSUE

some times the wireguard client sets mtu=8920 which is too high and as a result some devices does not load sites and other data properly,

i manually changed the mtu by going to following directory

cd /sys/class/net/wg0
nano mtu
and changing the value to 1380

can this be made the default value ?

it took me hours the catch the issue on one of my networks.

@hyber-code
Copy link
Author

it has something to do with following lines in your script

# Read MTU value
	if [ -f "/sys/class/net/${SERVER_WG_NIC}/mtu" ]; then
		CLIENT_MTU="MTU = $(cat /sys/class/net/${SERVER_WG_NIC}/mtu)"

@rajannpatel
Copy link
Owner

I will look into this... for google compute engine it may make sense to set the MTU on the interface as well:

 sudo ip link set dev wg0 mtu 1360

What is the best way to read and set the correct MTU value on the server, and config files? Do you have any thoughts around this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants