3

基于frp内网穿透

 2 years ago
source link: https://wakzz.cn/2018/11/25/other/%E5%9F%BA%E4%BA%8Efrp%E5%86%85%E7%BD%91%E7%A9%BF%E9%80%8F/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

基于frp内网穿透

祈雨的博客
2018-11-25

客户端在内网,外网访问不到其web服务。现在需要使该内网客户端的web服务能被外网访问。

frp github

releases

服务端为公网IP,可以被外网访问,且客户端可以访问到该服务端。

配置文件frps.ini

[common]
bind_port = 7000
nohup ./frps -c frps.ini &

配置文件frpc.ini

[common]
server_addr = 服务端IP
server_port = 7000

[tcp001]
type = tcp
local_ip = 127.0.0.1
local_port = 8080
remote_port = 9090
./frpc.exe -c frpc.ini

此时访问服务端IP:9090的请求会被frp转发到客户端所在机器,例如访问服务器IP:9090/info等价于访问客户端IP:8080/info


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK