Docs Config Snell

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

pskRequired

The Snell pre-shared key.

versionOptional

The Snell protocol version — v1 through v5 are supported, but only v3/v4/v5 support UDP.

reuseOptional

Connection reuse — only supported on v4/v5, defaults to false.

obfs-opts Obfuscation Settings

obfs-opts.modeOptional

The obfuscation mode — supports http/tls/shadow-tls.

obfs-opts.hostOptional

The disguise domain used for obfuscation.

obfs-opts.password / version / alpnOptional

Only needed when mode: shadow-tls: password is the shadow-tls password, version supports v1/v2/v3, and alpn supports h2 and http1.1.