Docs Config TUIC

TUIC

Another QUIC-based protocol focused on low-latency connection setup (with 0-RTT support), available in two versions: v4 (token authentication) and v5 (uuid + password authentication).

Example Config

config.yaml YAML
proxies:
  - name: tuic
    server: www.example.com
    port: 10443
    type: tuic
    uuid: 00000000-0000-0000-0000-000000000001
    password: PASSWORD_1
    disable-sni: true
    reduce-rtt: true
    request-timeout: 8000
    udp-relay-mode: native

Field Reference

tokenRequired for V4

The TUIC V4 user identifier; don't include this field when using V5.

uuid / passwordRequired for V5

The unique user ID and password for TUIC V5; don't include these two fields when using V4.

ipOptional

Overrides the DNS resolution result for server, specifying which IP to actually connect to.

disable-sniOptional

Whether to disable the SNI extension during the TLS handshake.

reduce-rttOptional

Enables QUIC 0-RTT handshake, shortening connection setup time, but with some risk of replay attacks.

udp-relay-modeOptional

The UDP packet relay mode โ€” choose native/quic.

congestion-controllerOptional

The congestion control algorithm โ€” choose cubic/new_reno/bbr.

fast-open / max-open-streamsOptional

fast-open can further reduce connection setup time; max-open-streams limits the maximum number of concurrent streams โ€” setting it too high may hurt performance.