frp配置内网穿透访问家里的nas
家里局域网内有台nas,在去公司的路上想访问它
其内网地址为:
http://192.168.50.8:6002
1.frp版本v0.53.2
下载地址:
https://github.com/fatedier/frp/releases/download/v0.53.2/frp_0.53.2_linux_amd64.tar.gz
2.百度云服务器
其ip地址由于隐私的问题我们假定为
36.37.38.39
frps.toml
#用来响应外网地址
vhostHTTPPort = 6001
#frp固定给client端链接通信的端口
bindPort = 7000
#subDomainHost = “m.com”
启动指令:
nohup ./frps -c frps.toml >& log4 &
在nas上安装docker
修改frpc.toml
serverAddr = “120.48.78.246”
serverPort = 7000
[[proxies]]
name = “web1”
type = “tcp”
localIP = “127.0.0.1”
localPort = 6001
remotePort = 6001
[[proxies]]
name = “web2”
type = “tcp”
localIP = “127.0.0.1”
localPort = 6002
remotePort = 6002
运行:
./frpc -c frpc.toml
36.37.38.39:6002