Docs Config Hysteria2

Hysteria2

A high-speed QUIC-based proxy protocol with built-in congestion control and port hopping — it generally performs better than traditional TCP-based protocols on poor or high-latency connections.

Example Config

config.yaml YAML
proxies:
  - name: "hysteria2"
    type: hysteria2
    server: server.com
    port: 443
    ports: 443-8443
    hop-interval: 30
    password: yourpassword
    up: "30 Mbps"
    down: "200 Mbps"
    obfs: salamander
    obfs-password: yourpassword
    sni: server.com
    alpn:
      - h3

Field Reference

passwordRequired

The authentication password.

portsOptional

Enables port hopping when set, ignoring port. Uses the same format as port ranges.

hop-intervalOptional

How often to hop ports, in seconds (default 30). Also supports a range like "15-30", picking a random value each time (only a single range is allowed, not a comma-separated list).

up / downOptional

The upper/lower rate limits for Brutal congestion control. Defaults to Mbps if no unit is given — setting these accurately based on your actual bandwidth gives better results.

obfs / obfs-passwordOptional

QUIC traffic obfuscator — choose salamander or gecko, or leave blank to disable it. gecko additionally supports obfs-min-packet-size/obfs-max-packet-size to control the packet size range.

bbr-profileOptional

The BBR congestion control profile — choose standard/conservative/aggressive, defaults to standard.