Skip to content

feat(awg): write the server MTU to client configs (#6) - #15

Merged
mrcsin merged 1 commit into
masterfrom
awg-client-mtu
Oct 28, 2026
Merged

mrcsin merged 1 commit into
masterfrom
awg-client-mtu

Conversation

@mrcsin

@mrcsin mrcsin commented Oct 28, 2026

Copy link
Copy Markdown
Owner

Rendered AmneziaWG client configs carried no MTU line, so each client picked its own: the mobile apps 1280, awg-quick on a desktop 1420. With the AmneziaWG overhead a full 1420-byte packet leaves at 1498 bytes or more and is lost on paths narrower than 1500.

render writes MTU = <n> after DNS when awg-grpc reports a non-zero InterfaceStatus.mtu. awg-grpc v0.2.0 (mrcsin/awg-grpc#10) takes it from the MTU line of the server interface config. The operator sets one value on the server, and both ends of the tunnel use it once a user imports the new file.

Issue #6 proposed a usher-side default of 1280. usher keeps none: the value lives in the server interface config, and copying the kernel MTU instead would hand the awg-quick default 1420 to clients that send with 1280 today. Without the line, or with an awg-grpc older than v0.2.0, client files stay as before. The awg-grpc module and images move to v0.2.0; the README says a changed MTU needs an awg-grpc restart before usher rewrites the client files.

Closes #6

Verified: scripts/format.sh, go test -race ./... and GOOS=linux go vet -tags e2e ./... pass locally. The e2e suite, which asserts MTU = 1280 in the rendered client file and on the client interface, runs in the e2e job of this PR.

Per-task commits before collapse
9c0969b docs(plans): record exec run and verify steps (#6)
ea7d5ab fix(awg): drop process and restating comments (#6)
52a51f4 docs(awg): address smells review (#6)
f05e957 fix(awg): address review findings (#6)
36b4415 docs(awg): describe the client MTU line (#6)
2d52c16 docs(plans): verify awg client mtu acceptance (#6)
4c9ffe5 test(e2e): assert the client MTU (#6)
50e8685 feat(awg): write the server MTU to client configs (#6)
f96f921 build(deps): bump awg-grpc to v0.2.0 (#6)
c77923b docs(plans): add awg client mtu plan (#6)

🤖 Generated with Claude Code

Rendered AmneziaWG client configs carried no MTU line, so each client
picked its own: the mobile apps 1280, awg-quick on a desktop 1420. With
the AmneziaWG overhead a full 1420-byte packet leaves at 1498 bytes or
more and is lost on paths narrower than 1500.

render now writes MTU = <n> after DNS when awg-grpc reports a non-zero
InterfaceStatus.mtu, which awg-grpc v0.2.0 takes from the MTU line of
the server interface config. The operator sets one value on the server,
and both ends of the tunnel use it once a user imports the new file.
usher keeps no default of its own: without the line, or with an older
awg-grpc, the client file stays as before. The awg-grpc dependency and
images move to v0.2.0, and the e2e suite checks the MTU of the client
interface.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@mrcsin
mrcsin marked this pull request as ready for review October 28, 2026 12:20
@mrcsin
mrcsin merged commit bdf2857 into master Oct 28, 2026
3 of 4 checks passed
@mrcsin
mrcsin deleted the awg-client-mtu branch October 28, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Write an MTU line into AmneziaWG client configs

1 participant