Snell
A lightweight protocol common in the Surge ecosystem — simple to configure with decent performance; v4/v5 also support shadow-tls obfuscation.
Example Config
config.yaml YAML
proxies: - name: "snell" type: snell server: server port: 44046 psk: yourpsk # version: 4 # udp: true - name: "snell-shadow-tls" type: snell server: server port: 44046 psk: yourpsk obfs-opts: mode: shadow-tls host: bing.com password: "shadow_tls_password" version: 2
Field Reference
pskRequiredThe Snell pre-shared key.
versionOptionalThe Snell protocol version — v1 through v5 are supported, but only v3/v4/v5 support UDP.
reuseOptionalConnection reuse — only supported on v4/v5, defaults to false.
obfs-opts Obfuscation Settings
obfs-opts.modeOptionalThe obfuscation mode — supports http/tls/shadow-tls.
obfs-opts.hostOptionalThe disguise domain used for obfuscation.
obfs-opts.password / version / alpnOptionalOnly needed when mode: shadow-tls: password is the shadow-tls password, version supports v1/v2/v3, and alpn supports h2 and http1.1.