WireGuard: Difference between revisions
MTU troubleshooting |
|||
Line 484: | Line 484: | ||
}; | }; | ||
</syntaxHighlight> | |||
== Server is reachable, but only some services are working== | |||
It might be, that the [https://en.wikipedia.org/wiki/Maximum_transmission_unit MTU] of the network connecting the endpoints is smaller than the default (1500). By default the "option is set to" 1420, with an additional 80 due to wireguard overhead. Try adjusting it to something smaller: | |||
<syntaxHighlight lang="nix"> | |||
networking.wireguard.interfaces.wg0.mtu = 1000; | |||
#this is extremely small, bigger values can yield better performance. | |||
#networking.wg-quick.interfaces.wg0.mtu = 1000; #if you use wq-quick | |||
</syntaxHighlight> | </syntaxHighlight> | ||