使用Cloudflare Tunnel内网穿透
现在发现还是飞牛nas自带的远控最方便1.先准备一个免费域名,选择账号下的Zero Trust,创建团队名称
!(https://tucdn.wpon.cn/2025/05/29/fbb6e980bea44-1748489547.png)
2.选中网络->Tunnels->创建隧道
!(https://tucdn.wpon.cn/2025/05/29/4f7db8c8b4671-1748489773.png)
!(https://tucdn.wpon.cn/2025/05/29/0a6fc0218ef94-1748489838.png)
!(https://tucdn.wpon.cn/2025/05/29/d083684638715-1748489853.png)
!(https://tucdn.wpon.cn/2025/05/29/b87c1645cd5c8-1748489897.png)
3.通过合适的命令选择在你需要的机子上运行
我这里是用的薅的华为云空间,安装docker运行
```css
docker run --name cloudflared -d --restart unless-stopped cloudflare/cloudflared:latest tunnel --no-autoupdate run --token 你的token
```
4.配置公共主机名
!(https://tucdn.wpon.cn/2025/05/29/deebb3334b95f-1748490085.png)
1)子域名随便填,域选择你的域名,路径可选
2)以对接青龙为例:类型选择HTTP访问时会自动替换成HTTPS,URL一定填
```makefile
172.17.0.1:5700
```
使用localhost或者127.0.0.1都不行,172.17.0.1这个是docker默认网关
5.配置好之后会在首页自动新建一个CNAME的DNS解析
!(https://tucdn.wpon.cn/2025/05/29/6f3e3b9084af6-1748500141.png)
6.延迟
!(https://tucdn.wpon.cn/2025/05/29/79049655df3c3-1748500251.png)
7.想要优化延迟的话可以再继续通过CF的SaaS优选一下IP 谢谢分享 最近在折腾家里云为了避免运营商检测,所以在用cloudflare tunnel
Cloudflare tunnel默认使用QUIC进行连接。直接使用是基于UDP的QUIC协议不太友好
修改为HTTP2连接只需添加参数
--protocol http2
cloudflare就可以使用HTTP2连接
实测效果更好,遇到udp环境差的运营商确实是个很好的办法
页:
[1]