From dd47d2c8ee06d9cd19a0b6454c6713508b34d7f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 24 May 2022 07:30:29 +0800 Subject: [PATCH] Add shadowsocks 2022 multi-user example --- Shadowsocks-2022/README.md | 64 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/Shadowsocks-2022/README.md b/Shadowsocks-2022/README.md index cbc2a6b..86fb9c2 100644 --- a/Shadowsocks-2022/README.md +++ b/Shadowsocks-2022/README.md @@ -23,6 +23,35 @@ } ``` +服务端 JSON (多用户) + +```json +{ + "inbounds": [ + { + "port": 1234, + "protocol": "shadowsocks", + "settings": { + "method": "2022-blake3-aes-128-gcm", + "password": "{{ server psk }}", + "clients": [ + { + "password": "{{ user psk }}", + "email": "my user" + } + ], + "network": "tcp,udp" + } + } + ], + "outbounds": [ + { + "protocol": "freedom" + } + ] +} +``` + 客户端 JSON ```json @@ -58,6 +87,41 @@ } ``` +客户端 JSON (多用户) + +```json +{ + "inbounds": [ + { + "port": 10801, + "protocol": "socks", + "settings": { + "udp": true + } + }, + { + "port": 10802, + "protocol": "http" + } + ], + "outbounds": [ + { + "protocol": "shadowsocks", + "settings": { + "servers": [ + { + "address": "{{ host }}", + "port": 1234, + "method": "2022-blake3-aes-128-gcm", + "password": "{{ server psk }}:{{ user psk }}" + } + ] + } + } + ] +} +``` + ## Password Shadowsocks 2022 使用与 WireGuard 类似的预共享密钥作为密码。