Skip to content
Edit this page

Naive Outbound (type: naive)

Powered by Wind + Chromium Cronet, supporting HTTP/2 and QUIC transports with optional UDP over TCP (UoT v2).

  • Feature: naive (not enabled in default or standard builds). To compile with a prebuilt static Cronet binary on supported platforms:
cargo build --locked --release -p clash-rs --features naive-static,naive-download

Fields

Key Type Required Default Description
name, server, port Common Yes (port > 0) — Standard outbound options (bracketed IPv6 literals like [::1] are accepted). Setting connect-via / dialer-proxy fails with InvalidConfig.
username string Yes — Non-empty username; must not contain :.
password string Yes — Non-empty password.
quic bool No false false uses HTTP/2; true uses QUIC.
udp bool No false Enable UDP over TCP (UoT v2) if supported by the server.
concurrency u32 No 1 Connection pool concurrency (must be > 0).
congestion-controller "default" | "bbr" | "bbrv2" | "cubic" | "reno" No "default" Congestion controller.
request-timeout u64 (ms) No 10000 Request timeout (must be > 0).
ca-cert string No None Custom root/server PEM certificate (file path or inline PEM; inline PEM only inside proxy-providers).
cronet-lib-path string No None Path or library name of a shared libcronet (for dynamic builds). Main config only (rejected in proxy-providers and --service-mode). All Naive proxies share the first library loaded in the process; restart ClashRS to change it.
skip-cert-verify bool No false Setting true is rejected with an error. Trust self-signed certificates via ca-cert instead.
sni string No None If set, must match server case-insensitively or config validation fails.

Operational Notes

  • With TUN active, Naive supports outbound interface selection on Linux, macOS, and Windows, and routing-mark on Linux (Android ignores both).
  • If the proxy hostname cannot be resolved, configure dns.proxy-server-nameserver or add it to dns.fake-ip-filter.
  • When a config reload or provider update replaces a Naive proxy, existing TCP/UDP sessions close once the old proxy instance is released.

Example

proxies:
  - name: naive-h2
    type: naive
    server: naive.example.com
    port: 443
    username: "your-username"
    password: "your-password"
    quic: false
    udp: true
    concurrency: 2