About the MTU,using with wireguard
Handsome1080P opened this issue · comments
My tunnel MTU set as defualt 1440.WG need set 1440-80=1360?
Just make sure that the MTU value of kcptube is smaller than the MTU value of the broadband. The MTU value of WireGuard can be set to any value.
If the purpose is to reduce waste, WireGuard's MTU can be set as:
- kcptube's MUX is not set
- MTU - 24 (KCP Header) - 5 (kcptube's headers) = 1440 - 24 - 5 = 1411
- kcptube's MUX is enabled
- MTU - 24 (KCP Header) - 9 (kcptube's headers) = 1440 - 24 - 9 = 1407
I see,thx.For wireguard in kcptube with ipv4 and ipv6:
- IP header (40 bytes)
- KCP header (24 bytes)
- KCPTUBE headers (5)
- WireGuard overhead (32 bytes)
- Final 1500-101 = 1399
But I will set 1380 for myself.