From 6c2bb7dd4fd6ac8aa5a3b9c2280b1deb1cd6a96b Mon Sep 17 00:00:00 2001 From: rbrtbnfgl Date: Fri, 22 Jul 2022 18:59:31 +0200 Subject: [PATCH] Fixed wireguard interface MTU with the overhead Signed-off-by: rbrtbnfgl --- backend/wireguard/device.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/wireguard/device.go b/backend/wireguard/device.go index 2ebc88e0bc..c5ed9c8cdf 100644 --- a/backend/wireguard/device.go +++ b/backend/wireguard/device.go @@ -128,7 +128,7 @@ func newWGDevice(devAttrs *wgDeviceAttrs, ctx context.Context, wg *sync.WaitGrou // Create network device la := netlink.LinkAttrs{ Name: devAttrs.name, - MTU: devAttrs.MTU, + MTU: devAttrs.MTU - overhead, } link := &netlink.GenericLink{LinkAttrs: la, LinkType: "wireguard"}