AmneziaWG: what it is and how versions 1.5 and 2.0 differ

AmneziaWG is a VPN protocol from the Amnezia project: a fork of WireGuard that keeps its keys, handshake and ChaCha20-Poly1305 encryption and changes only how the packets look on the wire. It adds junk packets before the handshake, random bytes in front of messages and its own values in place of WireGuard's type field, all set by extra lines in the same kind of .conf file. Both ends must agree on most of those lines, so a config belongs to its server and to the AmneziaWG version it was made for.

Updated

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. 1.0, 2023

    Junk, padding, own type values

    Jc, Jmin and Jmax send junk before the handshake, S1 and S2 put random bytes in front of the two handshake messages, H1–H4 replace the four type values. amneziawg-go appears in September 2023.

  2. 1.5, 2025

    Signature packets

    I1–I5 describe 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 had J1–J3 and Itime. Beta tags in amneziawg-go date from July 2025.

  3. 2.0, 2025

    Padding on every packet, header ranges

    S3 and S4 pad the cookie reply and every data packet, and H1–H4 become ranges with a new value per packet. J1–J3 and Itime are gone. The code landed in amneziawg-go on 1 September 2025.

  4. 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 addsJc, Jmin, Jmax, S1, S2, H1–H4

    What changes on the wireJunk before the handshake, random prefixes on the two handshake messages, four fixed type values

  • 1.5

    Lines it addsI1–I5; J1–J3 and Itime in its code

    What 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 addsS3, S4; H1–H4 as 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].

client.conf
[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, ::/0

The 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.

  • Jc

    What 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, Jmax

    What it setsSize range of the junk, in bytes, Jmax up to 1280 in the README. Above the path MTU they fragment, which stands out.

    Same on the server?No

  • S1, S2

    What it setsRandom bytes before the initiation (148 bytes) and the response (92). They must not make the two equal: S1 + 56 must differ from S2.

    Same on the server?Yes

  • S3, S4

    What it sets2.0: random bytes before the cookie reply and before every data packet. S4 takes room from the tunnel MTU.

    Same on the server?Yes

  • H1–H4

    What 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–I5

    What it setsDecoys built from tags: <b 0x…> fixed bytes, <r N> random bytes, <rc N> letters, <rd N> digits, <t> a timestamp. A working I1 copies 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 I1 made 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

Compare these programs

Sources

How we write and check

In Veli

AmneziaWG in Veli

Veli connects AmneziaWG .conf files on Windows, macOS, Linux and Android: Profiles → Add → “Open a file”, and the app tells WireGuard and AmneziaWG apart by the lines inside. It reads AmneziaWG 1.x and 2.0 files: Jc to H4, I1–I5, and 2.0's S3, S4 and header ranges. On a computer the “Apps and sites” rules work by IP address only; on Android, choosing which apps use the VPN works with any protocol.

“Own server” installs AmneziaWG on your VPS over SSH. It builds a kernel module on the server: with 1 GB of memory and no swap that takes 5–10 minutes. Where the server's AmneziaWG accepts 2.0 values, the app writes 2.0 configs. WireGuard and AmneziaWG share one place on a server, so installing one replaces the other.

Questions

Is AmneziaWG a VPN?

Yes, a VPN protocol: like WireGuard, it carries all of a device's IP traffic through a tunnel adapter rather than proxying separate apps.

What is AmneziaWG 2.0?

The 2025 version that pads every packet type (S3, S4) and draws header values from ranges, a new one per packet. It doesn't accept 1.0 files: the server and the configs are set up anew.

What does AmneziaWG Legacy mean?

In AmneziaVPN 4.8.12.9 and later it is the name of the original AmneziaWG 1.0, kept for servers that already run it.

Can the WireGuard app open an AmneziaWG config?

No. It doesn't know the extra lines, and if the server uses S and H values a plain handshake doesn't match them. You need an AmneziaWG client.

Is AmneziaWG faster or slower than WireGuard?

About the same: the encryption is identical. Junk packets go out only around handshakes; in 2.0 every data packet also grows by S4 bytes.

AmneziaWG or VLESS?

AmneziaWG is a UDP tunnel that resembles no known protocol; VLESS with Reality is a TCP proxy that looks like a visit to a real HTTPS site. Where UDP is cut, AmneziaWG can't connect at all, and VLESS over TCP can.