mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-14 04:43:17 +00:00
157 lines
2.3 KiB
Markdown
157 lines
2.3 KiB
Markdown
|
# Shadowsocks
|
||
|
|
||
|
## Single User
|
||
|
|
||
|
#### Server
|
||
|
|
||
|
```json
|
||
|
{
|
||
|
"inbounds": [
|
||
|
{
|
||
|
"type": "shadowsocks",
|
||
|
"listen": "::",
|
||
|
"listen_port": 8080,
|
||
|
"method": "2022-blake3-aes-128-gcm",
|
||
|
"password": "8JCsPssfgS8tiRwiMlhARg=="
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
```
|
||
|
|
||
|
#### Client
|
||
|
|
||
|
```json
|
||
|
{
|
||
|
"inbounds": [
|
||
|
{
|
||
|
"type": "mixed",
|
||
|
"listen": "::",
|
||
|
"listen_port": 2080
|
||
|
}
|
||
|
],
|
||
|
"outbounds": [
|
||
|
{
|
||
|
"type": "shadowsocks",
|
||
|
"server": "127.0.0.1",
|
||
|
"server_port": 8080,
|
||
|
"method": "2022-blake3-aes-128-gcm",
|
||
|
"password": "8JCsPssfgS8tiRwiMlhARg=="
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
|
||
|
```
|
||
|
|
||
|
## Multiple Users
|
||
|
|
||
|
#### Server
|
||
|
|
||
|
```json
|
||
|
{
|
||
|
"inbounds": [
|
||
|
{
|
||
|
"type": "shadowsocks",
|
||
|
"listen": "::",
|
||
|
"listen_port": 8080,
|
||
|
"method": "2022-blake3-aes-128-gcm",
|
||
|
"password": "8JCsPssfgS8tiRwiMlhARg==",
|
||
|
"users": [
|
||
|
{
|
||
|
"name": "sekai",
|
||
|
"password": "BXYxVUXJ9NgF7c7KPLQjkg=="
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
```
|
||
|
|
||
|
#### Client
|
||
|
|
||
|
```json
|
||
|
{
|
||
|
"inbounds": [
|
||
|
{
|
||
|
"type": "mixed",
|
||
|
"listen": "::",
|
||
|
"listen_port": 2080
|
||
|
}
|
||
|
],
|
||
|
"outbounds": [
|
||
|
{
|
||
|
"type": "shadowsocks",
|
||
|
"server": "127.0.0.1",
|
||
|
"server_port": 8080,
|
||
|
"method": "2022-blake3-aes-128-gcm",
|
||
|
"password": "8JCsPssfgS8tiRwiMlhARg==:BXYxVUXJ9NgF7c7KPLQjkg=="
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
|
||
|
```
|
||
|
|
||
|
## Relay
|
||
|
|
||
|
#### Server
|
||
|
|
||
|
```json
|
||
|
{
|
||
|
"inbounds": [
|
||
|
{
|
||
|
"type": "shadowsocks",
|
||
|
"listen": "::",
|
||
|
"listen_port": 8080,
|
||
|
"method": "2022-blake3-aes-128-gcm",
|
||
|
"password": "8JCsPssfgS8tiRwiMlhARg=="
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
```
|
||
|
|
||
|
#### Relay
|
||
|
|
||
|
```json
|
||
|
{
|
||
|
"inbounds": [
|
||
|
{
|
||
|
"type": "shadowsocks",
|
||
|
"listen": "::",
|
||
|
"listen_port": 8081,
|
||
|
"method": "2022-blake3-aes-128-gcm",
|
||
|
"password": "BXYxVUXJ9NgF7c7KPLQjkg==",
|
||
|
"destinations": [
|
||
|
{
|
||
|
"name": "my_server",
|
||
|
"password": "8JCsPssfgS8tiRwiMlhARg==",
|
||
|
"server": "127.0.0.1",
|
||
|
"server_port": 8080
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
```
|
||
|
|
||
|
#### Client
|
||
|
|
||
|
```json
|
||
|
{
|
||
|
"inbounds": [
|
||
|
{
|
||
|
"type": "mixed",
|
||
|
"listen": "::",
|
||
|
"listen_port": 2080
|
||
|
}
|
||
|
],
|
||
|
"outbounds": [
|
||
|
{
|
||
|
"type": "shadowsocks",
|
||
|
"server": "127.0.0.1",
|
||
|
"server_port": 8081,
|
||
|
"method": "2022-blake3-aes-128-gcm",
|
||
|
"password": "8JCsPssfgS8tiRwiMlhARg==:BXYxVUXJ9NgF7c7KPLQjkg=="
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
|
||
|
```
|