跳到主要内容

SOCKS5

将服务端公网端口作为 SOCKS5 代理入口,由客户端在内网完成握手与拨号。

基于 protocol = "tcp",通过 [tunnels.plugin] 启用;须同时配置 username 与 password。

示例​

服务端:

# orbien-server.toml
listen = "0.0.0.0:9527"

客户端:

# orbien.toml
server = "YOUR_SERVER_IP:9527"

[[tunnels]]
name = "socks5"
protocol = "tcp"
remotePort = 9000

[tunnels.plugin]
type = "socks5"
username = "admin"
password = "123456"

公网通过代理访问:

curl --socks5 YOUR_SERVER_IP:9000 -U admin:123456 http://example.com

参数​

参数必填默认值说明
name是隧道名称,唯一
protocol是固定为 tcp
remotePort是服务端对外监听端口(SOCKS5 入口)
plugin.type是固定为 socks5
plugin.username是SOCKS5 用户名
plugin.password是SOCKS5 密码
transport.bandwidth否0带宽上限(Mbps);0 表示不限制
transport.bandwidthLimitSide否client限速端:client / server
transport.proxyProtocolVersion否PROXY Protocol:v1 / v2