惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Vercel News
Vercel News
F
Fortinet All Blogs
月光博客
月光博客
G
Google Developers Blog
博客园 - Franky
GbyAI
GbyAI
The Cloudflare Blog
I
InfoQ
雷峰网
雷峰网
WordPress大学
WordPress大学
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
T
The Blog of Author Tim Ferriss
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 聂微东
小众软件
小众软件
腾讯CDC
B
Blog
量子位
V
V2EX
S
SegmentFault 最新的问题
Google DeepMind News
Google DeepMind News

LanYunのBlog

优化macOS Dock栏的显示与隐藏 解决macOS全屏模式下某些情况显示原始鼠标指针的问题 Yarn从Classic迁移到Modern nginx自编译 用santa对二进制进行监控和授权 ESXI 8.0安装黑群晖DSM 7.x openwrt编译过程记录 编译monero For macOS ARM 自建busuanzi不蒜子平台统计平台 浅记博客更新日志 (机翻)Kubo配置文件 修改brew services中服务的启动参数 技术杂记📝 解决Surge模块不能同步问题 为Arch Linux配置邮件服务 自编译NutClient-ESXI,更改邮件逻辑 解决ESXI和群晖使用SSH密钥登录问题 为J4125软路由ESXI中群晖提供UPS服务 在arch linux上搭建rustdesk server 解决虚拟机扩容中GPT PMBR大小不符问题 搭建Tuic V5 优雅地为macOS提供python多版本的支持 修复root路径下文件权限问题 解决macOS 14上利用Whisky运行steam时有关问题 在macOS中用PhpStorm配置Xdebug调试 利用CloudFlare Workers快速自建一个IP获取器 如何自动续期证书? 从0开始速配VPS用于网站等 搭建一个基于ChatGPT的QQ机器人(Yunzai-Bot) For Mac 010 Editor For Mac 13.0.1 Crack 破解
关于部署Cloudflare Zero Trust遇到的问题浅记录📝
LanYun · 2022-09-15 · via LanYunのBlog

前言

为了安全🔐部署了Cloudflare Zero Trust

遇到个困扰我挺久的问题,

搜索🔍无果,最后多方排查解决了.

以下系统环境为Arch Linux,网络环境通过OpenWrt(启用科学工具PassWall)获得.

通过dig命令获取不到 ANSWER SECTION

image-20220915190903487

问题如下:

1
2
3
4
5
6
7
8
9
10
11
Error looking up Cloudflare edge IPs: the DNS query failed error="lookup _v2-origintunneld._tcp.argotunnel.com on **.1:53: no such host"
2022-09-15T08:24:12Z ERR Please try the following things to diagnose this issue:
2022-09-15T08:24:12Z ERR 1. ensure that argotunnel.com is returning "origintunneld" service records.
2022-09-15T08:24:12Z ERR Run your system's equivalent of: dig srv _origintunneld._tcp.argotunnel.com
2022-09-15T08:24:12Z ERR 2. ensure that your DNS resolver is not returning compressed SRV records.
2022-09-15T08:24:12Z ERR See GitHub issue https://github.com/golang/go/issues/27546
2022-09-15T08:24:12Z ERR For example, you could use Cloudflare's 1.1.1.1 as your resolver:
2022-09-15T08:24:12Z ERR https://developers.cloudflare.com/1.1.1.1/setting-up-1.1.1.1/
2022-09-15T08:24:12Z INF Tunnel server stopped
2022-09-15T08:24:12Z ERR Initiating shutdown error="Could not lookup srv records on _v2-origintunneld._tcp.argotunnel.com: lookup _v2-origintunneld._tcp.argotunnel.com on **.1:53: no such host"
2022-09-15T08:24:12Z INF Metrics server stopped

更换DNS等等都不行.最终确定是我OpenWrt上DHCP/DNS配置有不合理之处

解决

进入网络,转到高级设置.

定位到过滤无用包(不转发公共域名服务器无法回应的请求)

将其取消选中,保存应用即可.

为啥会这样?

因为目标域名Ping不通,所以认定为无法回应的请求.

就将有关包全部过滤了.

DNS被劫持

如果你在用v2raya等代理工具,如果开启了,supervisor或者防止DNS污染等选项,很有可能导致cloudflared处于不可用或降级状态.

解决

关闭即可,如果你需要 防止DNS污染 功能,那么可能需要你进一步尝试,来让cloudflared正常工作(本人这里没时间具体测试,直接关了).

关于部署Cloudflare Zero Trust遇到的问题浅记录📝

  • WeChat

    WeChat

  • AliPay

    AliPay