sing-box/docs/configuration/outbound/socks.md

65 lines
774 B
Markdown
Raw Normal View History

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
==Required==
2022-07-08 18:48:43 +08:00
The server address.
#### server_port
==Required==
2022-07-08 18:48:43 +08:00
The server port.
#### version
The SOCKS version, one of `4` `4a` `5`.
2022-07-08 18:48:43 +08:00
SOCKS5 used by default.
2022-07-08 18:48:43 +08:00
#### username
SOCKS username.
2022-07-08 18:48:43 +08:00
#### password
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.