Skip to content
Edit this page

Shadowsocks Outbound (type: ss)

Supports classic AEAD ciphers, Shadowsocks 2022 BLAKE3 ciphers, and pluggable transports (obfs, v2ray-plugin, and shadow-tls v3).

  • Feature: shadowsocks (enabled in standard / default builds).
  • connect-via / dialer-proxy: TCP + UDP supported.

Fields

Key Type Required Default Description
name, server, port, connect-via (dialer-proxy) Common Yes (except connect-via) — Standard outbound options.
cipher string Yes — Encryption cipher (see list below).
password string Yes — Password or Base64 PSK (for SS2022).
udp bool No true Enable UDP relay.
plugin string No None One of "obfs", "v2ray-plugin", or "shadow-tls". Requires plugin-opts when set.
plugin-opts map Required if plugin set None Plugin-specific options (see below).

Supported Ciphers

Exactly 8 ciphers are supported by ClashRS (map_cipher):

  • aes-128-gcm
  • aes-256-gcm
  • chacha20-ietf-poly1305
  • xchacha20-ietf-poly1305
  • 2022-blake3-aes-128-gcm
  • 2022-blake3-aes-256-gcm
  • 2022-blake3-chacha20-ietf-poly1305
  • rc4-md5

Plugins

plugin-opts Key Type Required Default Description
password string Yes — ShadowTLS v3 password.
host string No "bing.com" TLS SNI handshake host.
strict bool No true Enable strict mode.
proxies:
  - name: ss-shadowtls
    type: ss
    server: proxy.example.com
    port: 443
    cipher: 2022-blake3-aes-128-gcm
    password: "BASE64_PSK"
    udp: true
    plugin: shadow-tls
    plugin-opts:
      host: www.example.org
      password: "shadowtls-password"
      strict: true
plugin-opts Key Type Required Default Description
mode string Yes — Must be "websocket".
host string No "bing.com" WebSocket Host and TLS SNI.
path string No "" ("/" on wire) WebSocket path.
tls bool No false Wrap WebSocket in TLS.
port u16 No 443 (if tls) / 80 Port used in WebSocket Upgrade Host header.
skip-cert-verify bool No false Skip TLS certificate verification.
headers map No {} Extra headers (Host auto-filled from host if absent).
mux bool No false Setting mux: true fails with an error (v2ray plugin does not support mux).
proxies:
  - name: ss-v2ray-ws
    type: ss
    server: proxy.example.com
    port: 443
    cipher: aes-256-gcm
    password: "password"
    plugin: v2ray-plugin
    plugin-opts:
      mode: websocket
      tls: true
      host: ws.example.com
      path: /ws

Logs a deprecation warning on startup.

plugin-opts Key Type Required Default Description
mode "http" | "tls" Yes — Obfuscation mode.
host string No "bing.com" Disguised HTTP/TLS host.
proxies:
  - name: ss-obfs
    type: ss
    server: proxy.example.com
    port: 8388
    cipher: aes-256-gcm
    password: "password"
    plugin: obfs
    plugin-opts:
      mode: tls
      host: www.example.com