Token导航 LogoToken导航

Agent Skill · 研究检索

cloudflare-tunnel-troubleshoot(cloudflare 隧道故障排除)

cloudflare-tunnel-troubleshoot 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

cloudflare-tunnel-troubleshoot 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 67,721。

总安装 242周安装 10GitHub Stars 1下载 79核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cloudflare-tunnel-troubleshoot(cloudflare 隧道故障排除)
来源仓库:https://github.com/dawiddutoit/custom-claude
仓库路径:skills/cloudflare-tunnel-troubleshoot
安装命令:
npx skills add https://github.com/dawiddutoit/custom-claude --skill cloudflare-tunnel-troubleshoot
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/dawiddutoit/custom-claude --skill cloudflare-tunnel-troubleshoot

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

诊断 Cloudflare Tunnel 连接故障,检查容器状态与最近注册记录。提供 docker logs 查看错误、重启服务与验证隧道活跃性的命令。涵盖 token 失效、网络阻断、端口冲突等典型问题解决方案。支持多服务共存时的命名空间隔离与 compose 文件管理。

遇到持续断开时应检查防火墙规则与 cloudflared 版本是否为最新。

来源仓库内路径:skills/cloudflare-tunnel-troubleshoot

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/dawiddutoit/custom-claude --skill cloudflare-t…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

cloudflare-tunnel-troubleshoot 怎么安装?

在终端执行 npx skills add https://github.com/dawiddutoit/custom-claude --skill cloudflare-tunnel-trou…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

cloudflare-tunnel-troubleshoot 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

cloudflare-tunnel-troubleshoot 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

cloudflare-tunnel-troubleshoot 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

cloudflare-tunnel-troubleshoot 用的人多吗?

公开数据是累计安装 242 次,近一周安装 10 次,下载 79 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

cloudflare-tunnel-troubleshoot 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
cloudflare-tunnel-troubleshoot

cloudflare 隧道故障排除 · 本页

2421需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Troubleshoot Cloudflare Tunnel Skill

Systematic diagnosis and resolution of Cloudflare Tunnel connectivity issues that prevent remote access to services.

Quick Start

Quick diagnostic for tunnel issues:

# Check cloudflared container status
docker ps | grep cloudflared

# Check recent tunnel registrations (should be within 10 minutes)
docker logs cloudflared --tail 100 | grep "Registered tunnel"

# Check for errors
docker logs cloudflared --tail 50 | grep -i error

# Restart if stuck
docker compose -f /home/dawiddutoit/projects/network/docker-compose.yml restart cloudflared

Table of Contents

  1. When to Use This Skill
  2. What This Skill Does
  3. Instructions

- 3.1 Check Cloudflared Container Status - 3.2 Verify Tunnel Token Configuration - 3.3 Check Recent Tunnel Registrations - 3.4 Analyze Tunnel Logs for Errors - 3.5 Verify Tunnel in Cloudflare Dashboard - 3.6 Test Remote Access - 3.7 Apply Fix

  1. Supporting Files
  2. Expected Outcomes
  3. Requirements
  4. Red Flags to Avoid

When to Use This Skill

Explicit Triggers:

  • "Tunnel not connecting"
  • "Tunnel down"
  • "Error 1033"
  • "Remote access not working"
  • "Fix Cloudflare Tunnel"
  • "Cloudflared not working"

Implicit Triggers:

  • Services work locally but not remotely
  • Cloudflare dashboard shows tunnel as disconnected
  • 502 Bad Gateway when accessing from internet
  • Cloudflared container in restart loop

Debugging Triggers:

  • "Why isn't remote access working?"
  • "Why is tunnel disconnected?"
  • "What is Error 1033?"

What This Skill Does

  1. Checks Container - Verifies cloudflared container is running
  2. Validates Token - Confirms CLOUDFLARE_TUNNEL_TOKEN is set
  3. Checks Registrations - Verifies tunnel has registered recently (within 10 min)
  4. Analyzes Logs - Searches for Error 1033, QUIC issues, connection failures
  5. Checks Dashboard - Verifies tunnel status in Cloudflare Zero Trust
  6. Tests Access - Attempts remote connection to verify tunnel routing
  7. Provides Fix - Gives specific recovery commands

Instructions

3.1 Check Cloudflared Container Status

docker ps | grep cloudflared

Expected: Container status "Up" with uptime > 1 minute

Check container health:

docker inspect cloudflared --format='{{.State.Status}}: {{.State.Health.Status}}'

If not running or unhealthy:

# Check why it stopped
docker logs cloudflared --tail 100

# Restart
docker compose -f /home/dawiddutoit/projects/network/docker-compose.yml up -d cloudflared

If in restart loop:

  • Token likely invalid or missing
  • Network connectivity issue
  • Proceed to step 3.2

3.2 Verify Tunnel Token Configuration

Check token is set in environment:

docker exec cloudflared env | grep TUNNEL_TOKEN

Expected: Shows long base64-encoded token

If empty or missing:

  1. Check.env file:
grep CLOUDFLARE_TUNNEL_TOKEN /home/dawiddutoit/projects/network/.env
  1. Verify docker-compose.yml passes it:
grep -A5 "cloudflared:" /home/dawiddutoit/projects/network/docker-compose.yml | grep TUNNEL_TOKEN
  1. Get new token from Cloudflare dashboard:

- Go to: https://one.dash.cloudflare.com → Access → Tunnels - Click on tunnel → Configure - Copy token from command

  1. Update.env and recreate container:
# Edit .env with new token
nano /home/dawiddutoit/projects/network/.env

# Recreate container
docker compose -f /home/dawiddutoit/projects/network/docker-compose.yml up -d --force-recreate cloudflared

3.3 Check Recent Tunnel Registrations

Healthy tunnel registers connections every few minutes:

# Check recent registrations (last 100 lines)
docker logs cloudflared --tail 100 | grep "Registered tunnel"

# Check timestamp of most recent registration
docker logs cloudflared --tail 100 | grep "Registered tunnel" | tail -1

Expected: Registration within last 10 minutes

If no recent registrations (older than 10 minutes):

  • Tunnel is stuck or disconnected
  • QUIC connection may have failed
  • Network connectivity issue

Check QUIC connection health:

docker logs cloudflared --tail 100 | grep -i quic

3.4 Analyze Tunnel Logs for Errors

Search for common error patterns:

# Check for Error 1033 (tunnel disconnected)
docker logs cloudflared --tail 100 | grep "1033"

# Check for general errors
docker logs cloudflared --tail 100 | grep -i error

# Check for authentication issues
docker logs cloudflared --tail 100 | grep -i "auth\|unauthorized\|forbidden"

# Check for network issues
docker logs cloudflared --tail 100 | grep -i "connect\|timeout\|dial"

Common error patterns:

ErrorMeaningFix
Error 1033Tunnel disconnected/stuckRestart cloudflared container
context deadline exceededNetwork timeoutCheck internet connectivity
unauthorizedInvalid tunnel tokenGet new token from dashboard
failed to connect to edgeCan't reach CloudflareCheck firewall/network
no such hostDNS resolution failureCheck DNS settings

3.5 Verify Tunnel in Cloudflare Dashboard

Check tunnel status in Cloudflare Zero Trust:

  1. Go to: https://one.dash.cloudflare.com
  2. Navigate to: Access → Tunnels
  3. Find your tunnel in list

Expected status: "Healthy" with green indicator

If "Down" or "Unhealthy":

  • Tunnel not connected from server side
  • Proceed to restart (step 3.7)

Check tunnel routes:

  1. Click tunnel name → Configure
  2. Verify Public Hostname routes are configured
  3. Expected routes:

- pihole.temet.ai → https://caddy:443 - ha.temet.ai → https://caddy:443 - jaeger.temet.ai → https://caddy:443 - etc.

3.6 Test Remote Access

Test accessing a service from internet (not local WiFi):

From mobile (using cellular data, not WiFi):

https://pihole.temet.ai

Expected: Cloudflare Access login page appears (or service if already authenticated)

Alternatively, use external proxy:

# Test from external service
curl -I --connect-timeout 10 https://pihole.temet.ai

If connection fails:

  • 502 Bad Gateway → Tunnel not routing correctly
  • Timeout → Tunnel not connected
  • Connection refused → Cloudflared not running
  • SSL error → Certificate issue (different skill)

3.7 Apply Fix

Fix A: Stuck Tunnel (most common)

Restart cloudflared container:

docker compose -f /home/dawiddutoit/projects/network/docker-compose.yml restart cloudflared

Wait 30 seconds, then verify:

docker logs cloudflared --tail 20 | grep "Registered tunnel"

Expected: Fresh registrations appearing

Fix B: Invalid Token

Get new token and recreate container:

# 1. Get new token from dashboard:
#    https://one.dash.cloudflare.com → Access → Tunnels → Configure

# 2. Update .env
nano /home/dawiddutoit/projects/network/.env
# Add: CLOUDFLARE_TUNNEL_TOKEN="new-token-here"

# 3. Recreate container
docker compose -f /home/dawiddutoit/projects/network/docker-compose.yml up -d --force-recreate cloudflared

# 4. Verify
docker logs cloudflared --tail 20

Fix C: Network Connectivity Issue

Check internet connectivity:

# Test connectivity to Cloudflare
docker exec cloudflared ping -c 3 1.1.1.1

# Test DNS resolution
docker exec cloudflared nslookup cloudflare.com

# Check container network
docker network inspect network_default

If network issues found, may need to recreate Docker network (see Docker network troubleshooting).

Fix D: Complete Tunnel Reset

If all else fails, full reset:

# Stop all services
cd /home/dawiddutoit/projects/network && \
docker compose down

# Recreate network
docker network rm network_default
docker network create network_default

# Start services
docker compose up -d

# Monitor tunnel connection
docker logs cloudflared -f

Watch for "Registered tunnel" messages appearing.

Supporting Files

FilePurpose
references/reference.mdCloudflare Tunnel architecture, Error 1033 details, QUIC protocol
examples/examples.mdExample log outputs, common scenarios

Expected Outcomes

Success:

  • Cloudflared container running and healthy
  • Recent tunnel registrations (within 10 minutes)
  • Tunnel shows "Healthy" in Cloudflare dashboard
  • Remote access works with OAuth prompt
  • No Error 1033 in logs

Partial Success:

  • Tunnel connecting but routes not configured (add routes in dashboard)
  • Tunnel working but intermittent (network instability)

Failure Indicators:

  • Cloudflared container not running or restarting
  • No tunnel registrations in logs
  • Error 1033 persists after restart
  • Remote access returns 502 Bad Gateway

Requirements

  • Docker running with cloudflared container
  • Valid Cloudflare Tunnel token
  • Internet connectivity from server
  • Cloudflare Zero Trust account
  • Tunnel configured in Cloudflare dashboard

Red Flags to Avoid

  • Do not delete tunnel in Cloudflare dashboard (creates orphaned token)
  • Do not expose ports 80/443 if tunnel not working (security risk)
  • Do not skip checking logs before restart (miss root cause)
  • Do not restart tunnel repeatedly (causes rate limiting)
  • Do not test remote access from local WiFi (use cellular/external)
  • Do not confuse tunnel token with API token (different credentials)
  • Do not modify tunnel routes without updating Caddyfile

Notes

  • Tunnel registrations should occur every few minutes (QUIC keep-alive)
  • Error 1033 typically indicates stuck/stale tunnel process
  • Tunnel uses outbound QUIC connection (no inbound ports needed)
  • Maximum tunnel downtime before auto-disconnect: ~10 minutes
  • Automated monitoring (infrastructure-monitor.sh) detects stuck tunnels
  • Tunnel routes are configured in Cloudflare dashboard, not locally
  • Use infrastructure-health-check skill for comprehensive diagnostics

平台分布

Codex

36.2%
按下载量换算29

Claude

31.12%
按下载量换算25

Cursor

17.03%
按下载量换算13

Gemini CLI

8.66%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills