Skip to content

[Proxy] Proxy Servers ​

This section defines proxy servers and their transport protocol parameters as outbound destinations for network traffic. It supports standard proxy protocols, virtual network tunnels, and built-in basic policies.

Supported Protocols Overview ​

TypeProtocol / FeatureNotes
socksSOCKS5Compatible alias socks5
httpHTTP / HTTPS
shadowsocksShadowsocksCompatible alias ss
vmessVMess
vlessVLESSTCP / UDP, Vision, REALITY
trojanTrojan
hysteriaHysteriaCompatible alias hysteria2
tuicTUIC v5TCP / UDP
shadowquicShadowQUICTCP / UDP
wireguardWireGuard
tailscaleTailscale
anytlsAnyTLS
sshSSH Tunnel
JLSJLS Transport AuthenticationNode transport plugin; cannot be used independently or as protocol; cannot be combined with ShadowTLS; supports TCP proxy protocols only
ShadowTLSShadow TLS handshakeNode plugin; cannot be used independently or as protocol; unavailable for basic policies such as direct / reject; see supported protocols below
Sing MuxSing Mux multiplexingNode option; cannot be used independently or as protocol; unavailable for basic policies such as direct / reject; requires a compatible proxy protocol and server
direct / reject / compatibleBasic Policies

Syntax Declaration ​

Proxy servers are declared on individual INI configuration lines:

ini
name = protocol, host, port, [options...]

Component breakdown:

  • name: Unique identifier for the proxy server, referenced by routing rules in [Rule] and policy groups in [Proxy Group].
  • protocol: Proxy protocol type (case-insensitive, lowercase canonical), such as socks (alias socks5), http, shadowsocks (alias ss), vmess, vless, trojan, hysteria (alias hysteria2), tuic, shadowquic, wireguard, tailscale, anytls, ssh.
  • host: Hostname, domain name, or IP address of the target proxy server.
  • port: Service port of the target proxy server (range 1–65535).
  • [options...]: Key-value options (key=value) for configuring TLS transport and STLS/JLS handshakes, WebSocket, network interface binding, latency test overrides, and connection reuse parameters. All options are inline key-value options (inline fragments) appended to the end of a proxy line, and cannot be used as standalone [General] or top-level configuration lines.
    • List options (such as alpns, shadow-tls-alpns, realm-stun, addresses, dns, allowed-ips, dns-server, server-fingerprint) use bracketed list syntax [item1, item2] for multiple values, while a single value without commas may be written directly as key=item (a single WireGuard Peer object may also be written as peers={...}). Items containing spaces, commas, or equals signs must be enclosed in double quotes inside [...].
    • Key-value map options (such as headers, xhttp-download-headers) use ordered brace container syntax {K1=V1, K2=V2}.

Enable STLS with shadow-tls=true, which implicitly enables TLS transport without requiring tls=true. Keep the actual proxy protocol as protocol rather than declaring a separate Shadow TLS node. Set host, port to the STLS server address. Protocol options such as password configure its fixed proxy backend; shadow-tls-password authenticates STLS. sing-mux=true independently controls multiplexing.

Policies and Tunnel Syntax ​

For specialized types that do not require server host addresses, syntax declarations adapt as follows:

  • Basic Policies: Direct action declaration, such as DirectNode = direct or RejectNode = reject.
  • Virtual Network Tunnels: For WireGuard and Tailscale, endpoints and control plane settings are defined internally via options, using the syntax name = protocol, [options...].

Common Configuration ​

All proxy servers support the following common network and transport configuration options:

Basic Network Options ​

  • override-test-url (HTTP/HTTPS URL, default global configuration value) Overrides the global proxy-test-url to specify a dedicated health check and latency probe URL for this server.

    ini
    override-test-url=http://cp.cloudflare.com/generate_204
  • ip-version (Enum, default dual) Outbound IP address family preference when establishing connections to the server: dual, ipv4-only, ipv6-only, prefer-ipv4, prefer-ipv6.

    ini
    ip-version=dual
  • interface (Network interface name, default system outbound interface; compatible alias interface-name) Forces binding of the server's network connection to a specific physical interface (e.g., en0, pdp_ip0).

    ini
    interface=en0
  • tfo (Boolean, default false) Enables TCP Fast Open for physical TCP connections on Apple platforms. Explicitly enabling this on other platforms returns an unsupported error. The system blackhole detection policy is governed by tfo-behaviour in [General]. The first write participates in address racing and is recorded into the successful address cache only after the handshake completes; plain TCP is used when the server sends data first to prevent both sides waiting on the initial packet. Early data may be replayed or sent to multiple candidate addresses during racing, and should only be used with upper-layer protocols that permit replay of the initial packet.

    ini
    tfo=true
  • tcp-ecn (Enum, default auto) ECN negotiation policy for physical TCP connections on Apple platforms: auto preserves the system default, on explicitly enables, and off explicitly disables. Configured before handshake; does not affect UDP or QUIC ECN. [Connector] connection logs report actual results for each candidate address: whether TFO SYN data was sent and whether it was acknowledged, plus any failure reason or system-protection skip, and negotiation results for explicitly configured ECN. Each attempt produces one TFO <result>: <details> log entry, with send and acknowledgement details when SYN data was sent, or just the reason when no data was sent; blackholes are reported only when flagged by the kernel. Connections without client first data report a regular TCP fallback. Unavailable kernel diagnostics are marked as unavailable. A TFO failure does not mean the TCP connection failed.

    ini
    tcp-ecn=auto
  • underlying-proxy (Proxy name, unset) Specifies an underlying front/relay proxy (previously defined proxy server name) to construct chained multi-hop proxy tunnels. tfo and tcp-ecn only apply to nodes that actually establish physical TCP sockets; nodes using an underlying proxy are allowed to configure these parameters, but will not modify the socket parameters of the underlying proxy.

    ini
    underlying-proxy=LandingNode
  • dns-resolver-type (Enum, default normal) Domain name resolution mode for the proxy node. Available values:

    • normal (compatible aliases default, 0): Standard DNS resolution mode
    • ip4p (alias 1): IPv4-in-IPv6 mapped prefix resolution mode
    ini
    dns-resolver-type=normal
  • ip4p-prefix (IPv6 address prefix, default 2001::) IP4P address prefix, requiring the trailing three 16-bit fields to be zero; effective only when dns-resolver-type=ip4p.

    ini
    ip4p-prefix=2001::

Transport Layer Establishment Order ​

The establishment order for transport and connection multiplexing layers is as follows; the TLS layer is skipped when disabled and implicitly enabled when STLS is configured:

text
TCP / underlying-proxy
  → TLS transport (skipped when disabled; implicitly enabled by ordinary TLS or STLS)
  → WebSocket (when supported by the protocol and enabled)
  → Proxy protocol
  → Sing Mux session (when enabled)
  → Multiple TCP / UDP substreams

TLS ​

Ordinary TLS options apply to http, vmess, vless, trojan, hysteria, tuic, and anytls.

Implementation Boundaries and Target Contract: The following rules describe the target configuration contract between TLS and STLS: configuring shadow-tls=true implicitly enables TLS transport and uses STLS for its handshake (via shadow-tls-* options), without requiring tls=true or performing a second ordinary TLS handshake. This replacement is not yet complete in the current runtime: enabling both STLS and ordinary TLS, or enabling STLS for trojan or anytls, still layers an ordinary TLS handshake over STLS. Configuration examples below involving such combinations express the target contract.

ConfigurationTarget TLS transport behavior
shadow-tls=trueImplicitly enable TLS transport with an STLS handshake, including the default TLS of Trojan and AnyTLS
No STLS configured; tls=true or TLS required by the protocolUse an ordinary TLS handshake
STLS disabled; TLS not required by the protocolUse raw TCP

Under the target contract, STLS nodes omit the redundant tls=true and specify the handshake website using shadow-tls-sni.

  • tls (Boolean, default false) TLS transport toggle, implicitly enabled when STLS is configured, with STLS performing the handshake. Without STLS, Trojan and AnyTLS require ordinary TLS by default. Hysteria and TUIC always use QUIC TLS and do not support STLS.

    ini
    tls=true
  • sni (Domain name string, default node host address; compatible alias server-name) TLS Server Name Indication (SNI) used for certificate validation and virtual host routing.

    ini
    sni=proxy.example.com
  • alpns (List of strings, default empty list) List of TLS ALPN negotiated protocols. Multiple values use [...] list syntax (enclose items in double quotes when they contain special characters or require explicit quoting); a single value without commas may use the shorthand alpns=h2.

    ini
    alpns=h2
    alpns=[h2, "http/1.1"]
  • server-cert-fingerprint-sha256 (64-character hex string, unset; compatible alias certificate-fingerprint-sha256) SHA-256 certificate fingerprint pinning for server certificate verification (colons allowed; must parse to exactly 32 bytes).

    ini
    server-cert-fingerprint-sha256=11223344556677889900aabbccddeeff11223344556677889900aabbccddeeff
  • skip-cert-verify (Boolean, default false) Allows skipping server TLS certificate validation.

    ini
    skip-cert-verify=false
  • enable-early-data (Boolean, default false) Enables TLS 1.3 0-RTT Early Data.

    ini
    enable-early-data=true
  • client-fingerprint (String, unset; compatible alias fingerprint) TCP TLS ClientHello fingerprint shaping (uTLS) for ordinary TCP TLS protocols (http, vmess, vless, trojan, anytls). Not applied to QUIC (Hysteria/TUIC/H3), JLS, or ShadowTLS v3. Supports chrome, safari, firefox, edge, ios, apple-26, safari-26, chromium-155, randomized, etc.; auto or none disables shaping.

    ini
    client-fingerprint=chrome

WebSocket ​

WebSocket options apply to vmess, vless, and trojan, running over the selected transport.

  • ws (Boolean, default false; compatible alias websocket) Enables WebSocket transport encapsulation.

    ini
    ws=true
  • ws-path (Path string, default /) HTTP handshake path for WebSocket connections.

    ini
    ws-path=/ws
  • headers (Ordered key-value map, default empty map) Custom HTTP headers attached during HTTP or WebSocket handshakes, using ordered key-value container syntax {K1=V1, K2=V2} (preserving declaration order and duplicate headers).

    ini
    headers={Host=cdn.example.com, User-Agent=CustomAgent}

JLS ​

JLS is a general TCP transport authentication plugin available in builds with TCP JLS support. Nodes are still declared with ss, vmess, trojan, socks, http, anytls, or ssh, with host, port pointing to the JLS server; the inner protocol and JLS each use their own authentication credentials.

ini
[Proxy]
SS-JLS = ss, proxy.example.com, 443, encrypt-method=aes-128-gcm, password=<INNER_SECRET>, jls=true, jls-username=<SECRET>, jls-password=<SECRET>, jls-sni=cover.example.com
VMess-JLS = vmess, proxy.example.com, 443, uuid=00000000-0000-0000-0000-000000000001, aead=true, cipher=none, jls=true, jls-username=<SECRET>, jls-password=<SECRET>, jls-sni=cover.example.com
Trojan-JLS = trojan, proxy.example.com, 443, password=<INNER_SECRET>, jls=true, jls-username=<SECRET>, jls-password=<SECRET>, jls-sni=cover.example.com
  • jls: Boolean, default false. Automatically uses TLS 1.3 when enabled; for protocols such as Trojan and VMess, JLS takes over the TLS layer without stacking an extra ordinary TLS handshake.
  • jls-username, jls-password: Both are required non-empty strings.
  • jls-sni: JLS server name; defaults to the node host.
  • jls-alpns: Optional ALPN list, using the same syntax as alpns.

JLS TLS parameters use the jls- prefix. Combining with shadow-tls, overriding certificate fingerprints, jls-skip-cert-verify=true, jls-tls=false, and jls-enable-early-data=true are prohibited. Authentication failures return a connection error.

Some third-party server implementations have a reproduced data-loss issue with large initial VMess AES frames. The verified VMess combination with JLS is cipher=none, where data remains encrypted by JLS's TLS 1.3; other cipher modes cannot be assumed interoperable based on this combination.

Native UDP for Shadowsocks and SOCKS5 does not traverse JLS and is disabled when the plugin is enabled; use Sing Mux over the TCP tunnel when supported by the peer. VMess and Trojan UDP-over-TCP share the same JLS connection.

Shadow TLS ​

Shadow TLS (STLS) is a node TLS handshake plugin supporting V1/V2/V3. Configuring it implicitly enables TLS transport, providing camouflage and authentication at that layer without an additional ordinary TLS handshake. The plugin is disabled by default, version defaults to 3, and SNI defaults to the node host.

Use this format. All options belong to the same node; their written order does not change the transport layering:

ini
name = protocol, stls-host, stls-port, [protocol-options...], shadow-tls=true, shadow-tls-version=3, shadow-tls-password=<STLS_SECRET>, shadow-tls-sni=cover.example.com, [ws-options...], [sing-mux-options...]

The real TLS handshake provides camouflage and authentication only; subsequent application data is not encrypted by that TLS layer. V3 HMAC does not provide confidentiality either. Application confidentiality must come from protocols such as Shadowsocks, encrypted VMess, or SSH. Plain SOCKS5, HTTP CONNECT, unencrypted VMess, and Trojan or AnyTLS with STLS replacing TLS cannot rely on STLS to protect proxy credentials, destination addresses, or unencrypted application data.

Shadow TLS supports TCP proxy protocols including shadowsocks, vmess, trojan, socks (SOCKS5), http (HTTP CONNECT), anytls, and ssh. The fixed server backend must speak the same proxy protocol and, under the replacement contract, receive the proxy or WebSocket handshake directly without an additional ordinary TLS layer. Configure WebSocket options to match that backend. underlying-proxy only selects the underlying dial path to the STLS server. Native UDP/QUIC protocols such as Hysteria, TUIC, and WireGuard reject the plugin. UDP requires Sing Mux/UoT supported by the proxy protocol to carry packets over TCP.

  • shadow-tls (Boolean, default false) Enables the Shadow TLS handshake plugin and implicitly enables TLS transport without requiring tls=true. Supported protocols are shadowsocks, vmess, trojan, socks, http, anytls, and ssh.

    ini
    shadow-tls=true
  • shadow-tls-version (Enum, default 3) 1, 2, or 3; must match the server configuration, without automatic downgrade.

    ini
    shadow-tls-version=3
  • shadow-tls-password (String, required for V2/V3) Non-empty authentication password required for V2/V3; not required for V1.

    ini
    shadow-tls-password=<STLS_SECRET>
  • shadow-tls-sni (Domain name string, default node host address) Handshake website hostname, which must be a valid TLS server name. Users should usually specify the server handshake website domain explicitly, which must match the handshake website and its certificate; the default value may only be used when the node host satisfies this condition.

    ini
    shadow-tls-sni=cover.example.com
  • shadow-tls-server-cert-fingerprint-sha256 (64-character hex string, unset) SHA-256 certificate fingerprint of the STLS handshake website, using the same format as the ordinary TLS option.

    ini
    shadow-tls-server-cert-fingerprint-sha256=11223344556677889900aabbccddeeff11223344556677889900aabbccddeeff
  • shadow-tls-alpns (List of strings, default empty list) ALPN list for the STLS handshake. Multiple values use [...] syntax, for example shadow-tls-alpns=[h2, "http/1.1"]; a single value without commas may use the shorthand shadow-tls-alpns=h2.

    ini
    shadow-tls-alpns=h2
    shadow-tls-alpns=[h2, "http/1.1"]
  • shadow-tls-skip-cert-verify (Boolean, default false) Must remain false; skipping STLS certificate verification is rejected.

    ini
    shadow-tls-skip-cert-verify=false
  • shadow-tls-enable-early-data (Boolean, default false) Must remain false; STLS early data is unsupported.

    ini
    shadow-tls-enable-early-data=false

V1 uses TLS 1.2; V2 supports TLS 1.2/1.3; V3 strictly enforces TLS 1.3. Certificate verification remains enabled, and 0-RTT early data or native UDP are not supported.

ini
[Proxy]
# STLS implicitly enables TLS transport; proxy and STLS authentication use separate passwords
SS-STLS = shadowsocks, stls.example.com, 443, encrypt-method=aes-128-gcm, password=<PROXY_SECRET>, shadow-tls=true, shadow-tls-version=3, shadow-tls-password=<STLS_SECRET>, shadow-tls-sni=cover.example.com

# Target contract (replacement not yet implemented in current runtime; ordinary TLS is still layered): STLS replaces Trojan's default TLS; the backend receives Trojan directly
Trojan-STLS = trojan, stls.example.com, 443, password=<PROXY_SECRET>, shadow-tls=true, shadow-tls-version=3, shadow-tls-password=<STLS_SECRET>, shadow-tls-sni=cover.example.com

[Rule]
FINAL, SS-STLS

Sing Mux Multiplexing ​

Sing Mux is a node option (sing-mux=true), not a standalone protocol. Core uses SMUX and supports both TCP streams and UDP packets over the multiplexed stream. Shadowsocks, VMess, and Trojan can connect to a server with native sing-mux support. When the Shadow TLS plugin is enabled, both ends must match the Shadow TLS and Sing Mux encapsulation order, SMUX protocol, and padding settings; enabling the option does not make an ordinary proxy server understand mux. Hysteria, TUIC, and AnyTLS already multiplex connections; extra mux requires a separate compatible endpoint and is generally unnecessary. See official Multiplex documentation.

Substreams on one multiplexed connection share a single TLS or STLS handshake. If transport authentication fails, the connection fails without establishing the proxy protocol or Sing Mux session, and without automatic downgrade; after a connection is closed, new requests will re-handshake and restore transmission.

The following options are available:

  • sing-mux (Boolean, default false) Master switch for Sing Mux multiplexing.

    ini
    sing-mux=true
  • sing-mux-stream-num-per-conn (Positive integer, default 8) Concurrent-stream threshold before opening another connection; when sing-mux-max-connections is also set, existing connections are reused after reaching that connection threshold.

    ini
    sing-mux-stream-num-per-conn=8
  • sing-mux-max-connections (Positive integer, unset; compatible alias sing-mux-max-conn-num) Connection-count threshold for reusing existing multiplexed connections; concurrent connection creation may temporarily exceed this value.

    ini
    sing-mux-max-connections=4
  • sing-mux-padding (Boolean, default true) Packet padding toggle; adds random-length padding when enabled.

    ini
    sing-mux-padding=true
  • sing-mux-idle-timeout (Unsigned integer, unit: seconds, default 300; compatible alias sing-mux-conn-idle-timeout) Idle keepalive timeout for multiplexed connections when no active data streams exist; 0 disables the idle timeout.

    ini
    sing-mux-idle-timeout=300

Example declarations:

ini
[Proxy]
# Shadowsocks with Sing Mux multiplexing
SS-Mux = shadowsocks, ss.example.com, 8388, encrypt-method=aes-256-gcm, password=<SECRET>, sing-mux=true, sing-mux-stream-num-per-conn=16, sing-mux-padding=true

# Trojan with TLS and Sing Mux multiplexing
Trojan-Mux = trojan, trojan.example.com, 443, password=<SECRET>, tls=true, sni=trojan.example.com, sing-mux=true, sing-mux-stream-num-per-conn=8

# Shadowsocks with STLS and Sing Mux; the fixed backend must match SMUX and padding settings
SS-STLS-Mux = shadowsocks, stls.example.com, 443, encrypt-method=aes-128-gcm, password=<PROXY_SECRET>, shadow-tls=true, shadow-tls-version=3, shadow-tls-password=<STLS_SECRET>, shadow-tls-sni=cover.example.com, sing-mux=true, sing-mux-padding=true

Protocol Details ​

SOCKS and HTTP ​

SOCKS and HTTP authentication uses the username= and password= key-value options.

Attribute Configuration ​

  • username (String, default empty) Proxy authentication username.

    ini
    username=user
  • password (String, default empty) Proxy authentication password.

    ini
    password=<SECRET>
  • headers (Ordered key-value map, default empty) Applicable to HTTP proxies only; attaches custom HTTP request headers using {K1=V1, K2=V2} syntax.

    ini
    headers={X-Proxy-Auth=custom-token}
ini
[Proxy]
SocksNode = socks, proxy.example.com, 1080
HttpNode = http, proxy.example.com, 8080, username=user, password=<SECRET>
HttpsNode = http, proxy.example.com, 443, tls=true, sni=proxy.example.com, username=user, password=<SECRET>

Shadowsocks ​

Shadowsocks provides symmetric encrypted transport, supporting obfuscation plugins, Shadow TLS, and Sing Mux multiplexing.

Attribute Configuration ​

  • encrypt-method (Enum, required) Symmetric encryption algorithm name (case-insensitive). Supported values: aes-128-gcm, aes-192-gcm, aes-256-gcm, chacha20-ietf-poly1305, 2022-blake3-aes-128-gcm, 2022-blake3-aes-256-gcm, 2022-blake3-chacha20-poly1305. Use encrypt-method=.

    ini
    encrypt-method=aes-256-gcm
  • password (String, default empty) Authentication password, set with password=; empty when omitted for legacy algorithms. SS 2022 requires Base64-encoded random key: 16 bytes for AES-128, 32 bytes for AES-256 and ChaCha20. AES supports colon-separated identity key chains (iPSK:...:uPSK), where each part must match the algorithm length; ChaCha20 supports only a single key. Node loading is rejected on invalid key format or length.

    ini
    password=<SECRET>
  • obfs (Enum, unset) Traffic obfuscation plugin type: http, tls.

    ini
    obfs=tls
  • obfs-host (Domain string, unset) Hostname used in obfuscation requests.

    ini
    obfs-host=cdn.example.com
  • obfs-path (Path string, unset) URL path for HTTP obfuscation requests.

    ini
    obfs-path=/obfs-path
ini
[Proxy]
SS-AES = shadowsocks, ss.example.com, 8388, encrypt-method=aes-256-gcm, password=<SECRET>
SS-2022 = shadowsocks, ss.example.com, 8388, encrypt-method=2022-blake3-aes-128-gcm, password=<SECRET>
SS-Options = shadowsocks, ss.example.com, 8388, encrypt-method=chacha20-ietf-poly1305, password=<SECRET>, obfs=tls, obfs-host=cdn.example.com

VMess ​

VMess supports TLS transport, STLS handshakes, WebSocket encapsulation, and AEAD verification.

Attribute Configuration ​

  • uuid (UUID string, required) User UUID credential, set with uuid=.

    ini
    uuid=b831381d-6324-4d53-ad4f-8cda48b30811
  • cipher (Enum, unset; compatible alias security) Body encryption algorithm: auto, none, aes-128-gcm, or chacha20-ietf-poly1305. When unset or auto, selects AES-128-GCM or ChaCha20-Poly1305 based on CPU AES support. none disables body encryption while preserving header authentication; TCP sends the body directly and UDP retains framing. TLS and other transport settings remain independent.

    ini
    cipher=aes-128-gcm
  • aead (Boolean, default false) VMess AEAD header authentication toggle.

    ini
    aead=true
ini
[Proxy]
VMess-TLS = vmess, vmess.example.com, 443, uuid=b831381d-6324-4d53-ad4f-8cda48b30811, aead=true, tls=true, sni=vmess.example.com
VMess-WS = vmess, cdn.example.com, 443, uuid=b831381d-6324-4d53-ad4f-8cda48b30811, aead=true, tls=true, ws=true, ws-path=/ray

# WebSocket after the STLS handshake; the fixed backend receives a plaintext WebSocket handshake
VMess-STLS-WS = vmess, stls.example.com, 443, uuid=<UUID>, aead=true, cipher=aes-128-gcm, shadow-tls=true, shadow-tls-version=3, shadow-tls-password=<STLS_SECRET>, shadow-tls-sni=cover.example.com, ws=true, ws-path=/ray

VLESS ​

VLESS supports TCP, WebSocket, HTTPUpgrade, gRPC, and XHTTP transports. The security layer is specified via security=none|tls|reality (default none). WebSocket and HTTPUpgrade support plaintext or TLS; REALITY supports TCP, gRPC, and XHTTP. Vision is available for TCP + TLS/REALITY (or plain TCP when protocol-level encryption is enabled).

OptionValues and Default Behavior
uuidRequired; server user UUID. Accepts a standard UUID or a 1–30 byte string (mapped to UUIDv5 with the Nil namespace using SHA-1, matching Xray-core)
encryptionDefault none; supports Xray VLESS protocol-level encryption (mlkem768x25519plus.<appearance>.<rtt>[.<padding>...].<key1>...)
transporttcp (default, alias raw), ws (alias websocket), httpupgrade (alias http-upgrade), grpc, xhttp (alias splithttp)
flownone (default), xtls-rprx-vision, xtls-rprx-vision-udp443
packet-encodingxudp (default) or packet (alias none); Vision always uses XUDP
sniTLS server name, defaults to node host; required for REALITY
fingerprintClientHello browser fingerprint over TCP TLS (compatible alias client-fingerprint); ordinary TLS does not disguise by default, REALITY defaults to chrome; not applied to H3/QUIC
reality-public-keyServer 32-byte Base64URL public key for REALITY
reality-short-idREALITY short ID, default empty, even-length hex, up to 8 bytes
host, path, headersHTTP Host, path, and custom headers for WebSocket/HTTPUpgrade/XHTTP; path defaults to / (httpupgrade path supports ?ed=<N> early data)
grpc-service-nameDefault GunService
grpc-authoritygRPC HTTP/2 authority, defaults to SNI or node host
grpc-multi-modeDefault false; enables TunMulti bidirectional streaming
xhttp-modeauto (default), packet-up, stream-up, stream-one
xhttp-downloadDefault false; set to true to enable independent downstream, configured via xhttp-download-* flat parameters (xhttp-download-address and xhttp-download-port required; see below for details)

XHTTP HTTP Versions and Modes ​

Upstream and downstream can independently use HTTP/1.1, H2/TCP, or H3/QUIC/UDP. The security layer and alpns determine the transport on each side:

Endpoint ConfigurationHTTP VersionOuter Transport
security=noneHTTP/1.1TCP
security=tls,alpns=http/1.1HTTP/1.1TLS/TCP
security=tls,alpns=h2H2TLS/TCP
security=tls,alpns=h3H3QUIC/UDP, TLS 1.3
security=realityH2REALITY/TCP

When ordinary TLS omits alpns, it defaults to negotiating H2 or HTTP/1.1; when browser fingerprinting is enabled, H2 negotiation is governed by the selected fingerprint. alpns=http/1.1 explicitly selects HTTP/1.1. H3 requires alpns=h3 alone (cannot be mixed with h2 and cannot use plaintext or REALITY); H3 does not apply TCP TLS browser ClientHello fingerprints.

H2 and H3 can share the same port number, but the server must expose TCP and UDP listeners respectively. If the UDP endpoint is unreachable, the connection fails or times out immediately without falling back to TCP. This UDP is the outer QUIC transport for H3, distinct from the proxied UDP payload controlled by packet-encoding.

xhttp-mode=auto selects the transfer mode based on the upstream connection; downstream HTTP version does not influence this selection:

Upstream ConnectionResult of auto
HTTP/1.1 or H3packet-up
TLS + H2stream-up
REALITY without xhttp-downloadstream-one
REALITY with xhttp-download enabledstream-up

packet-up uses chunked POST upload and independent GET download; stream-up uses streaming POST upload and independent GET download. stream-one uses a single POST request body for upload and response body for download, and therefore cannot be used with xhttp-download. Explicit stream-up and stream-one require H2 or H3 upstream; HTTP/1.1 upstream uses packet-up or auto.

XHTTP Split Upstream/Downstream ​

Configuring xhttp-download=true alongside xhttp-download-* flat key-value parameters configures an independent ingress for downstream traffic. Both directions share the node's uuid, but downstream does not inherit upstream security settings, SNI, Host, headers, or certificate verification parameters.

Downstream ParameterRequirements and Default Behavior
xhttp-downloadSet to true to enable independent downstream; specifying any xhttp-download-* parameters without this is rejected
xhttp-download-address, xhttp-download-portRequired; domain name, IPv4, or IPv6 address and non-zero port of the downstream endpoint
xhttp-download-security, xhttp-download-tlsFollows node-level security syntax; defaults to plaintext if neither is specified
xhttp-download-sniTLS defaults to downstream xhttp-download-address; required for REALITY
xhttp-download-alpnsDownstream only; use h3 for H3; REALITY rejects h3
xhttp-download-hostDefaults in order to Host from xhttp-download-headers, downstream SNI, or downstream address
xhttp-download-pathDefaults to /; must match upstream path exactly, cannot rely on inheritance
xhttp-download-headersDefault empty; custom headers follow the standard headers syntax
xhttp-download-fingerprintFollows node-level rules; H3 does not apply this fingerprint
xhttp-download-skip-cert-verify, xhttp-download-server-cert-fingerprint-sha256Used only for downstream TLS verification; REALITY does not allow overriding protocol authentication
xhttp-download-reality-public-key, xhttp-download-reality-short-idSpecified independently when downstream uses REALITY; public key is required, short ID defaults to empty

Different endpoints must converge into the same XHTTP inbound on the same server with identical path. They can be routed via reverse proxies or REALITY fallbacks; two unrelated XHTTP inbounds cannot form a single session.

ini
[Proxy]
# H2 upload, H3 download; server exposes TCP and UDP on 443
H2-H3 = vless, up.example.com, 443, uuid=<SECRET>, transport=xhttp, security=tls, sni=up.example.com, alpns=h2, path=/ring/, xhttp-download=true, xhttp-download-address=down.example.com, xhttp-download-port=443, xhttp-download-security=tls, xhttp-download-sni=down.example.com, xhttp-download-alpns=h3, xhttp-download-path=/ring/
# H3 upload, H2 download; auto chooses packet-up for H3 upstream
H3-H2 = vless, up.example.com, 443, uuid=<SECRET>, transport=xhttp, security=tls, sni=up.example.com, alpns=h3, path=/ring/, xhttp-download=true, xhttp-download-address=down.example.com, xhttp-download-port=443, xhttp-download-security=tls, xhttp-download-sni=down.example.com, xhttp-download-alpns=h2, xhttp-download-path=/ring/
# REALITY/H2 upload, H3 download
Reality-H3 = vless, up.example.com, 443, uuid=<SECRET>, transport=xhttp, security=reality, sni=cover.example.com, reality-public-key=<SECRET>, reality-short-id=<SECRET>, path=/ring/, xhttp-download=true, xhttp-download-address=down.example.com, xhttp-download-port=443, xhttp-download-security=tls, xhttp-download-sni=down.example.com, xhttp-download-alpns=h3, xhttp-download-path=/ring/
# IPv6 upload, IPv4 download
IPv6-IPv4 = vless, 2001:db8::1, 443, uuid=<SECRET>, transport=xhttp, security=tls, sni=up.example.com, alpns=h2, path=/ring/, xhttp-download=true, xhttp-download-address=192.0.2.1, xhttp-download-port=8443, xhttp-download-security=tls, xhttp-download-sni=down.example.com, xhttp-download-alpns=h2, xhttp-download-path=/ring/

Invalid configurations or downstream handshake failures immediately error the connection without fallback. Standard Vision rejects UDP/443; xtls-rprx-vision-udp443 must be explicitly configured to permit QUIC. REALITY uses protocol-level certificate authentication; failure returns an immediate error and cannot be bypassed with skip-cert-verify. TLS early data and ShadowTLS are not supported. httpupgrade cannot be combined with ws=true, security=reality, Vision flow, or alpns=[h3]. Enabling encryption allows Vision flow over plain TCP.

ini
[Proxy]
VLESS-TLS = vless, proxy.example.com, 443, uuid=<SECRET>, security=tls, sni=proxy.example.com
VLESS-Vision = vless, proxy.example.com, 443, uuid=<SECRET>, security=reality, sni=cover.example.com, reality-public-key=<SECRET>, reality-short-id=<SECRET>, flow=xtls-rprx-vision
VLESS-WS = vless, cdn.example.com, 443, uuid=<SECRET>, security=tls, transport=ws, host=proxy.example.com, path=/vless
VLESS-gRPC = vless, proxy.example.com, 443, uuid=<SECRET>, security=tls, transport=grpc, grpc-service-name=GunService
VLESS-XHTTP = vless, proxy.example.com, 443, uuid=<SECRET>, security=reality, sni=cover.example.com, reality-public-key=<SECRET>, reality-short-id=<SECRET>, transport=xhttp, path=/xhttp/, xhttp-mode=auto

Trojan ​

Trojan uses ordinary TLS by default. Selecting STLS replaces it according to the Shadow TLS configuration contract. Authentication uses password=:

ini
name = trojan, host, port, password=<SECRET>, [options...]

Attribute Configuration ​

  • password (String, default empty) Trojan authentication password, set with password=; empty when omitted.

    ini
    password=<SECRET>
ini
[Proxy]
Trojan-TLS = trojan, trojan.example.com, 443, password=<SECRET>, tls=true, sni=trojan.example.com
Trojan-WS = trojan, trojan.example.com, 443, password=<SECRET>, tls=true, sni=trojan.example.com, ws=true, ws-path=/trojan-ws

Hysteria ​

Hysteria is based on QUIC, featuring single-stream multiplexing and loss-resilient congestion control.

Attribute Configuration ​

  • auth (String, default empty) Client handshake authentication credential.

    ini
    auth=<SECRET>
  • down (Non-negative integer with optional unit suffix, default 0; compatible alias cc-rx) Downlink bandwidth. Bare numbers default to Mbps: 100 and 100mbps both mean 100 Mbit/s. Accepted suffixes are bps/b, kbps/kb/k, mbps/mb/m, gbps/gb/g, and tbps/tb/t, case-insensitive, using decimal scaling (1 Mbps = 1,000,000 bit/s); uppercase B does not mean bytes. Spaces before the suffix are allowed; fractions and negative values are rejected. Zero advertises an unknown receive rate for server congestion-control negotiation. Positive values must be at least 8bps; fractional bytes are discarded, with a maximum of 18,446,744,073,709,551,615 bytes/sec. Saved profiles format using the largest evenly divisible decimal unit (gbps, mbps, kbps), falling back to bps otherwise.

    ini
    down=100mbps
  • obfs (String, unset; compatible alias obfs-salamander-password) Salamander traffic obfuscation password.

    ini
    obfs=<SECRET>
  • realm (URL string, unset) Enables Realm control plane discovery and UDP NAT traversal (realm:// or realm+http://).

    ini
    realm=realm://<SECRET>@coord.example.com/tunnel1
  • realm-underlying-proxy (Node name, unset) Dedicated underlying proxy link used exclusively for Realm control plane communications.

    ini
    realm-underlying-proxy=UnderlyingNode
  • realm-stun (Server list, default built-in STUN list) List of STUN server addresses for NAT type detection and hole punching; multiple values use [...] list syntax (a single value may omit brackets).

    ini
    realm-stun=stun.example.com:3478
    realm-stun=[stun.example.com:3478, stun1.example.com:3478]
  • realm-stun-timeout (Unsigned non-negative integer, unit: seconds, default 5) STUN probe timeout.

    ini
    realm-stun-timeout=5
  • realm-http-timeout (Unsigned non-negative integer, unit: seconds, default 10) Realm control plane HTTP timeout; accepts unsigned seconds, with discovery requests capped at 10 seconds.

    ini
    realm-http-timeout=10
  • realm-punch-timeout (Unsigned non-negative integer, unit: seconds, default 5) UDP NAT hole-punching timeout.

    ini
    realm-punch-timeout=5
  • realm-insecure (Boolean, default false) Allows skipping TLS certificate verification for Realm control plane communications.

    ini
    realm-insecure=false
  • realm-sni (Domain string, unset) TLS SNI indicator for Realm control plane communications.

    ini
    realm-sni=coord.example.com
  • realm-server-cert-fingerprint-sha256 (64-character hex string, unset) SHA-256 certificate fingerprint verification for Realm control plane.

    ini
    realm-server-cert-fingerprint-sha256=11223344556677889900aabbccddeeff11223344556677889900aabbccddeeff
ini
[Proxy]
Hysteria-Standard = hysteria, hy.example.com, 443, auth=<SECRET>, sni=hy.example.com, down=100mbps
Hysteria-Realm = hysteria, hy.example.com, 443, auth=<SECRET>, realm=realm://<SECRET>@coord.example.com/tunnel1

TUIC v5 ​

Supports TUIC v5 TCP and UDP proxying; destination addresses support IPv4, IPv6, and domain names. TUIC v4 is not supported.

  • uuid (UUID string, required) User identifier configured on the server.

    ini
    uuid=00000000-0000-0000-0000-000000000001
  • password (String, required) Password configured on the server; must be enclosed in double quotes if it contains commas or equals signs.

    ini
    password=<SECRET>
  • udp-relay-mode (Enum, default native) Selects UDP relay mode. Available values:

    • native: Use datagram transport (based on QUIC DATAGRAM)
    • quic: Use reliable transport (QUIC streams) Both modes support fragmentation of large datagrams.
    ini
    udp-relay-mode=native
  • TLS is always enabled, supporting common sni, alpns, certificate validation, and fingerprint parameters; uses h3 when ALPN is unspecified. Does not support tls=false or enable-early-data=true.

  • UDP packet length limits and the ability to mix IPv4 and IPv6 targets within the same session also depend on server-side support.

ini
[Proxy]
TUIC-Native = tuic, tuic.example.com, 443, uuid=00000000-0000-0000-0000-000000000001, password=<SECRET>, sni=tuic.example.com
TUIC-QUIC = tuic, tuic.example.com, 443, uuid=00000000-0000-0000-0000-000000000001, password=<SECRET>, udp-relay-mode=quic

ShadowQUIC ​

Supports TCP and UDP forwarding for ShadowQUIC clients; destination addresses support IPv4, IPv6, and domain names.

  • username, password (String, required): JLS username and password for the server; enclose in double quotes if containing commas or equals signs.
  • sni (String): Camouflage domain name, which must match the server configuration; defaults to the server address.
  • alpns (List of strings): ALPN list matching the server; defaults to h3 when omitted.
  • udp-relay-mode (default native): native uses QUIC DATAGRAM and errors if a datagram exceeds the current path maximum; quic carries length-prefixed datagrams over unidirectional QUIC streams, suitable for larger UDP packets.
  • Uses JLS to authenticate the server; skip-cert-verify=true, certificate fingerprints, and tls=false are not supported. Credential mismatches fail the connection without falling back to ordinary TLS.
  • enable-early-data (default false): Optionally enables 0-RTT, resuming only toward an already-authenticated server address over the same egress network; initial connections still complete a full handshake. If the server rejects early data, the request errors without automatic replay, and the caller may issue a new request. Ensure the workload can tolerate TLS early data replay risks before enabling.
ini
[Proxy]
ShadowQUIC = shadowquic, proxy.example.com, 443, username=<SECRET>, password=<SECRET>, sni=cover.example.com
ShadowQUIC-Stream = shadowquic, proxy.example.com, 443, username=<SECRET>, password=<SECRET>, sni=cover.example.com, udp-relay-mode=quic

WireGuard ​

WireGuard provides point-to-point encrypted tunnels declared entirely via key-value options:

ini
name = wireguard, [options...]

Interface Attributes ​

  • addresses (IP address list, required) Virtual IP addresses assigned to the local interface; supports one IPv4 and one IPv6 address. Multiple values use [...] list syntax (brackets may be omitted for a single address).

    ini
    addresses=10.0.0.2
    addresses=[10.0.0.2, fd00::2]
  • private-key (Base64 string, required) Local 32-byte WireGuard private key.

    ini
    private-key=<SECRET>
  • mtu (Integer 576–1420, default 1280) Tunnel maximum transmission unit; recommended to be 1280 or higher when IPv6 is configured.

    ini
    mtu=1280
  • dns (IP address list, default empty) Dedicated IP resolvers queried through the WireGuard tunnel over UDP port 53. Multiple values use [...] list syntax (e.g., dns=[10.0.0.1, fd00::1]); a single address may omit brackets. When omitted, the global DNS resolver is reused; its query path follows global DNS configuration and is not guaranteed to pass through this WireGuard node. Configured resolvers must match an interface address family and the peer's allowed-ips; if none qualify, setup fails. Dedicated DNS failures do not fall back to global DNS. Domain destinations are resolved to an allowed IP before connecting through the tunnel; IP destinations skip resolution. The peer's endpoint hostname is resolved separately before tunnel setup and does not use this option.

    ini
    dns=10.0.0.1
    dns=[10.0.0.1, fd00::1]
  • congestion-control (bbrv3 / bbr / cubic, default bbrv3) TCP congestion control algorithm for userspace TCP connections; bbr represents BBRv1. Only controls local TCP transmit behavior; does not set a fixed rate, does not alter peer algorithms, and does not apply to UDP forwarding.

    ini
    congestion-control=cubic
  • peers (Peer object or array of Peer objects, required) Remote peer configuration, supporting either a single object {key=value,...} or an array [{key=value,...}]; exactly one peer is required, and empty or multi-peer arrays are rejected.

    ini
    peers={public-key=<SECRET>,endpoint=wg.example.com:51820,allowed-ips=0.0.0.0/0,keepalive=25}
    peers=[{public-key=<SECRET>,endpoint=wg.example.com:51820,allowed-ips=[0.0.0.0/0, ::/0],keepalive=25}]

Peer Attributes ​

  • public-key (Base64 string, required) 32-byte public key of the remote peer.

    ini
    public-key=<SECRET>
  • preshared-key (Base64 string, unset) Preshared symmetric key (PSK).

    ini
    preshared-key=<SECRET>
  • allowed-ips (CIDR list, required) Destination IP ranges permitted to be routed through this peer; multiple CIDRs use [...] list syntax (brackets may be omitted for a single CIDR).

    ini
    allowed-ips=0.0.0.0/0
    allowed-ips=[0.0.0.0/0, ::/0]
  • endpoint (host:port format, required) Physical network address and UDP port of the remote peer.

    ini
    endpoint=wg.example.com:51820
  • keepalive (Integer 0–65535, unit: seconds, unset) NAT keepalive heartbeat interval.

    ini
    keepalive=25
  • reserved (Byte array, unset) Reserved bytes; only [0,0,0] is supported. Nonzero reserved bytes are rejected.

    ini
    reserved=[0,0,0]
ini
[Proxy]
WG-Node = wireguard, addresses=[10.0.0.2, fd00::2], private-key=<SECRET>, mtu=1280, peers=[{public-key=<SECRET>,endpoint=wg.example.com:51820,allowed-ips=[0.0.0.0/0, ::/0],keepalive=25}]

Tailscale ​

Tailscale nodes join a Tailnet mesh network directly, declared entirely via key-value options:

ini
name = tailscale, [options...]

Attribute Configuration ​

  • auth-key (Non-empty string, required) Tailscale pre-authenticated auth key; automatically masked in logs.

    ini
    auth-key=<SECRET>
  • control-url (HTTPS URL, default https://controlplane.tailscale.com/) Tailscale control plane (Headscale / Tailscale) coordination server URL; must start with https://.

    ini
    control-url=https://controlplane.tailscale.com/
  • http-underlying-proxy (Node name, unset) Underlying proxy used exclusively for control plane signaling and DERP HTTPS relay communications.

    ini
    http-underlying-proxy=SSNode
  • hostname (String, unset) Machine hostname declared within the Tailnet topology.

    ini
    hostname=apple-client
  • exit-node (Node identifier, default none) Specifies the Tailnet exit node; options include none, auto, stable node ID, FQDN/short name, or Tailnet IP.

    ini
    exit-node=auto
  • dns-server (List of IP addresses or IP:port, default empty; compatible alias dns-servers) Dedicated Tailnet DNS upstreams overriding control-plane resolvers. Bare IPs use UDP port 53; IPv6 with port uses [IP]:port. Hostnames and DoH/DoT URLs are not accepted. Multiple values use [...] list syntax (e.g., dns-server=[100.100.100.100, 100.100.100.101]); a single value may omit brackets. When omitted, usable IP resolvers from the control plane are used. If neither source provides a usable upstream, fully qualified names outside the search domains use the global DNS resolver, matching WireGuard without dns. Global DNS queries follow global configuration and are not guaranteed to pass through this Tailscale node. Dedicated DNS queries travel through the Tailnet and require a matching peer, subnet route, or exit node. Query failures and unreachable configured upstreams are reported without falling back to global DNS.

    ini
    dns-server=100.100.100.100
    dns-server=[100.100.100.100, 100.100.100.101]
  • connection-mode (Enum, default auto) Selects the node's data path policy:

    • auto: Prefer direct connections, then authorized Peer Relays, then DERP.
    • no-peer-relay: Use direct connections and DERP without allocating relay sessions or accepting relay invitations.
    • derp-only: Use DERP exclusively, disabling all UDP data paths and NAT traversal.
    ini
    connection-mode=auto
  • derp-only (Compatibility option) true is equivalent to connection-mode=derp-only; false is equivalent to connection-mode=auto. When both are present, connection-mode takes precedence and the legacy option is not parsed. Saved profiles use the canonical connection-mode field.

  • ephemeral (Boolean, default false) Declares the node as ephemeral, automatically unregistering it from the control plane upon disconnection.

    ini
    ephemeral=false
  • mtu (Integer 576–1420, default 1280) Packet MTU size for the Tailscale virtual interface.

    ini
    mtu=1280
  • congestion-control (bbrv3 / bbr / cubic, default bbrv3) TCP congestion control algorithm for userspace TCP connections within the Tailnet; bbr represents BBRv1. Only controls local TCP transmit behavior; does not set a fixed rate, does not alter peer algorithms, and does not apply to UDP forwarding or underlying DERP connections.

    ini
    congestion-control=cubic

Routing and MagicDNS Mechanism ​

  • Route Matching Priority: Traffic destined for Tailnet internal nodes or subnet routes takes precedence over exit node default routes.
  • MagicDNS: When enabled and supplied by the control plane, node names, IPs, and search domains are resolved locally without configuring dns-server or sending upstream queries. Additional A/AAAA records supplied by the control plane are also matched locally first.
  • Global fallback boundary: Applies only when no dedicated upstream is available. Unresolved short hostnames and names within control-plane search domains fail locally without reaching global DNS. Dedicated upstreams still use Tailnet search domains.
  • Connection flow: After local matching or DNS resolution yields an IP, its Tailnet route is selected before establishing TCP/UDP connections. IP destinations skip resolution. DNS and application destinations may use different peers.
  • Control-plane compatibility: Only default resolvers expressed as IP or IP:port are used. Split DNS Routes and FallbackResolvers are not supported; non-IP upstreams are ignored.
ini
[Proxy]
Tailnet = tailscale, auth-key=<SECRET>, hostname=apple-client, exit-node=auto
Tailnet-Proxy = tailscale, auth-key=<SECRET>, exit-node=gateway-node, http-underlying-proxy=SSNode

AnyTLS ​

AnyTLS uses ordinary TLS by default and employs multiplexed connection pool management. Selecting STLS replaces TLS according to the Shadow TLS configuration contract.

Attribute Configuration ​

  • password (String, required) Handshake authentication credential, set with password=.

    ini
    password=<SECRET>
  • idle-session-check-interval (Positive integer, unit: seconds, default 30) Health check interval for idle sessions in the underlying connection pool.

    ini
    idle-session-check-interval=30
  • idle-session-timeout (Positive integer, unit: seconds, default 30) Maximum keepalive timeout for idle connections.

    ini
    idle-session-timeout=60
  • min-idle-session (Unsigned integer, default 5) Minimum reserved idle connections maintained in the connection pool.

    ini
    min-idle-session=5
  • max-streams-per-session (Positive integer, default 5) Maximum concurrent data streams multiplexed over a single session connection.

    ini
    max-streams-per-session=5
ini
[Proxy]
AnyTLS-Node = anytls, anytls.example.com, 443, password=<SECRET>, idle-session-timeout=60

# Target contract: STLS replaces AnyTLS's default TLS; the backend receives AnyTLS directly
AnyTLS-STLS = anytls, stls.example.com, 443, password=<PROXY_SECRET>, shadow-tls=true, shadow-tls-version=3, shadow-tls-password=<STLS_SECRET>, shadow-tls-sni=cover.example.com, idle-session-timeout=60

SSH ​

SSH tunnels forward traffic via TCP direct-tcpip, supporting password or named private key authentication; UDP is not supported:

Attribute Configuration ​

  • username (Non-empty string, required) SSH login username.

    ini
    username=deploy
  • password (Non-empty string, unset) SSH login password; mutually exclusive with private-key (exactly one must be provided).

    ini
    password=<SECRET>
  • private-key (Keystore name, unset) Retrieves private keys with priority from secure storage, falling back to matching entries in the [Keystore] section.

    ini
    private-key=ssh-key
  • idle-timeout (Unsigned integer, unit: seconds, default 180) Idle keepalive timeout for the SSH tunnel connection.

    ini
    idle-timeout=300
  • server-fingerprint (Fingerprint list, default accepts any server key) Server host public key fingerprint verification, formatted as algorithm Base64PublicKey (or SHA256:...). Multiple values use [...] list syntax; fingerprint strings containing spaces must be enclosed in double quotes inside [...] (a single fingerprint may use the shorthand server-fingerprint="ssh-ed25519 <BASE64_KEY>").

    ini
    server-fingerprint="ssh-ed25519 <KEY1>"
    server-fingerprint=["ssh-ed25519 <KEY1>", "ssh-rsa <KEY2>"]
ini
[Proxy]
SSH-Tunnel = ssh, ssh.example.com, 22, username=deploy, password=<SECRET>, idle-timeout=300

Basic Policies ​

Basic policies provide local direct connections or traffic blocking without connecting to external proxy servers:

Policy IdentifierNamed Action TypeHTTP BehaviorTCP/UDP BehaviorDescription
DIRECTdirectConnects directly via local physical networkConnects directly via local physical networkDirect traffic without proxying
REJECTrejectReturns HTTP 503 responseSends connection reset (RST) or closeConnection rejection policy
REJECT-TINYGIFreject-tinygifReturns HTTP 200 with 1×1 transparent GIFSends connection reset (RST) or closeReturns 1×1 transparent GIF for HTTP requests
REJECT-DROPreject-dropSilently holds connection until timeoutSilently drops packets without replySilent drop policy
REJECT-NO-DROPreject-no-dropReturns HTTP 503 responseSends connection reset (RST) or closeImmediate reject without converting to silent drop

Uppercase basic policies (e.g., DIRECT, REJECT) can be used directly in routing rules and policy groups; lowercase names (including the compatible alias compatible) can define aliases within the [Proxy] section.

ini
[Proxy]
DirectOutbound = direct
CompatOutbound = compatible
AdBlock = reject
AdImageBlock = reject-tinygif
QuietBlock = reject-drop

Configuration Examples ​

Basic Configuration ​

ini
[Proxy]
# 1. Basic direct and reject aliases
DirectNet = direct
BlockAds = reject-drop

# 2. Shadowsocks (chained proxy and multiplexing)
LandingNode = shadowsocks, jp.example.com, 8388, encrypt-method=aes-256-gcm, password=<SECRET>
RelayNode = shadowsocks, us.example.com, 8388, encrypt-method=chacha20-ietf-poly1305, password=<SECRET>, underlying-proxy=LandingNode, sing-mux=true

# 3. Trojan (WebSocket transport and custom SNI)
TrojanNode = trojan, hk.example.com, 443, password=<SECRET>, tls=true, sni=hk.example.com, ws=true, ws-path=/ws

# 4. Hysteria (downlink bandwidth rate limiting)
HyNode = hysteria, hy.example.com, 443, auth=<SECRET>, sni=hy.example.com, down=200mbps

# 5. WireGuard
WG-Node = wireguard, addresses=10.8.0.5, private-key=<SECRET>, mtu=1360, peers={public-key=<SECRET>,endpoint=vpn.example.com:51820,allowed-ips=10.0.0.0/8}

# 6. Tailscale
Tailnet-Mesh = tailscale, auth-key=<SECRET>, hostname=mac-client, exit-node=auto