Hysteria2: Chrome parroting sends 1250-byte Initial datagrams, handshake stalls over IPv6 paths with 1280 MTU
Operating system
macOS
System version
MacOS 27.0
Installation type
sing-box for macOS Graphical Client
If you are using a graphical client, please provide the version of the client.
Version 1.14.2 (1)
Version
Description
Description
Since 1.14 (Chrome QUIC parroting enabled by default), hysteria2 outbounds with prefer_ipv6 connect only after a long stall on my home IPv6. The same servers over vless with prefer_ipv6 connect instantly, and hysteria2 with prefer_ipv4 connects instantly. This did not happen before 1.14.
The path. My ISP's IPv6 is limited to 1280 bytes on at least some routes, and ICMPv6 Packet Too Big does not come back:
ping6 -s 1232 <node> # passes (1232 + 48 = 1280 on the wire)
ping6 -s 1233 <node> # lost
ping -D -s 1472 8.8.8.8 # passes, IPv4 has full 15001280 is the IPv6 minimum MTU, so such a path is standards-compliant.
The packets. tcpdump on the client, hysteria2 to a node over IPv6:
UDP, length 1250 # client Initial, twice
UDP, length 1250 # +0.2 s
UDP, length 1250 # +0.4 s
UDP, length 1250 # +0.8 s
UDP, length 1250 # +1.6 s
UDP, length 1250 # +3.2 s
UDP, length 1250 # +6.4 s — ~13 s, no reply at all1250 bytes of UDP payload = 1298 bytes on IPv6, above 1280. After this the client reconnects from a new source port; that attempt got a reply in 36 ms and path MTU discovery later grew packets to 1439 bytes, so my ISP evidently has several routes and at least one of them is 1280. That matches the symptom: sometimes a stall, then it works.
Cause. The docs say parroting replaces initial_packet_size with Chrome's value. quic-go's own default for IPv6 is 1232-byte datagrams — exactly 1280 on the wire — which is why this worked before 1.14.
1232 is the largest UDP payload guaranteed to pass any IPv6 path (the same reason DNS Flag Day 2020 chose it; QUIC's 1200-byte Initial floor exists so Initials fit 1280). Real Chrome can afford 1250 because it races QUIC against TCP and silently falls back. Hysteria2 has no fallback, so the handshake just hangs.
Expected. When parroting over IPv6, keep Initial datagrams at or below 1232 bytes (or let initial_packet_size take effect for IPv6). Path MTU discovery then raises the size on paths that allow it — as the second connection above shows.
Reproduction
Reproduction
Server (any Linux host with IPv6). The certificate must not be Ed25519, since Chrome parroting does not advertise it:
{
"log": { "level": "debug" },
"inbounds": [
{
"type": "hysteria2",
"tag": "hy2-in",
"listen": "::",
"listen_port": 443,
"users": [ { "password": "PASSWORD" } ],
"tls": {
"enabled": true,
"server_name": "example.com",
"alpn": "h3",
"certificate_path": "/path/to/cert.pem",
"key_path": "/path/to/key.pem"
}
}
],
"outbounds": [ { "type": "direct", "tag": "direct" } ]
}Client, with server set to the server's IPv6 address so the connection is forced over IPv6:
{
"log": { "level": "debug" },
"inbounds": [
{ "type": "mixed", "tag": "mixed-in", "listen": "127.0.0.1", "listen_port": 2080 }
],
"outbounds": [
{
"type": "hysteria2",
"tag": "hy2-out",
"server": "2001:db8::1",
"server_port": 443,
"password": "PASSWORD",
"tls": {
"enabled": true,
"server_name": "example.com",
"insecure": true,
"alpn": "h3"
}
}
],
"route": { "final": "hy2-out" }
}Simulate a 1280-MTU path without ICMPv6 feedback on the server:
ip6tables -I INPUT -p udp --dport 443 -m length --length 1281:65535 -j DROPThen on the client:
curl -x socks5h://127.0.0.1:2080 -o /dev/null -w "%{time_total}s\n" https://example.com- default settings: the request hangs;
tcpdump -q 'ip6 and udp port 443'shows only repeatedUDP, length 1250from the client and no reply; "disable_chrome_parrot": truein the outbound: connects immediately with 1232-byte Initials;- without the ip6tables rule: connects immediately in both cases.
Logs
Supporter
- I am a sponsor
Integrity requirements
- I confirm that I have read the documentation, understand the meaning of all the configuration items I wrote, and did not pile up seemingly useful options or default values.
- I confirm that I have provided the server and client configuration files and process that can be reproduced locally, instead of a complicated client configuration file that has been stripped of sensitive data.
- I confirm that I have provided the simplest configuration that can be used to reproduce the error I reported, instead of depending on remote servers, TUN, graphical interface clients, or other closed-source software.
- I confirm that I have provided the complete configuration files and logs, rather than just providing parts I think are useful out of confidence in my own intelligence.
Source: SagerNet/sing-box