Inbounds and Outbounds¶
The standalone wind binary supports four inbound types and four outbound types. This page lists every field, default value, and runtime behavior.
Inbounds (inbounds)¶
Every inbound accepts a unique tag and an optional outbound to pin traffic directly to a declared outbound without consulting the router.
socks / http / mixed¶
All three share the same schema and differ only in accepted client protocols:
type |
Accepted requests |
|---|---|
socks |
First-byte auto-detection for SOCKS4/4a CONNECT, SOCKS5 CONNECT, and SOCKS5 UDP ASSOCIATE |
http |
HTTP/1.1 absolute-URI requests (http://...) and CONNECT tunnels |
mixed |
Single TCP port multiplexing: leading 0x04 → SOCKS4/4a, 0x05 → SOCKS5, otherwise HTTP/1.1 |
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type |
String | Yes | — | socks, http, or mixed |
tag |
String | Yes | — | Inbound identifier for logging and routing context |
listen_addr |
IP:port |
Yes | — | TCP listen socket address (bracket IPv6, e.g. [::1]:1080) |
outbound |
String | No | None | Pin all traffic from this inbound to a declared outbound |
public_addr |
IP |
No | None | BND.ADDR returned for SOCKS5 UDP ASSOCIATE; falls back to listen_addr IP |
auth |
Enum/Object | No | NoAuth |
Authentication configuration (see below) |
skip_auth |
Boolean | No | false |
Skip authentication enforcement |
allow_udp |
Boolean | No | true |
Enable SOCKS5 UDP ASSOCIATE |
Authentication Behavior¶
auth defaults to NoAuth. When password authentication is enabled, HTTP Basic (Proxy-Authorization) and SOCKS5 RFC 1929 share the same credentials, and SOCKS4/4a requests are rejected with status 91 because SOCKS4 has no password authentication method:
- Unauthenticated HTTP requests receive
407 Proxy Authentication Required(Basic realm="Wind"). Plain HTTP forwarding strips hop-by-hop headers includingProxy-Authorization. - SOCKS5
UDP ASSOCIATEpins the client IP from the TCP control connection, drops packets from unauthorized IPs, rejects fragmented packets (FRAG != 0) and packets exceedingmax_packet_size(default 65535 bytes), and tears down the association when the TCP control connection closes.
tunnel¶
Forwards TCP connections or UDP datagrams received on a local socket to a fixed destination.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type |
String | Yes | — | tunnel |
tag |
String | Yes | — | Inbound identifier |
listen_addr |
IP:port |
Yes | — | Local bind address; port 0 requests an OS-assigned ephemeral port |
remote_addr |
target:port |
Yes | — | Domain, IPv4, or bracketed IPv6 with a non-zero port |
network |
String | Yes | — | tcp or udp |
outbound |
String | No | None | Pin to a declared outbound |
timeout |
Duration | No | 60s |
UDP per-source idle timeout (network: udp only); minimum 4ns |
remote_addrdomains are never resolved locally bytunnel; they are passed verbatim to the selected outbound.- UDP tunnels maintain a per-source session table (capped at 4096 entries; new sources are dropped when full; GC runs every
timeout / 4).
Outbounds (outbounds)¶
tuic¶
Relays TCP and UDP traffic over TUIC v5 using the Quinn QUIC backend.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type |
String | Yes | — | tuic |
tag |
String | Yes | — | Outbound tag |
server_addr |
IP:port |
Yes | — | Server socket address |
sni |
String | No | "localhost" |
TLS SNI hostname |
uuid |
UUID | Yes | — | Client authentication UUID |
password |
String | Yes | — | Client authentication password |
zero_rtt_handshake |
Boolean | No | false |
Enable QUIC 0-RTT resumption |
heartbeat_secs |
Integer (s) | No | 10 |
Heartbeat interval (3 consecutive failures trigger reconnect) |
gc_interval_secs |
Integer (s) | No | 20 |
UDP fragment reassembly GC interval |
gc_lifetime_secs |
Integer (s) | No | 20 |
Incomplete UDP fragment group lifetime |
skip_cert_verify |
Boolean | No | false |
Skip TLS server certificate verification |
alpn |
List of strings | No | ["h3"] |
TLS ALPN protocols |
TLS certificate verification
skip_cert_verify defaults to false. Only enable it in controlled self-signed test environments; disabling verification on public networks permits trivial MITM interception.
Standalone wind's tuic outbound uses BBR congestion control, Native UDP relay mode (automatically falling back to unidirectional streams if the peer does not advertise QUIC DATAGRAM support), and default reconnect backoff (immediate first retry, then exponential from 500ms up to 30s). For Quiche, ECH, or custom TLS/transport tuning, integrate wind-tuic directly or use tuic-client.
naive¶
NaïveProxy outbound backed by Chromium Cronet (cronet-rs), supporting HTTP/2 and HTTP/3 (QUIC) CONNECT tunnels plus sing-box UoT v2 UDP relaying.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type |
String | Yes | — | naive |
tag |
String | Yes | — | Outbound tag |
server_address |
host:port |
Yes | — | NaïveProxy server address |
server_name |
String | No | Host of server_address |
TLS SNI override |
username |
String | No | None | HTTP Basic auth username |
password |
String | No | None | HTTP Basic auth password |
concurrency |
Positive int | No | 1 |
Cronet connection pool size |
quic_enabled |
Boolean | No | false |
false for HTTP/2; true for HTTP/3 / QUIC |
quic_congestion_control |
String | No | default |
Active when quic_enabled: true: default, bbr, bbrv2, cubic, or reno |
trusted_root_certificates |
String | No | System roots | Custom CA PEM |
ech_enabled |
Boolean | No | false |
Enable Encrypted Client Hello |
extra_headers |
Map | No | {} |
Additional headers sent on CONNECT requests |
cronet_lib_path |
String | No | Auto-search | Explicit libcronet library or directory path (unneeded in static mode) |
outbounds:
- type: naive
tag: naive-out
server_address: "naive.example.com:443"
username: "alice"
password: "change-this-password"
quic_enabled: true
quic_congestion_control: "bbr"
concurrency: 2
Process-wide Cronet library and UDP support
- The first successfully dynamically loaded
libcronetbecomes the active library for the entire process; restart the process to switch libraries. - UDP traffic is multiplexed over a single
CONNECTtunnel using sing-box UoT v2 (sp.v2.udp-over-tcp.arpa), which requires a UoT v2-capable server (e.g. sing-box'snaiveinbound); stock Chromium NaïveProxy servers only support TCP. - See Transports and Building for search order, static linking, and
SocketPolicy.
socks¶
Connects to an upstream SOCKS5 proxy supporting TCP CONNECT and optional UDP ASSOCIATE.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type |
String | Yes | — | socks |
tag |
String | Yes | — | Outbound tag |
server_addr |
host:port |
Yes | — | SOCKS5 server address (domain, IPv4, or bracketed IPv6 + non-zero port) |
username |
String | No | None | 1–255 bytes; must be paired with password or both omitted |
password |
String | No | None | 1–255 bytes; must be paired with username or both omitted |
allow_udp |
Boolean | No | false |
Enable SOCKS5 UDP ASSOCIATE |
udp |
Object | No | See below | UDP session and reconnect options |
udp sub-fields:
| Field | Type | Default | Description |
|---|---|---|---|
timeout |
Duration | 8s |
Handshake timeout for establishing a SOCKS5 UDP association (must be positive) |
buffer_size |
Integer | 2048 |
Bounded allocation hint (does not truncate complete datagrams) |
reconnect |
Boolean | false |
Re-establish UDP association automatically after control connection loss |
initial_backoff |
Duration | 500ms |
Initial reconnect delay when reconnect: true (must be positive) |
max_backoff |
Duration | 30s |
Exponential backoff cap when reconnect: true (must be positive) |
- When
allow_udpisfalse, UDP requests fail explicitly rather than falling back to direct connections. - UDP target domains are resolved by the SOCKS5 server; only replies from the negotiated UDP relay are accepted, and fragmented or malformed datagrams are discarded.
load-balance¶
Distributes connections across multiple child outbounds (including nested load-balance groups) with optional periodic HTTP health checks.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type |
String | Yes | — | load-balance |
tag |
String | Yes | — | Outbound tag |
proxies |
List of strings | No (must be non-empty in practice) | [] |
Child outbound tags (forward references allowed) |
strategy |
String | No | consistent-hashing |
Selection strategy (case-insensitive), see below |
url |
String | No | https://www.gstatic.com/generate_204 |
Health-check probe URL |
interval |
Integer (s) | No | 300 |
Probe interval |
lazy |
Boolean | No | false |
When true, disables periodic probes and treats all children as healthy |
Strategies¶
| Strategy | Aliases | Behavior |
|---|---|---|
consistent-hashing |
consistent_hashing, ch |
64 virtual nodes per child on a Verus-verified hash ring; failing one child only re-routes targets previously assigned to it |
round-robin |
round_robin, rr |
Cycles across currently healthy children |
sticky-sessions |
sticky_sessions, ss |
Retains a per-target child mapping for up to 10 minutes while that child stays healthy |
If every child is marked unhealthy, routing falls back to the full child list so traffic is not completely black-holed.
outbounds:
- type: load-balance
tag: edge-pool
proxies: [tuic-a, naive-b]
strategy: consistent-hashing
url: "https://www.gstatic.com/generate_204"
interval: 120
lazy: false
- type: tuic
tag: tuic-a
server_addr: "203.0.113.10:8443"
sni: "a.example.com"
uuid: "00000000-0000-4000-8000-000000000001"
password: "change-this-password"
- type: naive
tag: naive-b
server_address: "b.example.com:443"
username: "alice"
password: "change-this-password"