跳转至

Shadowsocks

Shadowsocks 是最知名的国产代理协议。 它存在多个版本,但只推荐使用 AEAD 2022 加密算法的 TCP 多路复用。

加密算法 规范 密码学安全 抵抗被动检测 抵抗主动探测
流式加密 shadowsocks.org
AEAD shadowsocks.org
AEAD 2022 shadowsocks.org

(我们强烈建议使用多路复用通过 TCP 发送 UDP 流量,因为不这样做容易受到被动检测。)

密码生成器

用于 2022-blake3-aes-128-gcm 加密算法 用于其他加密算法 操作

服务端示例

 {
  "inbounds": [
    {
      "type": "shadowsocks",
      "listen": "::",
      "listen_port": 8080,
      "network": "tcp",
      "method": "2022-blake3-aes-128-gcm",
      "password": "<password>",
      "multiplex": {
        "enabled": true
      }
    }
  ]
}
 {
  "inbounds": [
    {
      "type": "shadowsocks",
      "listen": "::",
      "listen_port": 8080,
      "network": "tcp",
      "method": "2022-blake3-aes-128-gcm",
      "password": "<server_password>",
      "users": [
        {
          "name": "sekai",
          "password": "<user_password>"
        }
      ],
      "multiplex": {
        "enabled": true
      }
    }
  ]
}

客户端示例

{
  "outbounds": [
    {
      "type": "shadowsocks",
      "server": "127.0.0.1",
      "server_port": 8080,
      "method": "2022-blake3-aes-128-gcm",
      "password": "<pasword>",
      "multiplex": {
        "enabled": true
      }
    }
  ]
}
{
  "outbounds": [
    {
      "type": "shadowsocks",
      "server": "127.0.0.1",
      "server_port": 8080,
      "method": "2022-blake3-aes-128-gcm",
      "password": "<server_pasword>:<user_password>",
      "multiplex": {
        "enabled": true
      }
    }
  ]
}