Skip to content
Edit this page

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, and rust-proxy/quiche.
  • Optional dependencies:
  • The naive outbound dynamically loads Chromium libcronet at runtime by default, or can use build-time prebuilt downloads / static linking; see Transports and Building.
  • Enabling the quiche backend in library builds requires a target C/C++ toolchain, CMake, and libclang (plus NASM on Windows). The standalone wind binary uses wind-tuic's quinn backend and does not require BoringSSL.

Building wind

git clone https://github.com/rust-proxy/wind.git
cd wind
cargo build --locked --release -p 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:

wind init
# Creates config.yaml in the current directory
wind init --format toml
# Creates config.toml in the current directory

Combine with -C / --config-dir to write directly into a target directory (created if missing):

wind -C /etc/wind init --format toml

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:

inbounds:
  - type: mixed
    tag: local-in
    listen_addr: "127.0.0.1:1080"

outbounds:
  - type: tuic
    tag: tuic-out
    server_addr: "203.0.113.10:8443"
    sni: "tuic.example.com"
    uuid: "00000000-0000-4000-8000-000000000001"
    password: "change-this-password"
    alpn:
      - h3
[[inbounds]]
type = "mixed"
tag = "local-in"
listen_addr = "127.0.0.1:1080"

[[outbounds]]
type = "tuic"
tag = "tuic-out"
server_addr = "203.0.113.10:8443"
sni = "tuic.example.com"
uuid = "00000000-0000-4000-8000-000000000001"
password = "change-this-password"
alpn = ["h3"]
  • In standalone wind, tuic.server_addr must be an IP:port socket address. TLS certificate verification is enabled by default (skip_cert_verify = false) against sni.
  • 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.