因为光纤改造,安装上了光纤,没了公网 IP,嗯,也没有去找客服要,想着试一下内网穿透。frp 这个内网穿透的工具,使用配置起来,还是挺简单的
frp 下载地址:https://github.com/fatedier/frp/releases
服务端配置(frps,具有公网 IP 的设备)
[common]
bind_port = 7000
subdomain_host = lidong.me
vhost_https_port = 443
服务端启动
sudo nohup ./frps -c ./frps.ini &
客户端配置(frpc 无公网 IP 的设备)
[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
客户端启动
nohup ./frpc -c frpc.ini
更新记录
- 2018-11-18 15:04:33 首次发布
- 2018/12/31 19:02:13 增加启动脚本