github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/docs/configuration/inbound/shadowsocks.zh.md (about) 1 ### 结构 2 3 ```json 4 { 5 "type": "shadowsocks", 6 "tag": "ss-in", 7 8 ... // 监听字段 9 10 "method": "2022-blake3-aes-128-gcm", 11 "password": "8JCsPssfgS8tiRwiMlhARg==" 12 } 13 ``` 14 15 ### 多用户结构 16 17 ```json 18 { 19 "method": "2022-blake3-aes-128-gcm", 20 "password": "8JCsPssfgS8tiRwiMlhARg==", 21 "users": [ 22 { 23 "name": "sekai", 24 "password": "PCD2Z4o12bKUoFa3cC97Hw==" 25 } 26 ] 27 } 28 ``` 29 30 ### 中转结构 31 32 ```json 33 { 34 "type": "shadowsocks", 35 "method": "2022-blake3-aes-128-gcm", 36 "password": "8JCsPssfgS8tiRwiMlhARg==", 37 "destinations": [ 38 { 39 "name": "test", 40 "server": "example.com", 41 "server_port": 8080, 42 "password": "PCD2Z4o12bKUoFa3cC97Hw==" 43 } 44 ] 45 } 46 ``` 47 48 ### Listen Fields 49 50 See [Listen Fields](/configuration/shared/listen) for details. 51 52 ### 字段 53 54 #### network 55 56 监听的网络协议,`tcp` `udp` 之一。 57 58 默认所有。 59 60 #### method 61 62 ==必填== 63 64 | 方法 | 密钥长度 | 65 |-------------------------------|------| 66 | 2022-blake3-aes-128-gcm | 16 | 67 | 2022-blake3-aes-256-gcm | 32 | 68 | 2022-blake3-chacha20-poly1305 | 32 | 69 | none | / | 70 | aes-128-gcm | / | 71 | aes-192-gcm | / | 72 | aes-256-gcm | / | 73 | chacha20-ietf-poly1305 | / | 74 | xchacha20-ietf-poly1305 | / | 75 76 #### password 77 78 ==必填== 79 80 | 方法 | 密码格式 | 81 |---------------|------------------------------------------| 82 | none | / | 83 | 2022 methods | `sing-box generate rand --base64 <密钥长度>` | 84 | other methods | 任意字符串 |