Repository navigation
Description
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 mtuis 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 mtuis 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
dr-hoseyn commentedon Oct 26, 2026
done