Skip to main content

Hysteria2

Hysteria2 is a high-performance proxy based on the QUIC protocol, designed for challenging network environments. It focuses on maximizing throughput and minimizing latency even on congested or high-loss links.

Protocol Standard

Example

# Hysteria2 proxy configuration with optional performance and security settings
ProxyHysteria2 = hysteria2, 1.2.3.4, 443, password=pwd, download-bandwidth=100, port-hopping="1234;5000-6000", port-hopping-interval=30, skip-cert-verify=true, sni=example.com, server-cert-fingerprint-sha256=fac26f65c034829da42d740d23c4a7202475a3834f0ebaecae5f934adbbfd640, salamander-password=Czk7uICJwIqz7GpirV7hhYBq, udp-relay=true

Format

{proxy name} = hysteria2, {server}, {port}, password={password}, download-bandwidth={bandwidth}, port-hopping={hopping}, port-hopping-interval={interval}, skip-cert-verify={skip}, sni={sni}, server-cert-fingerprint-sha256={fingerprint}, salamander-password={salamander}, udp-relay={udp}

Parameters

NameValueMandatoryNote
proxy name-true
server-trueSupports domain and IP formats.
port1 - 65535true
password-trueAuthentication password.
download-bandwidth-falseMaximum download speed in Mbps.
port-hopping-falsePort hopping configuration (e.g., "1234;5000-6000").
port-hopping-interval-falseInterval for port hopping in seconds (e.g., 30).
skip-cert-verifytrue
false
falseDefault value: false. Set to true if the proxy does not have a valid TLS certificate.
sni-falseDefinition is unnecessary if the SNI value matches the host value.
server-cert-fingerprint-sha256-falseSHA-256 fingerprint of the server certificate, hex-encoded (64 characters). Used for certificate pinning. Multiple fingerprints can be comma-separated.
salamander-password-falseEnable Salamander obfuscation mode for Hysteria2.
udp-relaytrue
false
falseDefault value: true. Enable or disable UDP relay.
underlying-proxy-falseUse a proxy or proxy group to connect another proxy (proxy chain). See Common Parameters.