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.S1toS4: random bytes added to the handshake, the reply, the cookie message and the data packets.H1toH4: your own values, or ranges, instead of WireGuard's packet types 1 to 4.I1toI5: signature packets sent before the handshake, built from fixed and random bytes, for example in the shape of QUIC or DNS.- 3.x keys:
HeaderProtectionKeyencrypts header fields that would otherwise stay predictable, and 3.1 addsRandomTrailersandDisableCookies. 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
bandwidthabove 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
S4on 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
- Hysteria 2 protocol specification
- Hysteria 2 docs: full client config
- amneziawg-go: README
- Amnezia docs: AmneziaWG
- WireGuard: protocol and cryptography
- RFC 9001: Using TLS to secure QUIC
- Zohaib et al.: SNI-based QUIC censorship of the GFW (USENIX Security 2025)
- Wu et al.: How the GFW detects fully encrypted traffic (USENIX Security 2023)