Skip to content

Cloudflare Tunnel在windows上使用问题笔记 #19

Description

@zhongfly
  1. 使用cloudflared.exe service install <token>安装cloudflared作为系统服务,并且绑定特定的cf隧道(https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/do-more-with-tunnels/local-management/as-a-service/windows/)
  2. sc start cloudflared启动服务 sc stop cloudflared停止服务 cloudflared tunnel diag获取诊断信息
  3. 编辑cloudflared系统服务的运行设置:https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/configure-tunnels/cloudflared-parameters/ 编辑注册表HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cloudflared,修改ImagePath属性里的运行参数。
  4. 运行参数的文档:https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/configure-tunnels/cloudflared-parameters/run-parameters/
  5. 可以自己设定连接时使用的协议:https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/troubleshoot-tunnels/connectivity-prechecks/#33-interpret-results ,默认优先使用quic协议、失败回落至http,可以使用--protocol http2强制使用http
  6. 使用前置代理,需要使用修改版(介绍仓库

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions