frp内网穿透
Server端(阿里云CentOS7)
1. 下载
wget https://github.com/fatedier/frp/releases/download/v0.22.0/frp_0.22.0_linux_amd64.tar.gz
2.tar解压到指定目录
3、编辑frps.ini文件
1 | [common] |
token与客户端配置文件对应,用于安全验证。
bind_port即流量转发端口,用于中转内网流量
dashboard_port后管登录端口,user, pwd则为登录的账号密码。
vhost_http(s)_port,用于中转http(s)流量,此4个接口都需先在安全组中放开
4.运行
nohup ./frps -c frps.ini &
Client端(macOS Big Sur)
1.下载相应架构package
https://github.com/fatedier/frp/releases
2.编辑ini文件
1 | [common] |
3. node开启本地测试服务
1 | var http = require('http'); |
4.访问公网域名及端口
5.参考
https://sspai.com/post/52523
https://blog.csdn.net/u013144287/article/details/78589643/