Project

General

Profile

Bug #11482

WireGuard interfaces do not always have proper MTU applied

Added by Derek Battams about 2 months ago. Updated 25 days ago.

Status:
Feedback
Priority:
Normal
Assignee:
Category:
WireGuard
Target version:
Start date:
02/20/2021
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.5.0
Affected Architecture:
Release Notes:
Default

Description

When you set the mtu of an assigned wg interface, that value is not honoured. The mtu of the interface is always 1420. I need to set the mtu of my wg interfaces to 1412 to account for pppoe, but when I do even though the mtu setting in the interface config shows 1412, the mtu value displayed in Status > Interfaces and by ifconfig shows 1420.

Associated revisions

Revision 5b141e80 (diff)
Added by Viktor Gurov 28 days ago

Set correct WireGuard interface MTU on boot/config changes. Fixes #11482

Revision ac37d85c (diff)
Added by Viktor Gurov 28 days ago

Set correct WireGuard interface MTU on boot/config changes. Fixes #11482

(cherry picked from commit 5b141e80eca7718043a83bb690dfe2d8db04ee87)

History

#1 Updated by Jim Pingle about 2 months ago

  • Subject changed from WireGuard interfaces do not honour mtu setting to WireGuard interfaces do not always have proper MTU applied
  • Target version set to CE-Next

If you edit the assigned interface and save/apply, it does get the correct MTU applied. However, if you edit/save the WireGuard tunnel, the default MTU is reset. Also the default MTU is present at boot time, not the MTU on the assigned interface.

So when (re)configuring WireGuard it needs to check for and use the MTU from the assigned interface, if present, since the interface itself is recreated when that happens.

#3 Updated by Jim Pingle about 2 months ago

  • Status changed from New to Pull Request Review

#4 Updated by Jim Pingle about 1 month ago

  • Target version changed from CE-Next to 2.5.1

#5 Updated by Renato Botelho 28 days ago

  • Status changed from Pull Request Review to Feedback
  • Assignee set to Viktor Gurov

Merged and cherry-picked to 2.5.1

#6 Updated by Viktor Gurov 28 days ago

  • % Done changed from 0 to 100

#7 Updated by Jim Pingle 25 days ago

  • Target version changed from 2.5.1 to Future

Also available in: Atom PDF