Skip to content

Commit 1e28512

Browse files
vxtlsxiaokangwang
authored andcommitted
Update shadowsocks.md
Add sample configuration to help users better configure the program.
1 parent 948315a commit 1e28512

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

docs/v5/config/proxy/shadowsocks.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,38 @@ outbound.shadowsocks
5454
::: warning
5555
"none" 不加密方式下,服务器端不会验证 "password" 中的密码。一般需要加上 TLS 并在传输层使用安全配置,例如 WebSocket 配置较长的 path
5656
:::
57+
Shadowsocks+aes-256-gcm配置示例,这是一个最简单的配置,不是最佳实践,这个配置可以用于回国,但是切勿用于翻墙!
58+
```json
59+
{
60+
"log": {
61+
"access": "",
62+
"error": "",
63+
"loglevel": "info"
64+
},
65+
"inbounds": [
66+
{
67+
"port": 443,
68+
"listen": "0.0.0.0",
69+
"protocol": "shadowsocks",
70+
"settings": {
71+
"method": "aes-256-gcm", //这里使用`aes-256-gcm`加密方式,如果你的CPU不带aes加密指令集也可以使用`"chacha20-poly1305"` 或 `"chacha20-ietf-poly1305"`
72+
"password": "ukrxmqlkYTnyyb5sgc8mqiDe5vMoFqRwxefqiigxfdzgigLASE=", //更改这里的密码,让他变得更加复杂
73+
"network": "tcp,udp"
74+
},
75+
"sniffing": {
76+
"enabled": false,//如果需要流量探测,请将其改为`true`
77+
"destOverride": [
78+
"http",
79+
"tls"
80+
]
81+
}
82+
}
83+
],
84+
"outbounds": [
85+
{
86+
"protocol": "freedom",
87+
"settings": {}
88+
}
89+
]
90+
}
91+
```

0 commit comments

Comments
 (0)