【群晖NAS】一键脚本搭建frp内网穿透,在外轻松远程访问内网设备|远程桌面
【群晖NAS】一键脚本搭建frp内网穿透,在外轻松远程访问内网设备|远程桌面
-
OpenWrt软路由固件:【https://github.com/sirpdboy/openwrt#%E5%9B%BA%E4%BB%B6%E4%B8%8B%E8%BD%BD】
更多固件可参考此文章:【https://naiyous.com/2336.html】
SSH连接工具Finalshell:【点击进入】 -
FRP开源项目地址:【https://github.com/fatedier/frp】
-
FRP一键脚本地址:【https://github.com/MvsCode/frps-onekey?tab=readme-ov-file】
-
一键安装脚本
wget https://gitee.com/mvscode/frps-onekey/raw/master/install-frps.sh -O ./install-frps.sh chmod 700 ./install-frps.sh ./install-frps.sh install
-
设置后台运行
nohup ./frps -c frps.ini >/dev/null 2>&1 &
-
防火墙相关(国内服务器可以直接设置防火墙规则)
Debian或Ubuntu系统放行端口: ufw allow 端口号 iptables -A INPUT -p tcp --dport 端口号 -j ACCEPTCentOS系统放行端口: firewall-cmd --zone=public --add-port=端口号/tcp --permanent
-
FRP常用命令
开启FRP:frps start停止FRP:frps stop重启FRP:frps restart打开配置文件:frps config查看FRP版本:frps version检查FRP运行状态:frps status
-
-
openwrt设置
-
安装frpc
- frpc下载:【https://github.com/kuoruan/openwrt-frp/releases】
- luci-app-frpc和汉化包下载:【https://github.com/kuoruan/luci-app-frpc/releases】
- 查看CPU架构
cat /etc/os-release |grep ARCH
-
设置
-