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