On this page
Facts
What it is
VPN: WireGuard with disguised packets
Since, by
Amnezia project, 2023; a fork of wireguard-go
Transport
UDP only, like WireGuard
Encryption
WireGuard's own: Curve25519, ChaCha20-Poly1305, BLAKE2s
To the network it looks like
UDP of random sizes; decoys from 1.5 can imitate QUIC
Usual port
Any UDP port the server sets
Comes as
WireGuard .conf plus Jc, S1–S4, H1–H4, I1–I5 lines
License
MIT for amneziawg-go, GPLv2 for the kernel module
Latest release
amneziawg-go v3.1.20261116, November 16, 2026
In Veli
Windows, macOS, Linux, Android · file
Own server from the app
Yes
Versions and history
- 1.0, 2023
Junk, padding, own type values
Jc,JminandJmaxsend junk before the handshake,S1andS2put random bytes in front of the two handshake messages,H1–H4replace the four type values. amneziawg-go appears in September 2023. - 1.5, 2025
Signature packets
I1–I5describe decoy packets with tags such as<b 0x…>and<r 16>, sent before the handshake so the start of a session can look like QUIC or DNS. Its code also hadJ1–J3andItime. Beta tags in amneziawg-go date from July 2025. - 2.0, 2025
Padding on every packet, header ranges
S3andS4pad the cookie reply and every data packet, andH1–H4become ranges with a new value per packet.J1–J3andItimeare gone. The code landed in amneziawg-go on 1 September 2025. - 3.x, 2026
AmneziaWG 3.0 and 3.1
amneziawg-go tagged 3.0 on 24 July 2026 and 3.1 on 12 August 2026.
How AmneziaWG changes WireGuard
Inside, nothing changes: the same Noise handshake, the same keys and session encryption, the same AllowedIPs. AmneziaWG works on the outside of the packets, where WireGuard has the fixed values filters look for: a type byte followed by three zero bytes, and handshake messages of exactly 148 and 92 bytes.
Before each handshake a client sends, in this order, the signature packets I1 to I5 if they are set, then Jc junk packets of random length between Jmin and Jmax. Then come WireGuard's own messages, each with S1 to S4 random bytes in front and a value from H1 to H4 where WireGuard writes 1 to 4. The receiver strips the prefix, checks the value and hands an ordinary WireGuard message to the code underneath.
Junk and signature packets carry nothing and are dropped on arrival, so only the client needs them; the kernel module's README names Jc, Jmin and Jmax as the only values that may differ between the ends. The S and H values must match exactly, or the server sees garbage and stays silent. With S at 0 and H at 1, 2, 3, 4 the packets are plain WireGuard, and the Amnezia documentation calls such a config fully compatible with WireGuard.
Versions 1.0, 1.5 and 2.0, and Legacy
Each version added lines to the file and changed what a server expects, so versions don't mix freely. Amnezia's announcement of 2.0 says outright that earlier versions are not compatible with it and need new config files. In AmneziaVPN 4.8.12.9 and later, the original protocol is listed as “AmneziaWG Legacy”: in the app that word means 1.0, not a separate protocol.
A file shows its version by its lines. Single numbers in Jc to H4 and nothing else is 1.0; I1 without S3 and S4 is 1.5; S3, S4 or a range such as H1 = 471800591-472866103 is 2.0. A program that doesn't know a line fails on it, so an older client usually refuses a newer file as a whole.
1.0
Lines it adds
Jc,Jmin,Jmax,S1,S2,H1–H4What changes on the wireJunk before the handshake, random prefixes on the two handshake messages, four fixed type values
1.5
Lines it adds
I1–I5;J1–J3andItimein its codeWhat changes on the wirePackets of a shape you describe go before the handshake, for example the start of a QUIC exchange
2.0
Lines it adds
S3,S4;H1–H4as ranges; tags<rc>and<rd>What changes on the wirePrefixes on the cookie reply and on every data packet, a new type value from the range in each packet
The config file, line by line
A 2.0 client file is a WireGuard file with more lines in [Interface].
[Interface]
PrivateKey = 9jruMR6MWVJHMYzsesqSZl+QCxcoMHTjKbCGf3LOdEI=
Address = 10.8.0.2/32
DNS = 1.1.1.1
Jc = 5
Jmin = 40
Jmax = 70
S1 = 68
S2 = 149
S3 = 32
S4 = 12
H1 = 471800591-472866103
H2 = 1155063377-1158711024
H3 = 1837620015-1839501922
H4 = 288361223-292030117
I1 = <b 0xc000000001><r 16><t><r 120>
[Peer]
PublicKey = m9kVyq9Eh9cmevNqN9+znTgvQTjT7pI9e9uw5l0ffjI=
Endpoint = 203.0.113.10:47213
AllowedIPs = 0.0.0.0/0, ::/0The keys, the address and the numbers are made up, and the I1 value only shows the syntax. A 1.0 file has the same lines without S3, S4 and I1, and single numbers in H1–H4.
JcWhat it setsHow many junk packets go before each handshake. The kernel module accepts 1 to 128 and suggests 4 to 12.
Same on the server?No
Jmin,JmaxWhat it setsSize range of the junk, in bytes,
Jmaxup to 1280 in the README. Above the path MTU they fragment, which stands out.Same on the server?No
S1,S2What it setsRandom bytes before the initiation (148 bytes) and the response (92). They must not make the two equal:
S1 + 56must differ fromS2.Same on the server?Yes
S3,S4What it sets2.0: random bytes before the cookie reply and before every data packet.
S4takes room from the tunnel MTU.Same on the server?Yes
H1–H4What it setsValues written where WireGuard has types 1 to 4: four different numbers in 1.0, ranges that must not overlap in 2.0.
Same on the server?Yes
I1–I5What it setsDecoys built from tags:
<b 0x…>fixed bytes,<r N>random bytes,<rc N>letters,<rd N>digits,<t>a timestamp. A workingI1copies the start of a real protocol, such as a QUIC Initial.Same on the server?No
Kernel module or amneziawg-go
The protocol has two implementations. amneziawg-go is a fork of wireguard-go that runs as an ordinary program; the AmneziaWG apps for Windows and Apple systems build on it, and on Linux it works without touching the kernel. The amneziawg kernel module does the same work inside the Linux kernel; the Amnezia documentation lists that under high performance.
The module has to be compiled for the kernel it runs on. The Amnezia PPA does that with DKMS and needs the kernel headers and a compiler; a manual build on kernels from 5.6 on needs the full kernel source. On a small VPS this is the slow part of the install, and it happens again after a kernel update.
The tools, awg and awg-quick from amneziawg-tools, work like wg and wg-quick; awg show also prints the obfuscation values.
What a censor sees
- With S and H set: UDP to one port with no fixed type byte and no handshake of 148 or 92 bytes. A rule that matches WireGuard, such as nDPI's, doesn't match it.
- With only Jc, Jmin and Jmax: a burst of random packets, then a plain WireGuard handshake. That helps only against a filter that judges by the very first packet.
- In 1.0 the values repeat within one server: every initiation is 148 + S1 bytes long, and every packet of one kind carries the same four bytes. 2.0 added padding on data packets and a new header value per packet so that this pattern changes.
- Decoys can be checked. RFC 9001 says QUIC Initial packets have no real confidentiality, because their keys are derived from a value in the packet itself. A filter that decrypts an
I1made of a QUIC header and random bytes finds no valid QUIC inside. - What is known about blocking: no research paper has measured AmneziaWG detection so far. The Amnezia documentation itself says 1.5 and 2.0 have become vulnerable to blocking, after widespread blocking in Russia in June and July 2026. The server's address stays visible whatever the version.
Strengths and weaknesses
Strengths
- WireGuard's speed and cryptography without WireGuard's fixed packet values.
- The same .conf file and the same commands, plus a few lines.
- Junk and decoy packets need only the client side.
- Each server has its own S and H values, so one fixed byte rule doesn't catch them all.
Weaknesses
- UDP only: where UDP is cut, it fails just like WireGuard.
- Versions don't mix: a 2.0 server needs a client that knows 2.0 and a new file.
- Plain WireGuard apps and most router firmware can't use its files.
- Linux servers compile a kernel module, slowly on a small VPS and again after kernel updates.
- Its developers say versions 1.5 and 2.0 have become vulnerable to blocking.
Where it works
Programs and servers from our comparison tables that list this protocol.
Clients
- v2RayTun
- INCY
- Throne
- AmneziaVPN
- Shadowrocket
- podkop
Servers and panels
- 3X-UI
- wg-easy
Sources
- Amnezia docs: AmneziaWG
- amneziawg-go README with the 2.0 parameters (v0.2.19)
- amneziawg-go 1.5 source: device/uapi.go
- amneziawg-go: tags and dates
- amneziawg-linux-kernel-module: README
- Amnezia: AmneziaWG 2.0 for self-hosted servers
- Amnezia docs: updating AmneziaWG on a self-hosted server
- RFC 9001: Using TLS to secure QUIC