Allow MTU configuration for Peers #1543

Open
opened 2025-11-20 05:32:31 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @PapaZigE on GitHub (Jan 4, 2025).

Is your feature request related to a problem? Please describe.
Yes. It's related to this Issue here: MTU configuration.

My peer server running services like Odoo, OneDev and Nextcloud fails to send SMTP due to MTU defaults being too low. They work properly for http requests, but ALL of them fail SMTP. After changing the interface MTU, everything worked again.

However, if I down and up netbird, it changes the MTU back to defaults. So even if I persist the changes at the server level, a Netbird restart will revert the changes. Note, All my services are in docker.

Describe the solution you'd like
Therefore, the ability to change the default config.json values and include an MTU option for peers would be extremely beneficial. Currently, if I add MTU to the config.json like this:

    "MTU": 1500,
    "WgIface": "wt0",
    "WgPort": 51820,
    "NetworkMonitor": null,
    "IFaceBlackList": [
        "wt0",
        "wt",
        "utun",
        "tun0",
        "zt",
        "ZeroTier",
        "wg",
        "ts",
        "Tailscale",
        "tailscale",
        "docker",
        "veth",
        "br-",
        "lo"
    ],

Netbird still does not pick it up. I can change the MTU with ip link but there's no way to persist it which is a problem because multiple services rely on the MTU setting as I have found out after a lot of troubleshooting. Although I can change it manually, it is not practical to instruct every peer that connects to change their interface MTU's. Peers are mixed between multiple clients like Windows, Mac, iPhone and Android. A default setting in the config and a way to have that config passed to the peers is the request.

Describe alternatives you've considered

  • Manually setting interface MTU in config: does not work
  • Manually setting interface MTU with ip link: works but does not persist on Netbird restart.
Originally created by @PapaZigE on GitHub (Jan 4, 2025). **Is your feature request related to a problem? Please describe.** Yes. It's related to this Issue here: [MTU configuration](https://github.com/netbirdio/netbird/issues/743). My peer server running services like Odoo, OneDev and Nextcloud fails to send SMTP due to MTU defaults being too low. They work properly for http requests, but ALL of them fail SMTP. After changing the interface MTU, everything worked again. However, if I down and up netbird, it changes the MTU back to defaults. So even if I persist the changes at the server level, a Netbird restart will revert the changes. Note, All my services are in docker. **Describe the solution you'd like** Therefore, the ability to change the default config.json values and include an MTU option for peers would be extremely beneficial. Currently, if I add MTU to the config.json like this: ``` "MTU": 1500, "WgIface": "wt0", "WgPort": 51820, "NetworkMonitor": null, "IFaceBlackList": [ "wt0", "wt", "utun", "tun0", "zt", "ZeroTier", "wg", "ts", "Tailscale", "tailscale", "docker", "veth", "br-", "lo" ], ``` Netbird still does not pick it up. I can change the MTU with `ip link` but there's no way to persist it which is a problem because multiple services rely on the MTU setting as I have found out after a lot of troubleshooting. Although I can change it manually, it is not practical to instruct every peer that connects to change their interface MTU's. Peers are mixed between multiple clients like Windows, Mac, iPhone and Android. A default setting in the config and a way to have that config passed to the peers is the request. **Describe alternatives you've considered** - Manually setting interface MTU in config: does not work - Manually setting interface MTU with ip link: works but does not persist on Netbird restart.
saavagebueno added the feature-requestclient labels 2025-11-20 05:32:31 -05:00
Author
Owner

@e1ke commented on GitHub (Jun 12, 2025):

related to feature-request https://github.com/netbirdio/netbird/issues/743

@e1ke commented on GitHub (Jun 12, 2025): related to feature-request https://github.com/netbirdio/netbird/issues/743
Author
Owner

@e1ke commented on GitHub (Jul 28, 2025):

related to PR https://github.com/netbirdio/netbird/pull/4213

@e1ke commented on GitHub (Jul 28, 2025): related to PR https://github.com/netbirdio/netbird/pull/4213
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1543