This is possible thanks to the work from fatedier on project frp.
frp is a fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet. As of now, it supports tcp & udp, as well as http and https protocols, where requests can be forwarded to internal services by domain name.
Just run this command to use frps:
docker run --rm --name frps –net=host -e FRP_BIND_PORT="7000" benzbrake/frps
Or using your own config file:
docker run --rm --name frps –net=host -v /path/to/frps.ini:/frps.ini benzbrake/frps
Just run this command to use frpc:
docker run --rm --name frpc –net=host -v /path/to/frpc.ini:/frpc.ini benzbrake/frpc
直接运行
docker run --rm --name frps –net=host benzbrake/frps
若需要修改默认端口
docker run --rm --name frps –net=host -e FRP_BIND_PORT="7000" benzbrake/frps
自定义配置文件
docker run --rm --name frps –net=host -v /path/to/frps.ini:/frps.ini benzbrake/frps
自定义配置文件:
docker run --rm --name frpc –net=host -v /path/to/frpc.ini:/frpc.ini benzbrake/frpc
搜索注册表benzbrke/frps,Tags 选择你要安装的版本下载
高级设置-卷-添加文件 本地文件自选(本地frps.ini),装载路径 /frps.ini (装载路径不能修改)
搜索注册表benzbrke/frpc,Tags 选择你要安装的版本下载
高级设置-卷-添加文件 本地文件自选(本地frpc.ini),装载路径 /frpc.ini (装载路径不能修改)