frp内网穿透

发布时间 2023-10-11 14:47:48作者: st779779

frp内网穿透

文档

https://gofrp.org/docs/setup/

下载

https://github.com/fatedier/frp/releases

服务器配置

frps.ini

[common]
;绑定的端口
bind_port = 7000 
; 控制台的端口
dashboard_port = 7500 
; 控制台用户名
dashboard_user = admin
; 控制台的端口
dashboard_pwd = admin
; token认证
authentication_method = token
; token
token = pass123456
; http 端口
vhost_http_port = 6100 

可使用 外网ip:6100 来访问

启动方式 在解压后的目录里面
frps -c frps.ini

客服端配置

frpc.ini

[common]
; 服务器ip
server_addr = 111.12.13.15
; 服务器端口
server_port = 7000
; 验证方式
authentication_method = token
token = pass123456

[web01]
; http端口转发
type = http
; 转到本地 ip
local_ip = 127.0.0.1
; 端口
local_port = 8000
; 服务器ip
custom_domains = 111.12.13.15

windows系统 直接打开 命令窗口 运行 frpc.exe

最终效果

http://111.12.13.15:7000 直接访问控制台

这样 一个简单 通过
http://111.12.13.15:6100
访问就能把端口转发到
客户端的 127.0.0.1:8000