Repository navigation
feat(awg): write the server MTU to client configs (#6) - #15
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rendered AmneziaWG client configs carried no
MTUline, so each client picked its own: the mobile apps 1280,awg-quickon 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.renderwritesMTU = <n>afterDNSwhen awg-grpc reports a non-zeroInterfaceStatus.mtu. awg-grpc v0.2.0 (mrcsin/awg-grpc#10) takes it from theMTUline 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-quickdefault 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 changedMTUneeds an awg-grpc restart before usher rewrites the client files.Closes #6
Verified:
scripts/format.sh,go test -race ./...andGOOS=linux go vet -tags e2e ./...pass locally. The e2e suite, which assertsMTU = 1280in the rendered client file and on the client interface, runs in thee2ejob of this PR.Per-task commits before collapse
🤖 Generated with Claude Code