Frp 内网穿透
资料
配置
- 服务端frps.ini
[common]
bind_port = 7000
vhost_http_port = 8080 # 一般不用配置,如果客户端配置httpweb服务 此项必须配置
- 启动 frps
./frps -c ./frps.ini
- 客户端frpc.ini
[common]
server_addr = x.x.x.x
server_port = 7000
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000
- 启动 frpc
./frpc -c ./frpc.ini
- 通过 ssh 访问内网机器,假设用户名为 test:
ssh -oPort=6000 test@x.x.x.x
或者
ssh -p 6000 test@x.x.x.x
可以配置管理页面 7500/static/#/
如果客户端是mac则需在共享中开启远程登录
linux 后台运行
nohup ./frps -c ./frps.ini &
window 后台运行
start /min xxx.exe 参数
资料
https://github.com/fatedier/frp#visit-your-web-service-in-lan-by-custom-domains
https://github.com/fatedier/frp/blob/master/README_zh.md#%E9%80%9A%E8%BF%87-ssh-%E8%AE%BF%E9%97%AE%E5%85%AC%E5%8F%B8%E5%86%85%E7%BD%91%E6%9C%BA%E5%99%A8