Skip to content

What's the maximum MTU I can use for Wireguard? #352

Answered by erebe
cornzzy asked this question in Q&A
Discussion options

You must be logged in to vote

it depends on the data length you forward.
it can vary from 2 to 9 bytes (if you let the default and don't enable masking frame).

If you want to forward udp traffic, as it will be <1500 bytes, the overhead of websocket is 3 bytes.

But you also need to account for TLS which is 5bytes.

So for udp websocket + TLS should be 8 bytes of overhead.

You can set your MTU to 1450 to be safe.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cornzzy
Comment options

@erebe
Comment options

Answer selected by cornzzy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants