/ip/socks
socks
The SOCKS proxy server accepts SOCKS client connections on its TCP port and relays them to the requested destinations, applying the access rules and, optionally, users authentication. For more information, see SOCKS.
ip/socks
Type: Settings Directory
SOCKS 代理服务器在其 TCP 端口上接受 SOCKS 客户端连接,并将其中继到请求的目标,同时应用 access 规则以及可选的 users 认证。更多信息请参阅 SOCKS。
| 参数 | 类型 | 描述 |
|---|---|---|
enabled | bool | SOCKS 代理服务器是否运行。默认值:no。 |
port | num | 代理监听的 TCP 端口。默认值:1080。 |
connection-idle-timeout | time | 空闲代理连接终止之前的时间。默认值:2m。 |
max-connections | num | 同时代理连接的最大数量,1 到 500。默认值:200。 |
vrf | enum | 代理监听所在的 VRF。当 VRF 不是 main 时,该端口仅能在该 VRF 内访问。默认值:main。 |
version | enum (4 | 5) | 服务器接受的 SOCKS 协议版本。 - 4(默认)- 仅接受 SOCKS4 客户端。 - 5 - 仅接受 SOCKS5 客户端。密码认证和 socksify 服务(始终使用 SOCKS5)需要此版本。 |
auth-method | enum (none | password) | 服务器要求客户端进行的认证。 - none(默认)- 不进行认证。 - password - 客户端必须使用 users 中的用户名和密码进行认证。如果不存在用户,则拒绝所有连接。 |