Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

cloudflared

> 编程语言
Open source

Cloudflare Tunnel client

15.0K stars0 likes0 views
WebsiteGitHub

About

Cloudflare Tunnel client

Cloudflare Tunnel client

Contains the command-line client for Cloudflare Tunnel, a tunneling daemon that proxies traffic from the Cloudflare network to your origins. This daemon sits between Cloudflare network and your origin (e.g. a webserver). Cloudflare attracts client requests and sends them to you via this daemon, without requiring you to poke holes on your firewall --- your origin can remain as closed as possible. Extensive documentation can be found in the Cloudflare Tunnel section of the Cloudflare Docs. All usages related with proxying to your origins are available under cloudflared tunnel help.

You can also use cloudflared to access Tunnel origins (that are protected with cloudflared tunnel) for TCP traffic at Layer 4 (i.e., not HTTP/websocket), which is relevant for use cases such as SSH, RDP, etc. Such usages are available under cloudflared access help.

You can instead use WARP client to access private origins behind Tunnels for Layer 4 traffic without requiring cloudflared access commands on the client side.

Before you get started

Before you use Cloudflare Tunnel, you'll need to complete a few steps in the Cloudflare dashboard: you need to add a website to your Cloudflare account. Note that today it is possible to use Tunnel without a website (e.g. for private routing), but for legacy reasons this requirement is still necessary:

  1. Add a website to Cloudflare
  2. Change your domain nameservers to Cloudflare

Installing cloudflared

Downloads are available as standalone binaries, a Docker image, and Debian, RPM, and Homebrew packages. You can also find releases here on the cloudflared GitHub repository.

  • You can install on macOS via Homebrew or by downloading the latest Darwin amd64 release
  • Binaries, Debian, and RPM packages for Linux can be found here
  • A Docker image of cloudflared is available on DockerHub
  • You can install on Windows machines with the steps here
  • To build from source, install the required version of go, mentioned in the Development section below. Then you can run make cloudflared.

User documentation for Cloudflare Tunnel can be found at https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/

Creating Tunnels and routing traffic

Once installed, you can authenticate cloudflared into your Cloudflare account and begin creating Tunnels to serve traffic to your origins.

  • Create a Tunnel with these instructions
  • Route traffic to that Tunnel:
    • Via public DNS records in Cloudflare
    • Or via a public hostname guided by a Cloudflare Load Balancer
    • Or from WARP client private traffic

TryCloudflare

Want to test Cloudflare Tunnel before adding a website to Cloudflare? You can do so with TryCloudflare using the documentation available here.

Deprecated versions

Cloudflare currently supports versions of cloudflared that are within one year of the most recent release. Breaking changes unrelated to feature availability may be introduced that will impact versions released more than one year ago. You can read more about upgrading cloudflared in our developer documentation.

For example, as of January 2023 Cloudflare will support cloudflared version 2023.1.1 to cloudflared 2022.1.1.

Development

Requirements

  • GNU Make
  • capnp
  • go >= 1.26
  • Optional tools:
    • capnpc-go
    • goimports
    • golangci-lint
    • gomocks

Build

To build cloudflared locally run make cloudflared

Test

To locally run the tests run make test

Linting

To format the code and keep a good code quality use make fmt and make lint

Mocks

After changes on interfaces you might need to regenerate the mocks, so run make mocks

Git Hooks

To avoid CI errors, you can install pre-push hooks that run linting and tests before each push:

bash
make install-hooks

This will configure git to use the hooks in .githooks/ that run make fmt-check lint test before each push.

Issues· 548 open

View all issuesOpen on GitHub
  • #491

    grpc support

    Type: Feature RequestUpdated Oct 1, 2026
  • #1520

    Warning for no ingress rule when using remote managed tunnel with credentials-file

    Type: BugPriority: NormalUpdated Sep 28, 2026
  • #119

    Support for XDG Base Directory spec. (aka stop filling my ~ up)

    Updated Sep 28, 2026
  • #1748

    QUIC Hijack() skips the status-written check that HTTP/2 enforces

    Updated Sep 27, 2026
  • #1747

    QUIC Hijack() skips the status-written check that HTTP/2 enforces

    Type: BugPriority: NormalUpdated Sep 27, 2026
  • #1617

    Publish checksums and/or artifact attestations for release binaries

    Updated Sep 27, 2026
  • #1737

    2026.9.0 segfaults in quic-go QueueProbePacket (nil receiver) when running in a Docker bridge network — 2026.8.2 unaffected

    Type: BugPriority: NormalUpdated Sep 11, 2026
  • #1736

    --protocol auto does not fall back to HTTP/2 when the QUIC handshake is rejected with CRYPTO_ERROR 0x178 (tls: no application protocol), and the UDP precheck reports it as healthy

    Updated Sep 9, 2026
  • #1723

    Cloudflared tunnels failing to reach origin service that is running on a .local domain on linux

    Type: BugPriority: NormalUpdated Sep 3, 2026
  • #1734

    Add riscv64 to binary releases

    Type: Feature RequestPriority: NormalUpdated Sep 3, 2026

> Tags

Gocloudflarecloudflare-tunnelreverse-proxyzero-trust-network-access

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言