Skip to content
breventPublic

About

WebSocket SIP003 plugin for shadowsocks, based on libevent and OpenSSL

Topics

Resources

Stars

9 stars

Watchers

1 watching

Forks

Repository files navigation

SIP003 plugin for shadowsocks, based on WebSocket.

Requirements

Build

cmake -B build
cmake --build build

Release artifacts

Prebuilt clients are available for Android 5.0+ (arm64-v8a), macOS 12+ (arm64 and x64), and Windows 7+ (x64).

Usage

Client

ss-local -c xxx.json

{
  "server": "xxx",
  "server_port": 443,
  "method": "none",
  "local_address": "0.0.0.0",
  "local_port": 1080,
  "plugin": "/path/to/wss-proxy-client",
  "plugin_opts": "tls;host=xxx;path=/xxx;mux=0"
}

Options compatible with v2ray-plugin

  • tls, tls for https / wss (only tls is supported)
  • host, host name
  • path, default /
  • loglevel, default INFO, support DEBUG, INFO, WARN, ERROR
  • mux, default 1 (only 0 is supported, specify for compatible with v2ray-plugin)

Options for wss-proxy-client only

  • extra-listen-port (since 0.3.0, 689f0e7), extra listen port for shadowsocks client without sip003u
  • syslog (since 0.3.3, 47d4681), log to syslog if supported
  • ipv6 (since 0.3.4, a8b5f71), prefer ipv6, defaults to 1 (ipv6=0 for ipv4 only)
  • http2 (since 0.4.0, WebSocket over HTTP/2, RFC 8441)
  • http3 (since 0.4.0, WebSocket over HTTP/3, RFC 9220)
    • requires OpenSSL 3.2+ (4.1+ recommended)
  • interface (since 0.5.5), prefer interface on macOS and Linux
    • Linux: requires 5.7+, or CAP_NET_RAW / root

Server

ss-server -c xxx.json

{
    "server":"127.0.0.1",
    "server_port":3448,
    "timeout":60,
    "method":"none",
    "plugin": "/path/to/wss-proxy-server",
    "plugin_opts": "mux=0"
}

Options compatible with v2ray-plugin

  • loglevel, default INFO, support DEBUG, INFO, WARN, ERROR
  • mux, default 1 (only 0 is supported, specify for compatible with v2ray-plugin)

Unsupported options (configure these in the reverse proxy instead):

  • tls: the plugin server does not use TLS.
  • host: the plugin server accepts any host.
  • path: the plugin server accepts any path.

Options for wss-proxy-server only

  • udp-port, udp port to shadowsocks server without sip003u
    • There is no tcp-port, which is environment SS_LOCAL_PORT.
  • syslog (since 0.3.3, 47d4681), log to syslog if supported

Compatible reverse proxies

  • Caddy: start with GODEBUG=http2xconnect=1 to enable WebSocket over HTTP/2.
  • nginx with PR #1683.

About

WebSocket SIP003 plugin for shadowsocks, based on libevent and OpenSSL

Topics

Resources

Stars

9 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages