Hysteria2 vs AmneziaWG: what differs and which one to choose

Both run over UDP, but they are different kinds of tool: Hysteria2 is a proxy on QUIC that looks like HTTP/3, and AmneziaWG is WireGuard with changed headers and junk packets, a full VPN tunnel with WireGuard's keys and cipher. On lossy mobile lines Hysteria2 usually keeps more of its speed, because it resends lost data itself at a steady rate. For a tunnel of the whole device, a router or a server without a certificate AmneziaWG is simpler, and where UDP is closed neither of them works.

Updated

WireGuard config: server and clients with QR, AmneziaWG up to 3.1, keys

Both in one list. A hysteria2:// link and an AmneziaWG .conf file both go into Profiles → Add, and both connect on Windows, macOS, Linux and Android.

Download Veli for free
On this page

Side by side

  • Transport

    Hysteria2QUIC over UDP, port 443 by default

    AmneziaWGUDP, on a port you choose

  • Disguise

    Hysteria2Looks like HTTP/3; Salamander turns every packet into random bytes

    AmneziaWGWireGuard with other packet types, padding and junk; signature packets can imitate QUIC or DNS

  • What a censor sees

    Hysteria2A QUIC handshake with a readable server name; a stranger gets 404 or a website

    AmneziaWGUDP with no fixed WireGuard pattern; a stranger gets no answer

  • Speed on lossy links

    Hysteria2Lost data is resent inside QUIC, at a set rate (Brutal) or with BBR

    AmneziaWGAs WireGuard: a lost packet is lost for the app's TCP, which slows down

  • Setup

    Hysteria2A certificate (a domain, or self-signed and pinned), a password, one YAML file

    AmneziaWGKeys and a .conf file, a kernel module or amneziawg-go; disguise values equal on both ends

  • Clients

    Hysteria2Hysteria's own program, sing-box, mihomo, Xray and apps built on them

    AmneziaWGAmneziaVPN, the AmneziaWG apps, mihomo; WireGuard's own tools reject the extra keys

Two different kinds of tool

AmneziaWG is a VPN tunnel. Like WireGuard, it takes whole IP packets from a virtual network adapter, encrypts them and sends them over UDP, so every program on the device, games and calls included, goes through it without knowing. The cryptography is WireGuard's and stays unchanged: the Noise_IK handshake, Curve25519, ChaCha20-Poly1305. Only the look of the packets changes, and with the disguise values set to zero the file is plain WireGuard again.

Hysteria2 is a proxy. The client opens a QUIC connection and logs in with an HTTP/3 request: POST /auth with the password in the Hysteria-Auth header, and the reply 233 HyOK means success. After that every TCP connection travels in its own QUIC stream, and UDP packets go as QUIC datagrams. To take in all the traffic of a device, the client app puts a virtual adapter (TUN) in front of it, as Hysteria's own program and apps on sing-box, mihomo or Xray do.

  • Jc, Jmin, Jmax (AmneziaWG): how many junk packets go out before each handshake and in what size range; usually set on the client only.
  • S1 to S4: random bytes added to the handshake, the reply, the cookie message and the data packets.
  • H1 to H4: your own values, or ranges, instead of WireGuard's packet types 1 to 4.
  • I1 to I5: signature packets sent before the handshake, built from fixed and random bytes, for example in the shape of QUIC or DNS.
  • 3.x keys: HeaderProtectionKey encrypts header fields that would otherwise stay predictable, and 3.1 adds RandomTrailers and DisableCookies. A client has to know every key in the file.

On a line that loses packets

Here the two differ the most. AmneziaWG, like WireGuard, never resends anything: a packet lost on the radio link is simply gone, and the TCP of the program inside the tunnel notices the gap, asks for it again end to end and lowers its rate, exactly as it would without a VPN. On a clean line this costs nothing, and on Linux AmneziaWG runs as a kernel module, like WireGuard.

Hysteria2 ends each connection at the client and at the server, and the lossy stretch between them is handled by QUIC. If the client sets its line speed in bandwidth, Hysteria2 runs in Brutal mode: it sends at that rate and makes up for lost packets instead of backing off. Without a speed it uses BBR, which estimates the bandwidth of the line rather than treating every loss as congestion. That is why on mobile data, crowded Wi-Fi and long routes Hysteria2 usually holds on to more of its speed.

  • An honest speed or none. The Hysteria docs warn that a bandwidth above what the line carries backfires: congestion and an unstable connection, for you and your neighbours on the network.
  • AmneziaWG's extra bytes are few: junk only before handshakes, padding from S4 on data packets. The tunnel's MTU has to leave room for that padding.
  • Measure on your own network. Put both on one server and test them in the same place at the same time: numbers from other networks don't carry over.

What a censor sees

Hysteria2 without obfuscation is QUIC, and the first QUIC packet is protected with keys that anyone can derive from its own header (RFC 9001), so a filter on the path can read the server name in it. China's Great Firewall has blocked QUIC connections by that name since 7 April 2024, as Zohaib and colleagues showed at USENIX Security 2025. In the same paper, Hysteria 2.6.2 (June 2025) is listed among the tools that moved to a quic-go version splitting the name across several frames, which that filter did not put back together at the time. Since version 2.11 the official client also shapes its handshake like Chrome's.

With obfs set to salamander, every packet is mixed with a BLAKE2b-256 hash of the obfuscation password and a random 8-byte salt, so it no longer looks like QUIC at all. The price: the server can't pass for an HTTP/3 site any more. A stranger who connects without the password to an ordinary Hysteria2 server gets 404 Not Found, or a real website or a text if masquerade is set.

AmneziaWG removes WireGuard's tell-tale marks: the packet type in the first byte with three zero bytes after it, and handshakes of exactly 148 and 92 bytes. Its developers describe each version as a step against detection: 1.5 could dress traffic as QUIC or DNS, 2.0 changes headers and sizes during the connection, 3.1 varies sizes, order and timing against statistical analysis. We found no independent published measurement of how filters treat AmneziaWG. One thing known about random-looking traffic in general: the filter for fully encrypted traffic that China started in November 2021 was limited to TCP and ignored random UDP payloads (Wu and colleagues, USENIX Security 2023).

For both, the server's IP address is visible. If the address itself is blocked, no disguise helps, only another server.

When to pick which

  • Mobile data, crowded Wi-Fi, a server far away: Hysteria2.
  • A router or a whole home network: AmneziaWG, if the firmware has it. Amnezia has guides for Keenetic and OpenWrt, and the config is a familiar .conf file.
  • No domain and no wish to deal with certificates: AmneziaWG. Hysteria2 needs a certificate, from ACME for a domain or self-signed and pinned in the link with pinSHA256.
  • QUIC is blocked by name or by look: AmneziaWG, or Hysteria2 with Salamander.
  • One UDP flow slows down after a while: Hysteria2 with port hopping, which moves to another port every 30 seconds by default.
  • UDP is closed: neither; take a TCP protocol such as VLESS with Reality. Hysteria 2.12 added Mimic, which dresses UDP as TCP, but it needs Linux with root on both ends and can't be combined with port hopping.
  • Unsure: keep a profile of each on one server. They use different UDP ports and don't get in each other's way.

Sources

How we write and check

In Veli

Both in one list

A hysteria2:// link and an AmneziaWG .conf file both go into Profiles → Add, and both connect on Windows, macOS, Linux and Android. On a computer, rules by app and by site in Apps and sites work on the Hysteria2 profile; the AmneziaWG profile takes rules by IP address only.

For a server of your own, Profiles → Add → “Your own server” installs AmneziaWG or WireGuard on your VPS over SSH. Hysteria2 the app doesn't install: set it up with the official script and add its link. The kill switch is off by default; turn it on on Home or in Settings → Security if nothing should go past the tunnel when it drops.

FAQ

Is Hysteria2 faster than AmneziaWG?

On lines that lose packets, usually yes: it resends lost data inside QUIC and doesn't slow down like TCP. On a clean line the difference is small. Measure both on your own network.

Is AmneziaWG a VPN or a proxy?

A VPN tunnel: like WireGuard, it carries the IP packets of the whole device. Hysteria2 is a proxy, and a client app turns it into a VPN with a virtual adapter.

Do Hysteria2 and AmneziaWG work over TCP?

No, both use UDP only. Hysteria2 can fake TCP with Mimic, but only with Linux on both ends; otherwise a network that passes only TCP needs a TCP protocol.

Which is harder to detect, Hysteria2 or AmneziaWG?

No study compares them directly. Hysteria2 looks like HTTP/3 but shows its server name in the first packet unless Salamander is on; AmneziaWG has no fixed pattern but looks like no common protocol unless its signature packets imitate one.

Can Hysteria2 and AmneziaWG run on one server?

Yes. Both use UDP, so they only need different ports, for example 443 for Hysteria2 and another port for AmneziaWG.

Does Hysteria2 need a domain?

Not strictly. With a self-signed certificate the client pins its SHA-256 fingerprint; with a domain the server gets a real certificate by ACME by itself.

Hysteria2 and AmneziaWG in one list

Veli is a free client for Windows, macOS, Linux and Android: a hysteria2:// link and an AmneziaWG .conf file go into Profiles side by side.