2022-08-31 05:21:29 +00:00
|
|
|
### 结构
|
2022-08-24 13:02:28 +00:00
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
2022-08-31 05:21:29 +00:00
|
|
|
"type": "shadowsocks",
|
|
|
|
"tag": "ss-out",
|
|
|
|
|
|
|
|
"server": "127.0.0.1",
|
|
|
|
"server_port": 1080,
|
|
|
|
"method": "2022-blake3-aes-128-gcm",
|
|
|
|
"password": "8JCsPssfgS8tiRwiMlhARg==",
|
2022-09-13 03:24:33 +00:00
|
|
|
"plugin": "",
|
|
|
|
"plugin_opts": "",
|
2022-08-31 05:21:29 +00:00
|
|
|
"network": "udp",
|
2023-03-17 04:24:29 +00:00
|
|
|
"udp_over_tcp": false | {},
|
2022-08-31 05:21:29 +00:00
|
|
|
"multiplex": {},
|
|
|
|
|
|
|
|
... // 拨号字段
|
2022-08-24 13:02:28 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2022-08-31 05:21:29 +00:00
|
|
|
### 字段
|
2022-08-24 13:02:28 +00:00
|
|
|
|
|
|
|
#### server
|
|
|
|
|
|
|
|
==必填==
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
服务器地址。
|
2022-08-24 13:02:28 +00:00
|
|
|
|
|
|
|
#### server_port
|
|
|
|
|
|
|
|
==必填==
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
服务器端口。
|
2022-08-24 13:02:28 +00:00
|
|
|
|
|
|
|
#### method
|
|
|
|
|
|
|
|
==必填==
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
加密方法:
|
2022-08-24 13:02:28 +00:00
|
|
|
|
|
|
|
* `2022-blake3-aes-128-gcm`
|
|
|
|
* `2022-blake3-aes-256-gcm`
|
|
|
|
* `2022-blake3-chacha20-poly1305`
|
|
|
|
* `none`
|
|
|
|
* `aes-128-gcm`
|
|
|
|
* `aes-192-gcm`
|
|
|
|
* `aes-256-gcm`
|
|
|
|
* `chacha20-ietf-poly1305`
|
|
|
|
* `xchacha20-ietf-poly1305`
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
旧加密方法:
|
2022-08-24 13:02:28 +00:00
|
|
|
|
|
|
|
* `aes-128-ctr`
|
|
|
|
* `aes-192-ctr`
|
|
|
|
* `aes-256-ctr`
|
|
|
|
* `aes-128-cfb`
|
|
|
|
* `aes-192-cfb`
|
|
|
|
* `aes-256-cfb`
|
|
|
|
* `rc4-md5`
|
|
|
|
* `chacha20-ietf`
|
|
|
|
* `xchacha20`
|
|
|
|
|
|
|
|
#### password
|
|
|
|
|
|
|
|
==必填==
|
|
|
|
|
2022-08-25 01:45:22 +00:00
|
|
|
Shadowsocks 密码。
|
2022-08-24 13:02:28 +00:00
|
|
|
|
2022-09-13 03:24:33 +00:00
|
|
|
#### plugin
|
|
|
|
|
|
|
|
Shadowsocks SIP003 插件,由内部实现。
|
|
|
|
|
|
|
|
仅支持 `obfs-local` 和 `v2ray-plugin`。
|
|
|
|
|
|
|
|
#### plugin_opts
|
|
|
|
|
|
|
|
Shadowsocks SIP003 插件参数。
|
|
|
|
|
2022-08-24 13:02:28 +00:00
|
|
|
#### network
|
|
|
|
|
|
|
|
启用的网络协议
|
|
|
|
|
|
|
|
`tcp` 或 `udp`。
|
|
|
|
|
|
|
|
默认所有。
|
|
|
|
|
|
|
|
#### udp_over_tcp
|
|
|
|
|
2023-03-17 04:24:29 +00:00
|
|
|
UDP over TCP 配置。
|
|
|
|
|
2023-12-14 14:23:52 +00:00
|
|
|
参阅 [UDP Over TCP](/zh/configuration/shared/udp-over-tcp/)。
|
2022-08-24 13:02:28 +00:00
|
|
|
|
|
|
|
与 `multiplex` 冲突。
|
|
|
|
|
|
|
|
#### multiplex
|
|
|
|
|
2023-11-08 04:09:22 +00:00
|
|
|
参阅 [多路复用](/zh/configuration/shared/multiplex#outbound)。
|
2022-08-24 13:02:28 +00:00
|
|
|
|
|
|
|
### 拨号字段
|
|
|
|
|
2022-08-31 05:21:29 +00:00
|
|
|
参阅 [拨号字段](/zh/configuration/shared/dial/)。
|