[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
| Type | Protocol / Feature | Notes |
|---|---|---|
socks | SOCKS5 | Compatible alias socks5 |
http | HTTP / HTTPS | |
shadowsocks | Shadowsocks | Compatible alias ss |
vmess | VMess | |
vless | VLESS | TCP / UDP, Vision, REALITY |
trojan | Trojan | |
hysteria | Hysteria | Compatible alias hysteria2 |
tuic | TUIC v5 | TCP / UDP |
shadowquic | ShadowQUIC | TCP / UDP |
wireguard | WireGuard | |
tailscale | Tailscale | |
anytls | AnyTLS | |
ssh | SSH Tunnel | |
| JLS | JLS Transport Authentication | Node transport plugin; cannot be used independently or as protocol; cannot be combined with ShadowTLS; supports TCP proxy protocols only |
| ShadowTLS | Shadow TLS handshake | Node plugin; cannot be used independently or as protocol; unavailable for basic policies such as direct / reject; see supported protocols below |
| Sing Mux | Sing Mux multiplexing | Node 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 / compatible | Basic Policies |
Syntax Declaration
Proxy servers are declared on individual INI configuration lines:
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 assocks(aliassocks5),http,shadowsocks(aliasss),vmess,vless,trojan,hysteria(aliashysteria2),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 askey=item(a single WireGuard Peer object may also be written aspeers={...}). 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}.
- List options (such as
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 = directorRejectNode = 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 globalproxy-test-urlto specify a dedicated health check and latency probe URL for this server.inioverride-test-url=http://cp.cloudflare.com/generate_204ip-version(Enum, defaultdual) Outbound IP address family preference when establishing connections to the server:dual,ipv4-only,ipv6-only,prefer-ipv4,prefer-ipv6.iniip-version=dualinterface(Network interface name, default system outbound interface; compatible aliasinterface-name) Forces binding of the server's network connection to a specific physical interface (e.g.,en0,pdp_ip0).iniinterface=en0tfo(Boolean, defaultfalse) 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 bytfo-behaviourin[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.initfo=truetcp-ecn(Enum, defaultauto) ECN negotiation policy for physical TCP connections on Apple platforms:autopreserves the system default,onexplicitly enables, andoffexplicitly 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 oneTFO <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.initcp-ecn=autounderlying-proxy(Proxy name, unset) Specifies an underlying front/relay proxy (previously defined proxy server name) to construct chained multi-hop proxy tunnels.tfoandtcp-ecnonly 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.iniunderlying-proxy=LandingNodedns-resolver-type(Enum, defaultnormal) Domain name resolution mode for the proxy node. Available values:normal(compatible aliasesdefault,0): Standard DNS resolution modeip4p(alias1): IPv4-in-IPv6 mapped prefix resolution mode
inidns-resolver-type=normalip4p-prefix(IPv6 address prefix, default2001::) IP4P address prefix, requiring the trailing three 16-bit fields to be zero; effective only whendns-resolver-type=ip4p.iniip4p-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:
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 substreamsTLS
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.
| Configuration | Target TLS transport behavior |
|---|---|
shadow-tls=true | Implicitly 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 protocol | Use an ordinary TLS handshake |
| STLS disabled; TLS not required by the protocol | Use raw TCP |
Under the target contract, STLS nodes omit the redundant tls=true and specify the handshake website using shadow-tls-sni.
tls(Boolean, defaultfalse) 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.initls=truesni(Domain name string, default node host address; compatible aliasserver-name) TLS Server Name Indication (SNI) used for certificate validation and virtual host routing.inisni=proxy.example.comalpns(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 shorthandalpns=h2.inialpns=h2 alpns=[h2, "http/1.1"]server-cert-fingerprint-sha256(64-character hex string, unset; compatible aliascertificate-fingerprint-sha256) SHA-256 certificate fingerprint pinning for server certificate verification (colons allowed; must parse to exactly 32 bytes).iniserver-cert-fingerprint-sha256=11223344556677889900aabbccddeeff11223344556677889900aabbccddeeffskip-cert-verify(Boolean, defaultfalse) Allows skipping server TLS certificate validation.iniskip-cert-verify=falseenable-early-data(Boolean, defaultfalse) Enables TLS 1.3 0-RTT Early Data.inienable-early-data=trueclient-fingerprint(String, unset; compatible aliasfingerprint) 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. Supportschrome,safari,firefox,edge,ios,apple-26,safari-26,chromium-155,randomized, etc.;autoornonedisables shaping.iniclient-fingerprint=chrome
WebSocket
WebSocket options apply to vmess, vless, and trojan, running over the selected transport.
ws(Boolean, defaultfalse; compatible aliaswebsocket) Enables WebSocket transport encapsulation.iniws=truews-path(Path string, default/) HTTP handshake path for WebSocket connections.iniws-path=/wsheaders(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).iniheaders={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.
[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.comjls: Boolean, defaultfalse. 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 asalpns.
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:
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, defaultfalse) Enables the Shadow TLS handshake plugin and implicitly enables TLS transport without requiringtls=true. Supported protocols areshadowsocks,vmess,trojan,socks,http,anytls, andssh.inishadow-tls=trueshadow-tls-version(Enum, default3)1,2, or3; must match the server configuration, without automatic downgrade.inishadow-tls-version=3shadow-tls-password(String, required for V2/V3) Non-empty authentication password required for V2/V3; not required for V1.inishadow-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.inishadow-tls-sni=cover.example.comshadow-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.inishadow-tls-server-cert-fingerprint-sha256=11223344556677889900aabbccddeeff11223344556677889900aabbccddeeffshadow-tls-alpns(List of strings, default empty list) ALPN list for the STLS handshake. Multiple values use[...]syntax, for exampleshadow-tls-alpns=[h2, "http/1.1"]; a single value without commas may use the shorthandshadow-tls-alpns=h2.inishadow-tls-alpns=h2 shadow-tls-alpns=[h2, "http/1.1"]shadow-tls-skip-cert-verify(Boolean, defaultfalse) Must remainfalse; skipping STLS certificate verification is rejected.inishadow-tls-skip-cert-verify=falseshadow-tls-enable-early-data(Boolean, defaultfalse) Must remainfalse; STLS early data is unsupported.inishadow-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.
[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-STLSSing 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, defaultfalse) Master switch for Sing Mux multiplexing.inising-mux=truesing-mux-stream-num-per-conn(Positive integer, default8) Concurrent-stream threshold before opening another connection; whensing-mux-max-connectionsis also set, existing connections are reused after reaching that connection threshold.inising-mux-stream-num-per-conn=8sing-mux-max-connections(Positive integer, unset; compatible aliassing-mux-max-conn-num) Connection-count threshold for reusing existing multiplexed connections; concurrent connection creation may temporarily exceed this value.inising-mux-max-connections=4sing-mux-padding(Boolean, defaulttrue) Packet padding toggle; adds random-length padding when enabled.inising-mux-padding=truesing-mux-idle-timeout(Unsigned integer, unit: seconds, default300; compatible aliassing-mux-conn-idle-timeout) Idle keepalive timeout for multiplexed connections when no active data streams exist;0disables the idle timeout.inising-mux-idle-timeout=300
Example declarations:
[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=trueProtocol 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.iniusername=userpassword(String, default empty) Proxy authentication password.inipassword=<SECRET>headers(Ordered key-value map, default empty) Applicable to HTTP proxies only; attaches custom HTTP request headers using{K1=V1, K2=V2}syntax.iniheaders={X-Proxy-Auth=custom-token}
[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. Useencrypt-method=.iniencrypt-method=aes-256-gcmpassword(String, default empty) Authentication password, set withpassword=; 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.inipassword=<SECRET>obfs(Enum, unset) Traffic obfuscation plugin type:http,tls.iniobfs=tlsobfs-host(Domain string, unset) Hostname used in obfuscation requests.iniobfs-host=cdn.example.comobfs-path(Path string, unset) URL path for HTTP obfuscation requests.iniobfs-path=/obfs-path
[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.comVMess
VMess supports TLS transport, STLS handshakes, WebSocket encapsulation, and AEAD verification.
Attribute Configuration
uuid(UUID string, required) User UUID credential, set withuuid=.iniuuid=b831381d-6324-4d53-ad4f-8cda48b30811cipher(Enum, unset; compatible aliassecurity) Body encryption algorithm:auto,none,aes-128-gcm, orchacha20-ietf-poly1305. When unset orauto, selects AES-128-GCM or ChaCha20-Poly1305 based on CPU AES support.nonedisables body encryption while preserving header authentication; TCP sends the body directly and UDP retains framing. TLS and other transport settings remain independent.inicipher=aes-128-gcmaead(Boolean, defaultfalse) VMess AEAD header authentication toggle.iniaead=true
[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=/rayVLESS
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).
| Option | Values and Default Behavior |
|---|---|
uuid | Required; 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) |
encryption | Default none; supports Xray VLESS protocol-level encryption (mlkem768x25519plus.<appearance>.<rtt>[.<padding>...].<key1>...) |
transport | tcp (default, alias raw), ws (alias websocket), httpupgrade (alias http-upgrade), grpc, xhttp (alias splithttp) |
flow | none (default), xtls-rprx-vision, xtls-rprx-vision-udp443 |
packet-encoding | xudp (default) or packet (alias none); Vision always uses XUDP |
sni | TLS server name, defaults to node host; required for REALITY |
fingerprint | ClientHello 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-key | Server 32-byte Base64URL public key for REALITY |
reality-short-id | REALITY short ID, default empty, even-length hex, up to 8 bytes |
host, path, headers | HTTP Host, path, and custom headers for WebSocket/HTTPUpgrade/XHTTP; path defaults to / (httpupgrade path supports ?ed=<N> early data) |
grpc-service-name | Default GunService |
grpc-authority | gRPC HTTP/2 authority, defaults to SNI or node host |
grpc-multi-mode | Default false; enables TunMulti bidirectional streaming |
xhttp-mode | auto (default), packet-up, stream-up, stream-one |
xhttp-download | Default 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 Configuration | HTTP Version | Outer Transport |
|---|---|---|
security=none | HTTP/1.1 | TCP |
security=tls,alpns=http/1.1 | HTTP/1.1 | TLS/TCP |
security=tls,alpns=h2 | H2 | TLS/TCP |
security=tls,alpns=h3 | H3 | QUIC/UDP, TLS 1.3 |
security=reality | H2 | REALITY/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 Connection | Result of auto |
|---|---|
| HTTP/1.1 or H3 | packet-up |
| TLS + H2 | stream-up |
REALITY without xhttp-download | stream-one |
REALITY with xhttp-download enabled | stream-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 Parameter | Requirements and Default Behavior |
|---|---|
xhttp-download | Set to true to enable independent downstream; specifying any xhttp-download-* parameters without this is rejected |
xhttp-download-address, xhttp-download-port | Required; domain name, IPv4, or IPv6 address and non-zero port of the downstream endpoint |
xhttp-download-security, xhttp-download-tls | Follows node-level security syntax; defaults to plaintext if neither is specified |
xhttp-download-sni | TLS defaults to downstream xhttp-download-address; required for REALITY |
xhttp-download-alpns | Downstream only; use h3 for H3; REALITY rejects h3 |
xhttp-download-host | Defaults in order to Host from xhttp-download-headers, downstream SNI, or downstream address |
xhttp-download-path | Defaults to /; must match upstream path exactly, cannot rely on inheritance |
xhttp-download-headers | Default empty; custom headers follow the standard headers syntax |
xhttp-download-fingerprint | Follows node-level rules; H3 does not apply this fingerprint |
xhttp-download-skip-cert-verify, xhttp-download-server-cert-fingerprint-sha256 | Used only for downstream TLS verification; REALITY does not allow overriding protocol authentication |
xhttp-download-reality-public-key, xhttp-download-reality-short-id | Specified 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.
[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.
[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=autoTrojan
Trojan uses ordinary TLS by default. Selecting STLS replaces it according to the Shadow TLS configuration contract. Authentication uses password=:
name = trojan, host, port, password=<SECRET>, [options...]Attribute Configuration
password(String, default empty) Trojan authentication password, set withpassword=; empty when omitted.inipassword=<SECRET>
[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-wsHysteria
Hysteria is based on QUIC, featuring single-stream multiplexing and loss-resilient congestion control.
Attribute Configuration
auth(String, default empty) Client handshake authentication credential.iniauth=<SECRET>down(Non-negative integer with optional unit suffix, default0; compatible aliascc-rx) Downlink bandwidth. Bare numbers default to Mbps:100and100mbpsboth mean 100 Mbit/s. Accepted suffixes arebps/b,kbps/kb/k,mbps/mb/m,gbps/gb/g, andtbps/tb/t, case-insensitive, using decimal scaling (1 Mbps = 1,000,000 bit/s); uppercaseBdoes 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 least8bps; fractional bytes are discarded, with a maximum of18,446,744,073,709,551,615bytes/sec. Saved profiles format using the largest evenly divisible decimal unit (gbps,mbps,kbps), falling back tobpsotherwise.inidown=100mbpsobfs(String, unset; compatible aliasobfs-salamander-password) Salamander traffic obfuscation password.iniobfs=<SECRET>realm(URL string, unset) Enables Realm control plane discovery and UDP NAT traversal (realm://orrealm+http://).inirealm=realm://<SECRET>@coord.example.com/tunnel1realm-underlying-proxy(Node name, unset) Dedicated underlying proxy link used exclusively for Realm control plane communications.inirealm-underlying-proxy=UnderlyingNoderealm-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).inirealm-stun=stun.example.com:3478 realm-stun=[stun.example.com:3478, stun1.example.com:3478]realm-stun-timeout(Unsigned non-negative integer, unit: seconds, default5) STUN probe timeout.inirealm-stun-timeout=5realm-http-timeout(Unsigned non-negative integer, unit: seconds, default10) Realm control plane HTTP timeout; accepts unsigned seconds, with discovery requests capped at 10 seconds.inirealm-http-timeout=10realm-punch-timeout(Unsigned non-negative integer, unit: seconds, default5) UDP NAT hole-punching timeout.inirealm-punch-timeout=5realm-insecure(Boolean, defaultfalse) Allows skipping TLS certificate verification for Realm control plane communications.inirealm-insecure=falserealm-sni(Domain string, unset) TLS SNI indicator for Realm control plane communications.inirealm-sni=coord.example.comrealm-server-cert-fingerprint-sha256(64-character hex string, unset) SHA-256 certificate fingerprint verification for Realm control plane.inirealm-server-cert-fingerprint-sha256=11223344556677889900aabbccddeeff11223344556677889900aabbccddeeff
[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/tunnel1TUIC 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.iniuuid=00000000-0000-0000-0000-000000000001password(String, required) Password configured on the server; must be enclosed in double quotes if it contains commas or equals signs.inipassword=<SECRET>udp-relay-mode(Enum, defaultnative) 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.
iniudp-relay-mode=nativeTLS is always enabled, supporting common
sni,alpns, certificate validation, and fingerprint parameters; usesh3when ALPN is unspecified. Does not supporttls=falseorenable-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.
[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=quicShadowQUIC
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 toh3when omitted.udp-relay-mode(defaultnative):nativeuses QUIC DATAGRAM and errors if a datagram exceeds the current path maximum;quiccarries length-prefixed datagrams over unidirectional QUIC streams, suitable for larger UDP packets.- Uses JLS to authenticate the server;
skip-cert-verify=true, certificate fingerprints, andtls=falseare not supported. Credential mismatches fail the connection without falling back to ordinary TLS. enable-early-data(defaultfalse): 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.
[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=quicWireGuard
WireGuard provides point-to-point encrypted tunnels declared entirely via key-value options:
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).iniaddresses=10.0.0.2 addresses=[10.0.0.2, fd00::2]private-key(Base64 string, required) Local 32-byte WireGuard private key.iniprivate-key=<SECRET>mtu(Integer 576–1420, default1280) Tunnel maximum transmission unit; recommended to be 1280 or higher when IPv6 is configured.inimtu=1280dns(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'sallowed-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'sendpointhostname is resolved separately before tunnel setup and does not use this option.inidns=10.0.0.1 dns=[10.0.0.1, fd00::1]congestion-control(bbrv3/bbr/cubic, defaultbbrv3) TCP congestion control algorithm for userspace TCP connections;bbrrepresents 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.inicongestion-control=cubicpeers(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.inipeers={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.inipublic-key=<SECRET>preshared-key(Base64 string, unset) Preshared symmetric key (PSK).inipreshared-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).iniallowed-ips=0.0.0.0/0 allowed-ips=[0.0.0.0/0, ::/0]endpoint(host:portformat, required) Physical network address and UDP port of the remote peer.iniendpoint=wg.example.com:51820keepalive(Integer 0–65535, unit: seconds, unset) NAT keepalive heartbeat interval.inikeepalive=25reserved(Byte array, unset) Reserved bytes; only[0,0,0]is supported. Nonzero reserved bytes are rejected.inireserved=[0,0,0]
[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:
name = tailscale, [options...]Attribute Configuration
auth-key(Non-empty string, required) Tailscale pre-authenticated auth key; automatically masked in logs.iniauth-key=<SECRET>control-url(HTTPS URL, defaulthttps://controlplane.tailscale.com/) Tailscale control plane (Headscale / Tailscale) coordination server URL; must start withhttps://.inicontrol-url=https://controlplane.tailscale.com/http-underlying-proxy(Node name, unset) Underlying proxy used exclusively for control plane signaling and DERP HTTPS relay communications.inihttp-underlying-proxy=SSNodehostname(String, unset) Machine hostname declared within the Tailnet topology.inihostname=apple-clientexit-node(Node identifier, defaultnone) Specifies the Tailnet exit node; options includenone,auto, stable node ID, FQDN/short name, or Tailnet IP.iniexit-node=autodns-server(List of IP addresses orIP:port, default empty; compatible aliasdns-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 withoutdns. 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.inidns-server=100.100.100.100 dns-server=[100.100.100.100, 100.100.100.101]connection-mode(Enum, defaultauto) 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.
iniconnection-mode=autoderp-only(Compatibility option)trueis equivalent toconnection-mode=derp-only;falseis equivalent toconnection-mode=auto. When both are present,connection-modetakes precedence and the legacy option is not parsed. Saved profiles use the canonicalconnection-modefield.ephemeral(Boolean, defaultfalse) Declares the node as ephemeral, automatically unregistering it from the control plane upon disconnection.iniephemeral=falsemtu(Integer 576–1420, default1280) Packet MTU size for the Tailscale virtual interface.inimtu=1280congestion-control(bbrv3/bbr/cubic, defaultbbrv3) TCP congestion control algorithm for userspace TCP connections within the Tailnet;bbrrepresents 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.inicongestion-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-serveror 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:portare used. Split DNSRoutesandFallbackResolversare not supported; non-IP upstreams are ignored.
[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=SSNodeAnyTLS
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 withpassword=.inipassword=<SECRET>idle-session-check-interval(Positive integer, unit: seconds, default30) Health check interval for idle sessions in the underlying connection pool.iniidle-session-check-interval=30idle-session-timeout(Positive integer, unit: seconds, default30) Maximum keepalive timeout for idle connections.iniidle-session-timeout=60min-idle-session(Unsigned integer, default5) Minimum reserved idle connections maintained in the connection pool.inimin-idle-session=5max-streams-per-session(Positive integer, default5) Maximum concurrent data streams multiplexed over a single session connection.inimax-streams-per-session=5
[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=60SSH
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.iniusername=deploypassword(Non-empty string, unset) SSH login password; mutually exclusive withprivate-key(exactly one must be provided).inipassword=<SECRET>private-key(Keystore name, unset) Retrieves private keys with priority from secure storage, falling back to matching entries in the[Keystore]section.iniprivate-key=ssh-keyidle-timeout(Unsigned integer, unit: seconds, default180) Idle keepalive timeout for the SSH tunnel connection.iniidle-timeout=300server-fingerprint(Fingerprint list, default accepts any server key) Server host public key fingerprint verification, formatted asalgorithm Base64PublicKey(orSHA256:...). Multiple values use[...]list syntax; fingerprint strings containing spaces must be enclosed in double quotes inside[...](a single fingerprint may use the shorthandserver-fingerprint="ssh-ed25519 <BASE64_KEY>").iniserver-fingerprint="ssh-ed25519 <KEY1>" server-fingerprint=["ssh-ed25519 <KEY1>", "ssh-rsa <KEY2>"]
[Proxy]
SSH-Tunnel = ssh, ssh.example.com, 22, username=deploy, password=<SECRET>, idle-timeout=300Basic Policies
Basic policies provide local direct connections or traffic blocking without connecting to external proxy servers:
| Policy Identifier | Named Action Type | HTTP Behavior | TCP/UDP Behavior | Description |
|---|---|---|---|---|
DIRECT | direct | Connects directly via local physical network | Connects directly via local physical network | Direct traffic without proxying |
REJECT | reject | Returns HTTP 503 response | Sends connection reset (RST) or close | Connection rejection policy |
REJECT-TINYGIF | reject-tinygif | Returns HTTP 200 with 1×1 transparent GIF | Sends connection reset (RST) or close | Returns 1×1 transparent GIF for HTTP requests |
REJECT-DROP | reject-drop | Silently holds connection until timeout | Silently drops packets without reply | Silent drop policy |
REJECT-NO-DROP | reject-no-drop | Returns HTTP 503 response | Sends connection reset (RST) or close | Immediate 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.
[Proxy]
DirectOutbound = direct
CompatOutbound = compatible
AdBlock = reject
AdImageBlock = reject-tinygif
QuietBlock = reject-dropConfiguration Examples
Basic Configuration
[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