慕容的工作随笔

慕容的工作随笔

记录学习和工作

frp映射端口访问内网程序(亲测)

利用服务器公网ip

利用服务端7000端口映射内网81端口

服务端配置:

[common]
bind_port = 10081
dashboard_port = 7500
token = 10470c3b4b1fed12c3baac014be15fac67c6e815
dashboard_user = user
dashboard_pwd = user
vhost_http_port = 7000
vhost_https_port = 10443

客户端配置:

[common]
server_addr = xx.xx.xx.xx
server_port = 10081
token = 10470c3b4b1fed12c3baac014be15fac67c6e815

[web]
type = http
local_port = 81
custom_domains = xx.xx.xx.xx

 

如果要映射2个端口,就配置2个frp分别设置配置文件,暂未找到更好的方法

例如,映射7001端口为80端口

服务端:

[common]
bind_port = 10080
dashboard_port = 7600
token = 10470c3b4b1fed12c3baac014be15fac67c6e816
dashboard_user = user
dashboard_pwd = user
vhost_http_port = 7001

客户端:

[common]
server_addr = xx.xx.xx.xx
server_port = 10080
token = 10470c3b4b1fed12c3baac014be15fac67c6e816

[web]
type = http
local_port = 80
custom_domains = xx.xx.xx.xx

评论 (0)

还没有评论,来做第一个吧。

发表评论

提交后需管理员审核通过后显示