Skip to content

[ISSUE]: Configurable MTU for the WireGuard core interface on nodes #906

Closed

Description

@Hugsyyyy

Before you submit

  • I searched existing issues and did not find the same request.
  • This request is about PasarGuard itself, not support for my deployment.

Problem

I need to set the MTU of the WireGuard interface that the node creates, but currently there is no way to do it from the panel or the node.

  • The WireGuard core config (app/core/wireguard.py) only accepts interface_name, private_key, pre_shared_key, listen_port and address.
  • The node creates the link with only a name (backend/wireguard/manager.go: netlink.LinkAttrs{Name: ...}), so the kernel default of 1420 is always used.
  • The node deletes and recreates the interface on restart/sync, so a manual ip link set mtu is lost every time.

The per-host MTU override only changes the client config, so the two ends can't be matched.

Real case: WireGuard behind a tunnel with a lower path MTU. A client MTU of 1280 made Windows fragment 1292-byte game packets (Rainbow Six Siege), and the game server dropped the fragments. Menus loaded, but joining a match failed with a connection error. Setting MTU 1320 on both ends fixed it, but on the server side that currently needs a systemd workaround outside PasarGuard.

Proposed solution

I need to set the MTU of the WireGuard interface that the node creates, but currently there is no way to do it from the panel or the node.

  • The WireGuard core config (app/core/wireguard.py) only accepts interface_name, private_key, pre_shared_key, listen_port and address.
  • The node creates the link with only a name (backend/wireguard/manager.go: netlink.LinkAttrs{Name: ...}), so the kernel default of 1420 is always used.
  • The node deletes and recreates the interface on restart/sync, so a manual ip link set mtu is lost every time.

The per-host MTU override only changes the client config, so the two ends can't be matched.

Real case: WireGuard behind a tunnel with a lower path MTU. A client MTU of 1280 made Windows fragment 1292-byte game packets (Rainbow Six Siege), and the game server dropped the fragments. Menus loaded, but joining a match failed with a connection error. Setting MTU 1320 on both ends fixed it, but on the server side that currently needs a systemd workaround outside PasarGuard.

Alternatives considered

A systemd unit on each node that runs ip link set dev <iface> mtu N when the interface appears. It works, but it has to be set up by hand on every node, lives outside PasarGuard, and breaks easily (e.g. interface names containing "-" need systemd escaping).

Area

Nodes

Impact

Blocking my usage

Examples or references

No response

Additional context

No response

Activity

  1. added
    enhancement
    on Sep 16, 2026
  2. dr-hoseyn commented on Oct 26, 2026

    @dr-hoseyn
    Contributor

    done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions