mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-25 10:01:30 +00:00
65 lines
774 B
Markdown
65 lines
774 B
Markdown
`socks` outbound is a socks4/socks4a/socks5 client.
|
|
|
|
### Structure
|
|
|
|
```json
|
|
{
|
|
"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
|
|
}
|
|
```
|
|
|
|
### Fields
|
|
|
|
#### server
|
|
|
|
==Required==
|
|
|
|
The server address.
|
|
|
|
#### server_port
|
|
|
|
==Required==
|
|
|
|
The server port.
|
|
|
|
#### version
|
|
|
|
The SOCKS version, one of `4` `4a` `5`.
|
|
|
|
SOCKS5 used by default.
|
|
|
|
#### username
|
|
|
|
SOCKS username.
|
|
|
|
#### password
|
|
|
|
SOCKS5 password.
|
|
|
|
#### network
|
|
|
|
Enabled network
|
|
|
|
One of `tcp` `udp`.
|
|
|
|
Both is enabled by default.
|
|
|
|
#### udp_over_tcp
|
|
|
|
Enable the UDP over TCP protocol.
|
|
|
|
### Dial Fields
|
|
|
|
See [Dial Fields](/configuration/shared/dial) for details.
|