English
tuic
TUIC v5 over QUIC: the client authenticates with a key derived from its TLS session (UUID and password), then there is a QUIC stream for each TCP connection, and UDP goes as QUIC datagrams or a stream per packet. Compatible with sing-box tuic and the official TUIC v5.
TLS (the tls block) is required on both sides; both sides must set the same ALPN (usually h3). The shared QUIC fields are in quic.md.
Inbound
| Field | Type | Default | Meaning |
|---|---|---|---|
users | list of {name, uuid, password} | — | Users; uuid is required |
congestion_control | cubic, new_reno, bbr | cubic | Congestion control |
auth_timeout | duration | 3s | How long to wait for the client to authenticate |
zero_rtt_handshake | bool | false | Accept 0-RTT (faster, but vulnerable to replay) |
heartbeat | duration | 10s | The heartbeat interval |
Socket settings are the listener block (the server listens on UDP).
Outbound
| Field | Type | Default | Meaning |
|---|---|---|---|
server | host:port | required | The server address |
uuid | string | required | The user's UUID |
password | string | — | The password |
congestion_control | cubic, new_reno, bbr | cubic | Congestion control |
relay | native, quic, stream | native | How UDP goes: native — QUIC datagrams, quic — a stream per packet (reliable, lossless), stream — UDP-over-TCP over a TUIC stream. The sing-box udp_relay_mode, udp_over_stream are an error with a hint |
zero_rtt_handshake | bool | false | 0-RTT handshake |
heartbeat | duration | 10s | The heartbeat interval |
network | tcp, udp or a list | both | What to pass |
Example
yaml
inbounds:
tuic-in:
tuic:
listen: ":8443"
congestion_control: bbr
users:
- name: alice
uuid: b831381d-6324-4d53-ad4f-8cda48b30811
password: secret
tls:
certificate_path: /etc/ours/cert.pem
key_path: /etc/ours/key.pem
alpn: [h3]
outbounds:
tuic-out:
tuic:
server: tuic.example.com:8443
uuid: b831381d-6324-4d53-ad4f-8cda48b30811
password: secret
congestion_control: bbr
tls:
sni: tuic.example.com
alpn: [h3]
relay: native
route:
final:
outbound: tuic-out