cnbatch / kcptube

同时支持传送TCP与UDP的KCP通道,附带端口跳跃的功能,以及FEC,自带中继服务器支持
BSD 3-Clause "New" or "Revised" License
121 stars 16 forks source link

About the MTU,using with wireguard #7

Closed Handsome1080P closed 1 year ago

Handsome1080P commented 1 year ago

My tunnel MTU set as defualt 1440.WG need set 1440-80=1360?

cnbatch commented 1 year ago

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:

Handsome1080P commented 1 year ago

I see,thx.For wireguard in kcptube with ipv4 and ipv6: