2022-08-24 21:02:28 +08:00
|
|
|
`socks` 出站是 socks4/socks4a/socks5 客户端
|
|
|
|
|
2022-08-31 13:21:29 +08:00
|
|
|
### 结构
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
2022-08-31 13:21:29 +08:00
|
|
|
"type": "socks",
|
|
|
|
"tag": "socks-out",
|
|
|
|
|
|
|
|
"server": "127.0.0.1",
|
|
|
|
"server_port": 1080,
|
|
|
|
"version": "5",
|
|
|
|
"username": "sekai",
|
|
|
|
"password": "admin",
|
|
|
|
"network": "udp",
|
|
|
|
"udp_over_tcp": false,
|
|
|
|
|
|
|
|
... // 拨号字段
|
2022-08-24 21:02:28 +08:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2022-08-31 13:21:29 +08:00
|
|
|
### 字段
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
#### server
|
|
|
|
|
|
|
|
==必填==
|
|
|
|
|
2022-08-25 09:45:22 +08:00
|
|
|
服务器地址。
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
#### server_port
|
|
|
|
|
|
|
|
==必填==
|
|
|
|
|
2022-08-25 09:45:22 +08:00
|
|
|
服务器端口。
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
#### version
|
|
|
|
|
|
|
|
SOCKS 版本, 可为 `4` `4a` `5`.
|
|
|
|
|
2022-08-25 09:45:22 +08:00
|
|
|
默认使用 SOCKS5。
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
#### username
|
|
|
|
|
2022-08-25 09:45:22 +08:00
|
|
|
SOCKS 用户名。
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
#### password
|
|
|
|
|
2022-08-25 09:45:22 +08:00
|
|
|
SOCKS5 密码。
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
#### network
|
|
|
|
|
|
|
|
启用的网络协议
|
|
|
|
|
|
|
|
`tcp` 或 `udp`。
|
|
|
|
|
|
|
|
默认所有。
|
|
|
|
|
|
|
|
#### udp_over_tcp
|
|
|
|
|
|
|
|
启用 UDP over TCP 协议。
|
|
|
|
|
|
|
|
### 拨号字段
|
|
|
|
|
2022-08-31 13:21:29 +08:00
|
|
|
参阅 [拨号字段](/zh/configuration/shared/dial/)。
|