Hysteria2 protocol: how it works, Brutal, Salamander and the hy2:// link

Hysteria2 is a proxy protocol on QUIC, the UDP transport of HTTP/3: the client logs in with an HTTP/3 request, and to anyone without the password the server looks like a web server. It is built for lines that lose packets, with its own congestion control, Brutal, that holds a set rate instead of backing off. Links start with hysteria2:// or hy2://, and where a network closes UDP it does not connect.

Updated

On this page

Facts

What it is

Proxy protocol; a client app turns it into a VPN

Since, by

2023 (2.0.0), Hysteria project; Hysteria 1 since 2020

Transport

QUIC over UDP: TCP in streams, UDP in datagrams

Encryption

TLS 1.3 inside QUIC; optional Salamander or Gecko

To the network it looks like

HTTP/3 to port 443; random UDP with Salamander

Usual port

UDP 443 by default; port ranges for hopping

Comes as

hysteria2:// or hy2:// link; YAML config

License

MIT (official client and server)

Latest release

hysteria v2.14.0, November 15, 2026

In Veli

Windows, macOS, Linux, Android · link

Own server from the app

No

Versions and history

  1. 2020

    Hysteria 1: its own protocol on QUIC

    First release 0.1.0 in April 2020, 1.0 in February 2022 with protocol version 3: a hello with speeds and an auth string, XPLUS obfuscation, hysteria:// links.

  2. 2023

    Hysteria 2.0: a new protocol

    September 2023, a near rewrite: login over HTTP/3, a website for strangers, Salamander. Not compatible with 1.x, whose last release was 1.3.5 in June 2023.

  3. 2025

    2.6.2: the ClientHello split across packets

    In June 2025, after the Great Firewall began blocking QUIC by server name, Hysteria moved to quic-go v0.52.0, which splits the first handshake packet so the name is not in one datagram.

  4. Spring 2026

    2.8 and 2.9: Reno, port ranges, Realms

    2.8 (March) added Reno and BBR profiles, port ranges right in the server's listen on Linux and random hop intervals. 2.9 (May) brought Realms for servers behind NAT, and 2.9.2 the experimental Gecko obfuscation.

  5. Summer 2026

    2.10 to 2.12: ECH, Chrome's fingerprint, Mimic

    2.10 (July) added Encrypted Client Hello, 2.11 made the client copy Chrome's QUIC handshake by default, and 2.12 (August) integrated Mimic, which dresses the UDP up as TCP on Linux.

How Hysteria2 works

Hysteria2 runs on QUIC, the transport of HTTP/3: TLS 1.3 is built in, one connection carries many streams, and a lost packet holds up only its own stream. On top of it the protocol adds a login, its own congestion control and optional obfuscation.

Login. After the QUIC handshake the client sends an HTTP/3 request, POST /auth, with the password in the Hysteria-Auth header and its receive speed in Hysteria-CC-RX (0 if unknown). The right answer is the unusual status 233 HyOK; to any other answer the client disconnects.

A stranger sees a website. The spec forbids the server to give itself away. Without the password it answers as a web server: with masquerade it serves files from a folder, passes the request on to another site or returns a fixed text, and without it answers 404 Not Found to everything. That is why a wrong password shows up in the client's log as a status code:

Terminal
authentication error, HTTP status code: 404

Traffic. Each TCP connection gets its own QUIC stream that opens with the code 0x401, the address and random padding. UDP packets travel in QUIC datagrams with a session ID, split into fragments when too big, so games and calls go as UDP.

Speed control: Brutal, BBR and Reno

This is what Hysteria is known for. Which controller sends the data depends on whether the client sets a speed in bandwidth.

  • Brutal

    When it worksThe client sets bandwidth, and the server doesn't ignore it

    How it behavesSends at the set rate and makes up for lost packets instead of slowing down

  • BBR

    When it worksNo speed is set; the default

    How it behavesGoogle's BBR v1: measures the line and adapts; profiles standard, conservative and aggressive since 2.8

  • Reno

    When it worksChosen in congestion by hand, since 2.8

    How it behavesThe classic New Reno, yields to other traffic

  • Set the real speed or none. A rate above what the line carries makes losses and delays worse for you and for everyone on that network.
  • Server limits apply to Brutal only. The server's bandwidth caps each client; with ignoreClientBandwidth it disregards the client's numbers, and both sides use BBR or Reno. Since 2.10 bandwidth.disableLossCompensation makes Brutal send exactly the set rate.
  • Not in the link. The official link format leaves speeds out on purpose: they belong to the user, not to the server.

Hysteria 1 and Hysteria2: what changed

Version 2.0.0 is a near rewrite, and the two don't talk to each other: client and server must run the same major version. The docs say version 2 kept almost all features of 1.x except FakeTCP.

  • Login

    Hysteria 1 (protocol v3)Its own hello with speeds and an auth string; the server answered every client with its own hello

    Hysteria2An HTTP/3 request; without the password the server looks like a website

  • Speeds

    Hysteria 1 (protocol v3)upmbps and downmbps required in the link

    Hysteria2Optional; without them BBR

  • Obfuscation

    Hysteria 1 (protocol v3)XPLUS: SHA-256 of the password and a 16-byte salt

    Hysteria2Salamander: BLAKE2b-256 and an 8-byte salt; Gecko since 2.9.2

  • Modes

    Hysteria 1 (protocol v3)udp, wechat-video, faketcp (Linux)

    Hysteria2UDP; since 2.12 Mimic disguises it as TCP on Linux

  • Link

    Hysteria 1 (protocol v3)hysteria://

    Hysteria2hysteria2:// or hy2://

The hysteria2:// link, field by field

Example
hysteria2://p4ssw0rd@vpn.example.com:443,20000-30000/?sni=vpn.example.com&obfs=salamander&obfs-password=s3cret#Server-1
  • p4ssw0rd: the password, percent-encoded if it has special characters. For a server with named users it is name:password.
  • 443,20000-30000: the port and the ports to hop over, with commas and ranges. Without a port it is 443. The official client moves to another port every 30 seconds by default.
  • sni: the name for TLS, the domain on the server's certificate.
  • insecure=1: don't check the certificate. Alone it lets anyone on the path put their own server in place of yours.
  • pinSHA256: the SHA-256 fingerprint of the server's certificate. Together with insecure=1 this is the safe way to use a self-signed one.
  • obfs and obfs-password: salamander or gecko, and its own password, the same as on the server.
  • ech: the ECH config list in base64, since 2.10; it must match the server.
  • Not in the official format: mport, where v2rayN writes the hopping range, and Gecko's minPacketSize and maxPacketSize. Other clients may ignore them.
  • hysteria2+realm://: a rendezvous service for a server behind NAT (Realms, since 2.9) instead of the server itself.

What a censor sees

By default the traffic is QUIC to UDP port 443, like HTTP/3, and since 2.11 the client's handshake copies Chrome's. But the first QUIC packet, the Initial, is encrypted with keys anyone can derive, so a filter on the path can read the server name (SNI) in it. Everything after the handshake is encrypted.

China. Zohaib et al. (USENIX Security 2025) found that from 7 April 2024 the Great Firewall decrypts QUIC Initial packets and, if the name is on its QUIC blocklist, drops the client's UDP to that server and port for 180 seconds. It inspects only the first datagram of a flow and doesn't reassemble an Initial split across datagrams, which is why Hysteria and other QUIC clients now split it. Per the paper, Hysteria's project domain and domains of people's own Hysteria servers were blocked.

Russia. Heitmann et al. (FOCI 2026) describe a complete block of international QUIC in 2022, then TSPU devices switching to blocking QUIC by server name between May 2022 and July 2023.

UDP itself. The port hopping docs say users in China report ISPs blocking or throttling long UDP connections, often on one port only, which is what hopping is for. Where a network drops all UDP, Hysteria2 doesn't connect, unless both ends run Linux with Mimic.

Salamander and Gecko leave no QUIC structure in the packets, so there is no Initial to decrypt and no name to read, but the server can no longer pass for an HTTP/3 site. How filters treat such random-looking UDP has not been measured in published research we know of.

Strengths and weaknesses

Strengths

  • Holds speed on lossy lines: streams don't wait for each other, Brutal keeps a set rate
  • Without the password the server answers as a web server
  • UDP travels as UDP, in QUIC datagrams, which suits games and calls
  • Port hopping, Salamander, Gecko and ECH are built into the official client and server
  • The official server can get a real certificate for its domain by itself (ACME)

Weaknesses

  • UDP only: no connection where a network closes UDP, and not through a CDN
  • The server name is readable in the QUIC Initial, and filters in China and Russia block QUIC by name
  • A Brutal speed set above what the line carries floods it for everyone on that network
  • With Salamander the server no longer looks like a website
  • New features (Realms, Gecko, ECH) reach other clients late

Where it works

Programs and servers from our comparison tables that list this protocol.

Clients

  • Happ
  • Hiddify
  • INCY
  • Karing
  • v2rayNG
  • v2rayN
  • NekoBox for Android
  • NekoRay
  • Throne
  • V2Box
  • Clash Verge Rev
  • Clash Party
  • FlClash
  • Shadowrocket
  • Stash
  • mihomo
  • sing-box
  • podkop
  • PassWall
  • PassWall 2
  • OpenClash

Servers and panels

  • 3X-UI
  • Remnawave
  • S-UI
  • Hiddify Manager

Compare these programs

Sources

How we write and check

In Veli

Hysteria2 in Veli

Veli opens hysteria2:// and hy2:// links, and subscriptions with them, on Windows, macOS, Linux and Android. Paste the link whole into Profiles → Add: the port range, written in the address or as mport, and the Salamander password come with it.

For a server with its own self-signed certificate, write both pinSHA256 and insecure=1 in the link: on Android Veli checks the fingerprint and won't connect without one, on a computer it doesn't check it yet. Veli doesn't install Hysteria2 on your own server: it is set up by hand and added by its link.

Questions

What is the difference between Hysteria and Hysteria2?

Hysteria2 is a rewrite from 2023 with a new protocol: login over HTTP/3, a website for strangers, Salamander instead of XPLUS. The two are not compatible, and links differ: hysteria:// is the old one, hysteria2:// and hy2:// the new.

Is Hysteria2 TCP or UDP?

UDP only, since it runs on QUIC. Inside it carries both TCP connections and UDP packets.

Can Hysteria2 be detected or blocked?

Yes. A network can drop UDP, and filters that read the server name in QUIC Initial packets block by name, as China has done since April 2024 and Russia since 2022 or 2023. Salamander removes the QUIC structure, but no published study shows how filters treat it.

What is hy2?

The short name of Hysteria2. hy2:// and hysteria2:// links are the same thing.

Hysteria2 or VLESS?

VLESS usually runs over TCP with TLS or Reality and passes where UDP is closed; Hysteria2 runs over UDP and holds speed on lossy lines. Many people keep one profile of each.