2022-07-08 18:48:43 +08:00
|
|
|
`socks` outbound is a socks4/socks4a/socks5 client.
|
|
|
|
|
|
|
|
### Structure
|
|
|
|
|
|
|
|
```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,
|
|
|
|
|
|
|
|
... // Dial Fields
|
2022-07-08 18:48:43 +08:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2022-08-31 13:21:29 +08:00
|
|
|
### Fields
|
2022-07-08 18:48:43 +08:00
|
|
|
|
|
|
|
#### server
|
|
|
|
|
2022-07-09 09:26:50 +08:00
|
|
|
==Required==
|
|
|
|
|
2022-07-08 18:48:43 +08:00
|
|
|
The server address.
|
|
|
|
|
|
|
|
#### server_port
|
|
|
|
|
2022-07-09 09:26:50 +08:00
|
|
|
==Required==
|
|
|
|
|
2022-07-08 18:48:43 +08:00
|
|
|
The server port.
|
|
|
|
|
|
|
|
#### version
|
|
|
|
|
2022-08-24 21:02:28 +08:00
|
|
|
The SOCKS version, one of `4` `4a` `5`.
|
2022-07-08 18:48:43 +08:00
|
|
|
|
2022-08-24 21:02:28 +08:00
|
|
|
SOCKS5 used by default.
|
2022-07-08 18:48:43 +08:00
|
|
|
|
|
|
|
#### username
|
|
|
|
|
2022-08-24 21:02:28 +08:00
|
|
|
SOCKS username.
|
2022-07-08 18:48:43 +08:00
|
|
|
|
|
|
|
#### password
|
|
|
|
|
2022-08-24 21:02:28 +08:00
|
|
|
SOCKS5 password.
|
2022-07-08 18:48:43 +08:00
|
|
|
|
|
|
|
#### network
|
|
|
|
|
|
|
|
Enabled network
|
|
|
|
|
|
|
|
One of `tcp` `udp`.
|
|
|
|
|
|
|
|
Both is enabled by default.
|
|
|
|
|
2022-08-12 17:55:52 +08:00
|
|
|
#### udp_over_tcp
|
|
|
|
|
|
|
|
Enable the UDP over TCP protocol.
|
|
|
|
|
2022-07-08 18:48:43 +08:00
|
|
|
### Dial Fields
|
|
|
|
|
2022-08-31 13:21:29 +08:00
|
|
|
See [Dial Fields](/configuration/shared/dial) for details.
|