frp内网穿透基本用法服务搭建过程记录
内网穿透工具很多,大多需要付费,方式也有多种。frp开源,稳定
一、准备材料
A.主机,需有公网IP。aws,阿里云都可以,我是用aws。使用aws注意及时释放不用的服务或资源,防止被扣费
B.域名, www.xxx.top
C.本地内网机器,工作用64bit win10笔记本
D.frp,下载地址https://github.com/fatedier/frp/releases,下载系统相应版本的程序
E.准备发布的服务程序, mywechat
二、域名解析
已有域名添加解析绑定主机IP如图
三、frp配置
解压frp,目录如下,我的主机是64bit Windows Server2008
服务端配置frps_full.ini
[common]
bind_addr = 0.0.0.0
bind_port = 7000
vhost_http_port = 80
vhost_https_port = 443
privilege_token = 123456
subdomain_host = www.xxx.top
其它配置项使用默认配置,完成启动frps,生成frps.log,查看log是否启动成功
浏览器中访问http://xx.xx.xx.xx:7500显示dashboard概况
客户端配置frpc_full.ini
server_addr = xx.xx.xx.xx
server_port = 7000