WireGuard: Add AmneziaWG support with amneziawg-go v0.2.18#481
Open
merge-maestro wants to merge 1 commit into
Open
WireGuard: Add AmneziaWG support with amneziawg-go v0.2.18#481merge-maestro wants to merge 1 commit into
merge-maestro wants to merge 1 commit into
Conversation
merge-maestro
force-pushed
the
feat/amneziawg-v2-support
branch
from
June 16, 2026 23:40
a742b4e to
cb9254c
Compare
- Swap wireguard-go backend for amneziawg-go v0.2.18 - Add WireGuard.AmneziaParameters data model (jc, jmin, jmax, s1-s4, h1-h4, i1-i5) - Extend LocalInterface with optional amneziaParameters field - Update config parser to parse/emit AWG parameters from .conf files - Update UAPI generator to emit all AWG parameters including s3/s4 - Update Go source imports from wireguard-go to amneziawg-go
merge-maestro
force-pushed
the
feat/amneziawg-v2-support
branch
from
June 16, 2026 23:41
cb9254c to
109e17b
Compare
Member
|
Hey, thanks for your contribution. The model part is on point, except that the library now defines all models in the OpenAPI schema, including Swift (but that is trivial to fix). What I don't like about the AmneziaWG library fork is that I'd rather have it as an "extension" of the official WireGuard repository. You can look at go.sum and see how outdated it is compared to the fork base. But I'll think through that. |
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.
Summary
Add AmneziaWG (AWG) protocol support to Partout by swapping the wireguard-go backend for amneziawg-go v0.2.18 and extending the data model, config parser, and UAPI generator.
Changes
Go Backend
wireguard-goimports foramneziawg-gov0.2.18 in all Go source filesgo.modandgo.sumwith new dependencyData Model
WireGuard.AmneziaParametersstruct with all AWG obfuscation parameters:jc,jmin,jmaxs1,s2,s3,s4h1,h2,h3,h4(String type)i1-i5(String type)LocalInterfacewith optionalamneziaParametersfieldConfig Parser
.conffiles ([Interface]section).conffilesUAPI Generator
Testing
device.Device,device.Logger,conn.PeekLookAtSocketFdAPIs confirmed compatibleNotes
partout-io/passepartout