github.com/sagernet/sing-box@v1.9.0-rc.20/docs/configuration/inbound/shadowsocks.md (about) 1 ### Structure 2 3 ```json 4 { 5 "type": "shadowsocks", 6 "tag": "ss-in", 7 8 ... // Listen Fields 9 10 "method": "2022-blake3-aes-128-gcm", 11 "password": "8JCsPssfgS8tiRwiMlhARg==", 12 "multiplex": {} 13 } 14 ``` 15 16 ### Multi-User Structure 17 18 ```json 19 { 20 "method": "2022-blake3-aes-128-gcm", 21 "password": "8JCsPssfgS8tiRwiMlhARg==", 22 "users": [ 23 { 24 "name": "sekai", 25 "password": "PCD2Z4o12bKUoFa3cC97Hw==" 26 } 27 ], 28 "multiplex": {} 29 } 30 ``` 31 32 ### Relay Structure 33 34 ```json 35 { 36 "type": "shadowsocks", 37 "method": "2022-blake3-aes-128-gcm", 38 "password": "8JCsPssfgS8tiRwiMlhARg==", 39 "destinations": [ 40 { 41 "name": "test", 42 "server": "example.com", 43 "server_port": 8080, 44 "password": "PCD2Z4o12bKUoFa3cC97Hw==" 45 } 46 ], 47 "multiplex": {} 48 } 49 ``` 50 51 ### Listen Fields 52 53 See [Listen Fields](/configuration/shared/listen/) for details. 54 55 ### Fields 56 57 #### network 58 59 Listen network, one of `tcp` `udp`. 60 61 Both if empty. 62 63 #### method 64 65 ==Required== 66 67 | Method | Key Length | 68 |-------------------------------|------------| 69 | 2022-blake3-aes-128-gcm | 16 | 70 | 2022-blake3-aes-256-gcm | 32 | 71 | 2022-blake3-chacha20-poly1305 | 32 | 72 | none | / | 73 | aes-128-gcm | / | 74 | aes-192-gcm | / | 75 | aes-256-gcm | / | 76 | chacha20-ietf-poly1305 | / | 77 | xchacha20-ietf-poly1305 | / | 78 79 #### password 80 81 ==Required== 82 83 | Method | Password Format | 84 |---------------|------------------------------------------------| 85 | none | / | 86 | 2022 methods | `sing-box generate rand --base64 <Key Length>` | 87 | other methods | any string | 88 89 #### multiplex 90 91 See [Multiplex](/configuration/shared/multiplex#inbound) for details.