sing-box/docs/examples/shadowtls.md

71 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

#### Server
```json
{
"inbounds": [
{
"type": "shadowtls",
"listen": "::",
"listen_port": 4443,
2023-02-18 11:27:22 +00:00
"version": 3,
2023-02-22 03:24:51 +00:00
"users": [
{
"name": "sekai",
"password": "8JCsPssfgS8tiRwiMlhARg=="
}
],
"handshake": {
"server": "google.com",
"server_port": 443
},
"detour": "shadowsocks-in"
},
{
"type": "shadowsocks",
"tag": "shadowsocks-in",
"listen": "127.0.0.1",
2023-03-17 04:24:29 +00:00
"network": "tcp",
"method": "2022-blake3-aes-128-gcm",
"password": "8JCsPssfgS8tiRwiMlhARg=="
}
]
}
```
#### Client
```json
{
"outbounds": [
{
"type": "shadowsocks",
"method": "2022-blake3-aes-128-gcm",
"password": "8JCsPssfgS8tiRwiMlhARg==",
"detour": "shadowtls-out",
"multiplex": {
2022-09-02 11:03:37 +00:00
"enabled": true,
"max_connections": 4,
"min_streams": 4
}
2023-03-17 04:24:29 +00:00
// or "udp_over_tcp": true
},
{
"type": "shadowtls",
"tag": "shadowtls-out",
"server": "127.0.0.1",
"server_port": 4443,
2023-02-18 11:27:22 +00:00
"version": 3,
2023-03-05 04:57:08 +00:00
"password": "8JCsPssfgS8tiRwiMlhARg==",
"tls": {
"enabled": true,
2023-02-22 03:24:51 +00:00
"server_name": "google.com",
"utls": {
"enabled": true,
"fingerprint": "chrome"
}
}
}
]
}
2022-09-02 11:03:37 +00:00
```