在飞牛NAS 中部署FRP穿透
1. Debian系统FRP部署:即使飞牛中DOCKER出现问题也能连接8000端口,只要Debian不崩,Debian稳定。2. Docker FRP部署:映射飞牛中其他服务的端口到外网中FRP的前提是需要一台公网服务器
视频教程:https://www.bilibili.com/video/BV1Zi1eYLEfP/?vd_source=d99cc69e99f6dd4cc703c18fe8ce63a9
博客教程:https://uain.cc/archives/L8i3tbKX
主要如下:
- cd /opt/ && wget https://github.com/fatedier/frp/releases/download/v0.60.0/frp_0.60.0_linux_amd64.tar.gz && tar -zxvf frp_0.60.0_linux_amd64.tar.gz && mv frp_0.60.0_linux_amd64 frp && rm -rf frp_0.60.0_linux_amd64.tar.gz && cd frp/ && rm -rf frps frps.toml LICENSE
复制代码
- <div>serverAddr = "0.0.0.0" # 服务端IP
- serverPort = 7000 # 服务端与客户端通信端口
- auth.method = "token"
- auth.token = "token" # 身份验证令牌,frpc要与frps一致
- [[proxies]]
- name = "fnos-tcp"
- type = "tcp"
- localIP = "127.0.0.1"
- localPort = 8000
- remotePort = 8000
- [[proxies]]
- name = "fnos-udp"
- type = "udp"
- localIP = "127.0.0.1"
- localPort = 8000
- remotePort = 8000</div>
复制代码- ./opt/frp/frps -c /opt/frp/frps.toml
复制代码
|