美文网首页
[内网穿透] frp

[内网穿透] frp

作者: w_w_wei | 来源:发表于2019-03-20 22:56 被阅读0次

服务器客户端都是同一套

wget https://github.com/fatedier/frp/releases/download/v0.15.1/frp_0.15.1_linux_amd64.tar.gz
 tar xzvf frp_0.15.1_linux_amd64.tar.gz
 mv frp_0.15.1_linux_amd64 frp

服务器配置

服务器配置文件 frps.ini

[common]
bind_port = 7000
vhost_http_port = 8088
vhost_https_port = 4430
dashboard_addr = 0.0.0.0
dashboard_port = 7001
dashboard_user = admin
dashboard_pwd = ctwj
privilege_token = ctwj
tcp_mux = falseFRP
use_compression = true

后台启动服务器

nohup ./frps -c frps.ini >/dev/null 2>&1 &

服务端需要关闭防火墙,或者开放端口

客户端配置

客户端配置文件 frpc.ini

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

[web]
type = http
local_ip = 127.0.0.1
local_port = 8088
remote_port = 8088
custom_domains = xxx.xxx.com

后台启动服务器

nohup ./frpc -c frpc.ini >/dev/null 2>&1 &

域名需要解析,连接成功后, 直接访问域名+端口,即可访问到内网的8088端口

相关文章

网友评论

      本文标题:[内网穿透] frp

      本文链接:https://www.haomeiwen.com/subject/nmpxvqtx.html