frp配置
欢迎访问新站点: https://www.yidiankuaile.com/post/frp
因为光纤改造,安装上了光纤,没了公网IP,嗯,也没有去找客服要,想着试一下内网穿透。frp这个内网穿透的工具,使用配置起来,还是挺简单的
frp下载地址:https://github.com/fatedier/frp/releases
服务端配置(frps,具有公网IP的设备)
frps.ini1 2 3 4
| [common] bind_port = 7000 subdomain_host = lidong.me vhost_https_port = 443
|
服务端启动
1
| sudo nohup ./frps -c ./frps.ini &
|
客户端配置(frpc 无公网IP的设备)
frpc.ini1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| [common] server_addr = nas.lidong.me server_port = 7000
[audio] type = https local_port = 443 subdomain = audio
[download] type = https local_port = 443 subdomain = download
[files] type = https local_port = 443 subdomain = files
[mailplus] type = https local_port = 443 subdomain = mailplus
[note] type = https local_port = 443 subdomain = note
[drive] type = https local_port = 443 subdomain = drive
[moments] type = https local_port = 443 subdomain = moments
[video] type = https local_port = 443 subdomain = video
|
客户端启动
1
| nohup ./frpc -c frpc.ini
|
更新记录
- 2018/11/18 15:04:33 首次发布
- 2018/12/31 19:02:13 增加启动脚本
参考链接
发表于
,并被添加「
frp,
内网穿透 」标签,最后修改于
本文链接:https://lidong.me/blog/frp/