Getting Started¶
This page walks through building the standalone wind binary from source, generating an initial configuration, starting a local proxy, and verifying traffic forwarding. See CLI and Configuration and Inbounds and Outbounds for the complete reference.
Prerequisites¶
- Rust toolchain: Rust 1.85 or later (the workspace uses Rust Edition 2024).
- Git: Cargo fetches pinned Git dependencies including
quinn,quinn-congestions, andrust-proxy/quiche. - Optional dependencies:
- The
naiveoutbound dynamically loads Chromiumlibcronetat runtime by default, or can use build-time prebuilt downloads / static linking; see Transports and Building. - Enabling the
quichebackend in library builds requires a target C/C++ toolchain, CMake, andlibclang(plus NASM on Windows). The standalonewindbinary useswind-tuic'squinnbackend and does not require BoringSSL.
Building wind¶
If you plan to use the naive outbound and want Cargo to fetch a SHA-256-verified prebuilt libcronet, opt into download or static download features:
# Dynamic loading: fetch a prebuilt shared library into OUT_DIR at build time
cargo build --locked --release -p wind --features download
# Static linking: fetch and embed the Cronet archive (no runtime shared library needed)
cargo build --locked --release -p wind --features naive-static,naive-download
The built executable is placed at target/release/wind (target\release\wind.exe on Windows).
Initializing a Configuration¶
Run the init subcommand to generate a starter configuration in YAML (default) or TOML:
Combine with -C / --config-dir to write directly into a target directory (created if missing):
Replace sample credentials
wind init writes placeholder addresses, UUID, and password for structural reference only. Replace them with real server details and credentials before deployment.
Minimal Configuration Example¶
The following configuration exposes a mixed listener accepting HTTP and SOCKS4/4a/5 on the same TCP port and forwards traffic through a TUIC outbound:
- In standalone
wind,tuic.server_addrmust be anIP:portsocket address. TLS certificate verification is enabled by default (skip_cert_verify = false) againstsni. - The first declared outbound acts as the default route target.
Running and Verifying¶
# Load an explicit configuration file
wind -c ./config.yaml
# Or load config.toml / config.yaml from a directory
wind -C /etc/wind --log-level debug
Verify both SOCKS5 and HTTP proxying against the local port:
curl --socks5-hostname 127.0.0.1:1080 https://example.com
curl -x http://127.0.0.1:1080 https://example.com
Pressing Ctrl-C (or sending SIGTERM) triggers graceful shutdown: Wind cancels all listeners and drains active relay tasks within the shutdown deadline.