2023 The frp Authors 保留所有权利
中文|English
配置 frps.toml
在 frps.toml 文件中添加以下内容:
bindPort = 7000
配置 frpc.toml
在 frpc.toml 文件中添加以下内容,确保设置正确的 Unix 域套接字路径:
serverAddr = "x.x.x.x"
serverPort = 7000
[[proxies]]
name = "unix_domain_socket"
type = "tcp"
remotePort = 6000
[proxies.plugin]
type = "unix_domain_socket"
# Unix 域套接字路径
unixPath = "/var/run/docker.sock"
启动 frps 和 frpc
使用 curl 查看 Docker 版本信息
curl http://x.x.x.x:6000/version
Configuration frps.toml
Add the following to the frps.toml file:
bindPort = 7000
Configuration frpc.toml
Add the following to the frpc.toml file to ensure that the correct Unix is set. Domain socket path:
serverAddr = "x.x.x.x"
serverPort = 7000
[[proxies]]
name = "unix_domain_socket"
type = "tcp"
remotePort = 6000
[proxies.plugin]
type = "unix_domain_socket"
# Unix 域套接字路径
unixPath = "/var/run/docker.sock"
Start frps and frpc
Use curl to view Docker version information
curl http://x.x.x.x:6000/version