Hysteria2 Outbound (type: hysteria2)¶
- Feature: Built-in (all platforms).
- UDP: Negotiated from the server's
Hysteria-UDPauth header (defaults totruebefore connection). connect-via: Not part of thehysteria2config schema.
Fields¶
| Key | Alias | Type | Required | Default | Description |
|---|---|---|---|---|---|
name |
— | string |
Yes | — | Unique proxy name. |
server |
— | string |
Yes | — | Server hostname or IP. |
port |
— | u16 |
Yes | — | Primary UDP port. |
password |
— | string |
Yes | — | Hysteria2 authentication password. |
skip-cert-verify |
— | bool |
Yes | None | Must be explicitly set (true or false) in YAML because the schema has no default for this field. |
ports |
— | string |
No | None |
Port hopping ranges/list (e.g. "20000-30000,40000"). |
hop-interval |
hop_interval |
u64 (seconds) |
No | 30 |
Port hopping interval. |
obfs |
— | "salamander" |
No | None |
Obfuscation type. When set, obfs-password is required. |
obfs-password |
— | string |
When obfs set |
None |
Salamander obfuscation password. |
sni |
— | string |
No | server |
TLS SNI. |
alpn |
— | list[string] |
No | ["h3"] |
TLS ALPN protocols. |
fingerprint |
— | string |
No | None |
Server certificate SHA-256 hex fingerprint pinning. |
udp-mtu |
— | u32 |
No | None |
Custom UDP MTU. |
disable-mtu-discovery |
— | bool |
No | false |
Disable QUIC PMTU discovery. |
tls-cert, tls-key |
— | string |
No | None |
Paired mTLS client certificate and private key. |
Parsed-only Hysteria2 fields
ca (logs a warning), ca-str, up, down, and cwnd are accepted in YAML for compatibility with external profiles, but are currently unused at runtime.