Project

General

Profile

Actions

Bug #11482

closed

WireGuard interfaces do not always have proper MTU applied

Added by Derek Battams about 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Viktor Gurov
Category:
WireGuard
Target version:
-
Start date:
02/20/2021
Due date:
% Done:

100%

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

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.

Actions #1

Updated by Jim Pingle about 3 years 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.

Actions #3

Updated by Jim Pingle about 3 years ago

  • Status changed from New to Pull Request Review
Actions #4

Updated by Jim Pingle about 3 years ago

  • Target version changed from CE-Next to 2.5.1
Actions #5

Updated by Renato Botelho about 3 years ago

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

Merged and cherry-picked to 2.5.1

Actions #6

Updated by Viktor Gurov about 3 years ago

  • % Done changed from 0 to 100
Actions #7

Updated by Jim Pingle about 3 years ago

  • Target version changed from 2.5.1 to Future
Actions #8

Updated by Jim Pingle over 2 years ago

  • Status changed from Feedback to Closed
  • Target version deleted (Future)
Actions

Also available in: Atom PDF