Bug #11482
closed
WireGuard interfaces do not always have proper MTU applied
Added by Derek Battams about 4 years ago.
Updated over 3 years ago.
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.
- 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.
- Status changed from New to Pull Request Review
- Target version changed from CE-Next to 2.5.1
- Status changed from Pull Request Review to Feedback
- Assignee set to Viktor Gurov
Merged and cherry-picked to 2.5.1
- % Done changed from 0 to 100
- Target version changed from 2.5.1 to Future
- Status changed from Feedback to Closed
- Target version deleted (
Future)
Also available in: Atom
PDF