首页>文档>Frp文档>转发 Unix 域套接字

转发 Unix 域套接字

这个示例通过配置 Unix域套接字客户端插件来通过 TCP 端口访问内网的 Unix域套接字服务,例如 Docker Daemon。

frps.ini内容如下:

[common]
bind_port = 7000

frpc.ini内容如下:

[common]
server_addr = x.x.x.x
server_port = 7000

[unix_domain_socket]
type = tcp
remote_port = 6000
plugin = unix_domain_socket
plugin_unix_path = /var/run/docker.sock

分别启动frps和frpc。

通过 curl命令查看docker版本信息

curl http://x.x.x.x:6000/version
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索