迫于家里没有公网,在外面有时候又要使用家里的群晖。在目前这种开源节流的环境下,想到了cloudflare有提供了tunnel 功能,用来内网穿透,完全可以运用到群晖上。Cloudflare Tunnel提供一个安全便捷,跨网络的轻量级连接器,可以让我们在本机服务和Cloudflare之间创建安全的,仅出站连接。使用这种方式,用户无需配置防火墙,无需监听对外的IP地址,只要能访问公网就是能CF发布服务,把本机服务代理发布到公网。安装步骤登录进cloudflare控制台,点击Zero Trust进入tunnel配置页面,新建一个tunnel,随便起个名字,如nas,然后复制token 供后面使用群晖端使用。Nas安装cloudflared,群晖里面添加矿神的套件源去安装,安装过程中记得填写上一步复制下来的token保存。此时返回cloudflare 的tunnel 页面,应该可以看到连接状态为HEALTHY,说明链接成功。在Cloudflare-Networks-Tunnels-Public Hostname添加好相应的内网服务端口即可。经使用一段时间,测试1000M宽带下上传速度大概维持
Mick