cloudflared

cloudflareApache-2.0活跃维护

Cloudflare Tunnel 官方客户端,把本地服务安全地暴露到公网,无需开放端口或配置公网 IP,适合零信任内网穿透。

Cloudflare Tunnel client

2026.10.7发布于 2026-10-30 17:11 UTC16,488star +20 / 7 天1,528fork同步于 2026-11-10 05:24 UTC

怎么上手

README 里没有找到可直接复制的安装命令

README 里没有找到可直接复制的安装命令,请到 README 或官方文档查看安装方式。

硬件要求

README 没有说明硬件要求。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

这个项目的说明还在生成中,先参考下面「最近发版」和 README。

这个条目还没有人工点评。如果它对你很有用,欢迎到 提交仓库 页写下你的使用经验。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    最近发版

    5 个版本2026.10.7
    1. 2026.10.7最新正式版2026-10-30 · 2026-10-30 17:11 UTC

      SHA256 Checksums:

      cloudflared-amd64.pkg: 917e804561007221f83d9ba2ebd3dc9f7f2f328653d52af33e91e4a7a942d1fb
      cloudflared-arm64.pkg: 1ec2fdf94235f0b1422296383cb3eb028b75f4d9c2f2d51255651a3da2e357e6
      cloudflared-darwin-amd64.tgz: 5c55e77da7012cebca19170357e196176c48c9647cc2ead404702fa125ddbd86
      cloudflared-darwin-arm64.tgz: 2136431d5eb467bf447d2ee514b713e192719b143aec1d9e09bf7dc290d5bb12
      cloudflared-fips-linux-amd64: 426c7c0e3bdb1b62f43b88ede364c7e41bee9b5a5397546d1dd301420c75f9c7
      cloudflared-fips-linux-amd64.deb: 5ecda786849ef40b73407fcf946e922224a587f53ca4394745f521b567bb0c8c
      cloudflared-fips-linux-x86_64.rpm: 796608193f67341a37d86fec6097da8d439149593de8150df923495878dff0b7
      cloudflared-linux-386: 4823d2f038395617e04e4070601ab45c0c43f31f15ee7586be299e19ef49d46e
      cloudflared-linux-386.deb: 3b8c98b929855469a1bed892b4a2c5a88b25b071bb3307e670cf55cff10c0880
      cloudflared-linux-386.rpm: 155f7152eb85700569ae09c638b7088532ea9e66031ec10d272feb052509ffe3
      cloudflared-linux-aarch64.rpm: 6e58e8e388a4b4454b0f6c80f00eecbc98ac40a9bed76c4afc261b6ca7300c04
      cloudflared-linux-amd64: 1f99fb518b83dec2ba8d870a7cc991d82a77e6196295a3d2754ba17ab9f91872
      cloudflared-linux-amd64.deb: 70b1a1e0f46033ffc8d90b406e554044ba6cbf2e4360295ef1163aed31e09393
      cloudflared-linux-arm: 74f690f6707182839b63e0465726c7776dd63f0a174390b911d5d71f35cab94e
      cloudflared-linux-arm.deb: d8ad068223c19b9221319e7985c6ed0423f11e472493228a344ed347b0f1c93f
      cloudflared-linux-arm.rpm: f6f20852c7269a2c83635bad6a93ea8f4015356c4711318b1709a330f95409dc
      cloudflared-linux-arm64: 3df43aedc9ff291d1735b5cb576cb97e0b157488796db2e32b28aecabb445775
      cloudflared-linux-arm64.deb: d9407eb6e70ac31f54978a6b408a0320b51b664a6d0b498248692d7ac56bf836
      cloudflared-linux-armhf: 04548d1d5e6a45eaec43916078538192e447256bcc3551bc8265c4ece06a655b
      cloudflared-linux-armhf.deb: a89914a3db4faeaf935d673ccc5ca549655ebb2bb9b5db1ef23389ff51358216
      cloudflared-linux-armhf.rpm: 5622d077583cb93f86b45a0182c144b36615464f60ad6191ebbb39f77d5ce5cc
      cloudflared-linux-x86_64.rpm: 26c47d9d361459a818b519bc6b207dafe941bc50da921294752c6b0f094c32f0
      cloudflared-windows-386.exe: 88c6b972b410db0e26745f593510d772c825a13c5a2374819e3f13a05b333082
      cloudflared-windows-386.msi: d083222b52b52d73b477a922fe7bfb0043d7fca77228edd5ac155bab1c9dbe6f
      cloudflared-windows-amd64.exe: 2493dbc168923bb3e59e5e7716f71deced92992eea9acd6e9d74f84ac7751343
      cloudflared-windows-amd64.msi: 057a1370fe26b1a4d45d8673c219fa3ddb3c3b4bcbf0cde25ee938c932645387
      
    2. 2026.10.62026-10-29 · 2026-10-29 12:18 UTC
      查看更新说明

      SHA256 Checksums:

      cloudflared-amd64.pkg: dd58d7ab72eb821ba54282fcabf659edbf197a9f10e1f8a9ceb00a48aeb1fc31
      cloudflared-arm64.pkg: 591501ceb3ae7db9277b9a6dd5709984ea55823c7e305fac6fae703b85bb0f24
      cloudflared-darwin-amd64.tgz: 2b74a9a6b9e5161dbf79a77c2fcc6337cd7e9d2b23eee9d1b6635ecb17608589
      cloudflared-darwin-arm64.tgz: 380451015c3676789adc4200f43757e950e7173b920b0094e272e8bea59d7927
      cloudflared-fips-linux-amd64: 130f1104dfb502378e875e69137d72f8e758fab5268d04e9f6df9af01279f454
      cloudflared-fips-linux-amd64.deb: a8118cf0b6122b7713f8fb4dab22dbca444bcfbbe251db3fd45414c6a5ee539b
      cloudflared-fips-linux-x86_64.rpm: 4d35b285bdba6310ac7b718e75051300a21ca338c2874a8560d5b0d1420d3bcf
      cloudflared-linux-386: 2d2b419cd3d68611774364a6d04246a1ad8c4529186f6f3bcf40b25ab150cab4
      cloudflared-linux-386.deb: 6ca05ccf8a2132377fee8e181226fdf5a6afe3b55f9719d1ed1cfab3138df6ba
      cloudflared-linux-386.rpm: faa4f0bad6ec8c0b9ff44bec444fe58f51a186a80596471aba418d271af26188
      cloudflared-linux-aarch64.rpm: 2b1aa3ee65a41d799b418c7d677fc710c7f3e60fd173d905f601a4d8766da630
      cloudflared-linux-amd64: 1d356dac769d0dbf62ebe588c4034824bbff98d5790c2f844cc99e0e2f57462d
      cloudflared-linux-amd64.deb: 13d9a724a4d4271958a3728982ee983870a100959a159d2fa263b3450d0be72a
      cloudflared-linux-arm: 276b306200086dee90c10954fa37cf26a6664052fa750e04b1831f69158cd2f6
      cloudflared-linux-arm.deb: 45b8e1da3ca9ab0728df863d963526bd478e040b615d63620bbeac3ad718f24f
      cloudflared-linux-arm.rpm: 5ca4f2f9497bc24055d2892bee4a96474a4c1a7d7f98d535daabfe04ec6089d2
      cloudflared-linux-arm64: 0ae0e179475b2c77651a718d2b376e0151f4fca5954702a84f02843a4d5fcac0
      cloudflared-linux-arm64.deb: 621cd69e4c01c04813d74f446ccdd7eead7808dd9f6bfe0d15f7126d15a75792
      cloudflared-linux-armhf: 2d1e01655e12c82cb038dd662fa7cd567623f5fe995db1e09a968b5d091fb752
      cloudflared-linux-armhf.deb: 11d02b0e4664b2e2be4171969ddd1d5a2143ad42c5dccdf0353fca46d0be81c1
      cloudflared-linux-armhf.rpm: 9cb3439efef77606bea9c47ffff24a2b524d0333f0d11daa2fe77680bb18ef0b
      cloudflared-linux-x86_64.rpm: f05abc1e873c10aa18f4e3c0d01369662f233a668e2c2ef353b15c4bb7a747bb
      cloudflared-windows-386.exe: 617379457c8e91a3090c7ce48017ae623571ce53e8eae668972d11158a530091
      cloudflared-windows-386.msi: ce4579b34977414e5ddff1c77181586317a913952c08f575de33eaaf6ff4eb47
      cloudflared-windows-amd64.exe: d521b3bf68982165f0d06d76732f22d9a105ef057ff3ae4c0986f3a23190950f
      cloudflared-windows-amd64.msi: f702616fceb9a4500b2a1e7d894c8a3833f5ed6c420ec0c467629b037b44f41c
      
    3. 2026.10.52026-10-27 · 2026-10-27 13:31 UTC
      查看更新说明

      SHA256 Checksums:

      cloudflared-amd64.pkg: 37ff61f3f85cae776a6036d5fe506d2457a17d824e66e215732466791778dfdc
      cloudflared-arm64.pkg: 5cf65ba3b1336a07deb9e2754081205b219bbb621e28020e0acf23b859f0fb5d
      cloudflared-darwin-amd64.tgz: cb09afb9b4d0a4730de477ac710aebb6107568930a8345775629bf264f70c284
      cloudflared-darwin-arm64.tgz: 2b23964528ddcd641c1449275df8b5b51e3c7193b5257919846331bc5bc13b0f
      cloudflared-fips-linux-amd64: 8b82ac5790e58b652e8d2d407d9d81c1865acf58f4182406ec1c84f1a3f5a983
      cloudflared-fips-linux-amd64.deb: 0b7c732d71ceadd8df79a1c0f960a2a844aceb8f22c9bee0c25bfe5ffbc89864
      cloudflared-fips-linux-x86_64.rpm: 846387341b94c32d8576be0552fa89be37934d4b288a0106dff4a579bbb20d65
      cloudflared-linux-386: f2de713829081837130b38e27f3c95aa9d7fc1a4f48b833362d21234dd8780d8
      cloudflared-linux-386.deb: 47fe7a9e202dd4dae31f4ecf4af520890e4b5141c6ae734961e8d5a7635419d1
      cloudflared-linux-386.rpm: 1525285f6da4b73818c6343cc2cc0968caab566412fb0ccdd27282b94bd2e3d1
      cloudflared-linux-aarch64.rpm: 0823917bae187c54e6580228695cb6ef680d5ea45fdee133a6f99545f7563da1
      cloudflared-linux-amd64: e1bc0cf084fd9e590554fe769a86b1db46701c3f847a43d902f7b974a4e16298
      cloudflared-linux-amd64.deb: 149d1ec4ac8e58bdbf08a41cc42347da9184d9fb4ef0df6528d75c90a85ac0ed
      cloudflared-linux-arm: a018911e1bbfd739937f3011f589e9e73245baeee14742f8b3413472bb007adc
      cloudflared-linux-arm.deb: a61160e48ab5ad8db966c92c1089530c8add71678a137153053c3805f30f7617
      cloudflared-linux-arm.rpm: 9eb09f1e4fe0b6b1447d280c2f7b01df035645e739bf87f81e0e2bbdd3fe8915
      cloudflared-linux-arm64: 72e0d05a67e09da87cf495e409a28c3cc5994dd23fc66a982eebea6a55923b7d
      cloudflared-linux-arm64.deb: 361584f9c6a1af6f9c553011291494b72fb6c887841ce6735dc6df8b6e727e72
      cloudflared-linux-armhf: 4aed2f4179f2ac1068b45073761409ba4540a631a2e70df98543a65b4a982d27
      cloudflared-linux-armhf.deb: fb54289de26442ea64c3a58d00b3bfb29afa2b2966d08fea06dcbb9a346f84ba
      cloudflared-linux-armhf.rpm: fee1bb0ca472123f86fc0b8d01debe00b3932adfee28f30afd2b606fd2d7cde2
      cloudflared-linux-x86_64.rpm: 75404fd81031536d17a894f3a4cd3a3aa1c97d865107fbe4b7fd37a1f87c13aa
      cloudflared-windows-386.exe: 66cba8003e4f87a8e6b772f331b8c04c7d41ac4f2dc30dd2c13ae09de3b6007e
      cloudflared-windows-386.msi: 9b112e2f19b534f48b6a04af717b9984f92c71ab09719adc9821195f5aafe73c
      cloudflared-windows-amd64.exe: db4e4c413612a0916f3e1679d3caaf376f94911952d163028fb726fb2e0516a9
      cloudflared-windows-amd64.msi: 13de1bd2d40f0d896fc7875d663f9180c1bace50981349cd323f50711643d01d
      
    4. 2026.10.42026-10-26 · 2026-10-26 11:19 UTC
      查看更新说明

      SHA256 Checksums:

      cloudflared-amd64.pkg: 81859243be56a49e12ee38bc30c3a0f0ade24af54b59c3ef745fa4ef412e37aa
      cloudflared-arm64.pkg: 7b5e00c613ad743fead446368478b5f2676fea02965d9e867ac73f285a7a4b8b
      cloudflared-darwin-amd64.tgz: fdec0f9a1c726f4c10283fc0cd70e602d510c72887b737270433c81a08c883a9
      cloudflared-darwin-arm64.tgz: 49e7963072b2ca83fb44c09f4d4a7cda52d390c0c9c6f55bac83454a5bc43910
      cloudflared-fips-linux-amd64: fd0ef3651c0471073f757f639c77bcc50f7d198e8433d9d054350106c5616b38
      cloudflared-fips-linux-amd64.deb: 8ec8d2355ea9fbc1f9ee751df03dbd9caf6924447a4424ea34ffca6e5ce21d0d
      cloudflared-fips-linux-x86_64.rpm: 166328f8ed4c3e829f226b5c46644f183de6c93bb4a08fcf180b5d994b0b7e20
      cloudflared-linux-386: a759230628a894c9262cfc0535926ba1e0cc54260e0b35a6e6cf3833919c67f2
      cloudflared-linux-386.deb: 61e59cfd38e0dab602fb3b9cbbb9a6e41882c366dd6f00f1f4850165e3283ec8
      cloudflared-linux-386.rpm: e79ef053d20f67d375793fc69eca088ea0c5a873b4db1867388a520a9c5a83ac
      cloudflared-linux-aarch64.rpm: 96830c4d5c40c915bf7babfd8da4d05ede04b91d66f1214367eb4c0d2f1bea8c
      cloudflared-linux-amd64: ae5e8add7884b0531d66bbca4570d1de491ff6da51e4ebe7eb160cdf241d9e42
      cloudflared-linux-amd64.deb: 3d73cd9f085de5a947fce8a72d0acc34a6a18cb23f369549b1cd0efc51121e98
      cloudflared-linux-arm: f29b44e97ec18dd2971dfdd9bad0c6d460aaa78223b91b186219f02135c08d8c
      cloudflared-linux-arm.deb: b9283aa36e30328736cb574f188e30a24726203bb662c6a9be91e75301beb61d
      cloudflared-linux-arm.rpm: ce7a441fc7eb5cd2dc009735ef155a88b458dc4afa26479d5ac1cf1bdca3bf7c
      cloudflared-linux-arm64: 2b7203b4fb0ba28a0c1e12f8855ce2c25f76d266a8d5edafac5540b6812acff6
      cloudflared-linux-arm64.deb: d0d08a43521e52ba0707900ebe67314e7ca6f610b88024fe6562a408ab6a0f4d
      cloudflared-linux-armhf: aa3ee5a1fb33de7981075ffa3e07a89895989dcac455d1ee118b561835f6af44
      cloudflared-linux-armhf.deb: 1de5c4164d8004d3652580c62baf90cbd2def7244e337db4396ecbd3b0662e60
      cloudflared-linux-armhf.rpm: 7d58572f65b57da2ffd0080a71c0baf48b071e091a037be638e3daa4f9d8f1f1
      cloudflared-linux-x86_64.rpm: 1c5a1762f20093d960b319aff0f9aaa526270f1ffe3e0342a14604dd9453d619
      cloudflared-windows-386.exe: 6d38146a071184959adde89c299e87132d89777ee5318dcb066e6fac861ec63c
      cloudflared-windows-386.msi: 26e1680db8aeec2a203769c11201ae8e0fad7daf156b1d712b3a36f70c8ba73a
      cloudflared-windows-amd64.exe: 411b16d40c8d872243efeb52c550053d00af0a8a97fbb32e730fb8aba429eaa8
      cloudflared-windows-amd64.msi: 6d5bd5310304dfbed4263c81fcf3eb6e69dcace2b2f86e960032c9f1f46532bf
      
    5. 2026.10.32026-10-21 · 2026-10-21 13:17 UTC
      查看更新说明

      SHA256 Checksums:

      cloudflared-amd64.pkg: 2f32b5718968445e65589b3b36368e858e52b67d3d1e80c6504fef8521496631
      cloudflared-arm64.pkg: c70298fd895f04dbee4b82758f3dd6d60bb28f13a3f5c8980045b5131f332b78
      cloudflared-darwin-amd64.tgz: 947e2942d6a59922d80190d23b12f3ade8da16e23e3bd937182a48993b7c00db
      cloudflared-darwin-arm64.tgz: f249139e0541fa589c987397d867cc16c83ab1236d31eb6782f2e4552ee9cf80
      cloudflared-fips-linux-amd64: 99521d18115a1cf475de8705612ea56e5e2a5a7625b96634b2d047555528e3db
      cloudflared-fips-linux-amd64.deb: 50d54aa942cf827e024514b2a8e24bb59c1480e7071db5ec150e71c20426d3c2
      cloudflared-fips-linux-x86_64.rpm: 0f6deb8a709e18e8880136fbb6cb388e18a9b8d54d7334b370610fa8a22059cf
      cloudflared-linux-386: 7c533230928eae6443d6d87dce16e0af67fa1f60fb56860dca4e09883a8ee394
      cloudflared-linux-386.deb: eaf686113a233fd03953720b905e2ee974bf15e5909965c14ecef3951cb788f7
      cloudflared-linux-386.rpm: 3390a8fa2e1bcb10cfcf87870698841c509fa62d4c6ac8c1e7905c4407535a3e
      cloudflared-linux-aarch64.rpm: f1f91e23bf38219f59bbb52022214f1c99b0b6e14589f86907f9ba3ced53a281
      cloudflared-linux-amd64: 053b80b0a23031a038fdbf3c073f59f82b8f1f152aa67971d7383ffafc0dbab0
      cloudflared-linux-amd64.deb: 297d906a8fef396ec888b51571e783d594bde280f3b44d63e8fa343ef2c4cc4e
      cloudflared-linux-arm: 76f35faae119881ddf766b61baa9e27803aea6bea7111ed4170ed1b7a5c8637e
      cloudflared-linux-arm.deb: 53af737052f3d964956c5fbaca1d1f1ece85b72cdbc8e9b2e55f5961dae4f657
      cloudflared-linux-arm.rpm: 5e0b22ffd1e85bc3c7bd189b0bd92ba81b7ce001e8d10cd8c1b22f8f46b3198a
      cloudflared-linux-arm64: 89297ebfb9e8c99c0dc013a1140601453cf3798d8306c5591651f4a3f5210be8
      cloudflared-linux-arm64.deb: 9382c5406c5cb64821114360550b8903c600b20052e9e82359acf343834be2b7
      cloudflared-linux-armhf: 458928ef2729ad71ebf7c88c289f9ecb2ac8bc6810a3bd4d70778592b9b4268b
      cloudflared-linux-armhf.deb: 091a1b1b499b001dfd99b4fd6cdea3412e00676f264b8d5a5a87301d5d0739ed
      cloudflared-linux-armhf.rpm: e35c868ef9bed8ef7e70db6a2f25a0683f56bdb9383ebbe0af037f939ee6db8f
      cloudflared-linux-x86_64.rpm: de14351f7859728b166e411967ba9440c563c6953a0ca671f6ffb8a24ec6942f
      cloudflared-windows-386.exe: 84be6271133004dc103d71b1a2b6b80cf204685ebf277e2504082793507922cf
      cloudflared-windows-386.msi: d4e10858b673d6c415996dfd314c14a1e2fa79091ed0f2f5f9828562f4d112a4
      cloudflared-windows-amd64.exe: 76b2805253d0d6ffacb092a7acfbee99e7af6917835c0c5410e23f3ef5052da2
      cloudflared-windows-amd64.msi: b6aa7c4bafc53c098c16cc2addc888223286450968068e50d8861575877c9032
      

    README 原文

    未翻译

    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.

    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.

    TryCloudflare

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

    Breaking Changes

    Removal of CLI flags, environment variables, configuration keys, or commands is a breaking change. Such removals must be announced in the Cloudflare Tunnel changelog before the release that removes them.

    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

    Updating Go

    The go directive in go.mod must specify the full major.minor.patch version (for example, go 1.27.3). Do not omit the patch version, including .0 releases. This is the exact Go version used to build and test cloudflared: the Makefile exports GOTOOLCHAIN=go<version> from it, so make downloads that toolchain whenever the installed Go is older or newer. Tools that make runs with go run pkg@version also use this toolchain. A toolchain directive in go.mod is ignored; do not add one. To use the installed Go instead, run make <target> GOTOOLCHAIN=local.

    When upgrading Go, update the go directive and all corresponding version references in .gitlab-ci.yml, .ci/image/Dockerfile, .github/workflows/check.yaml, and the Dockerfiles. Update the Linux CI builder image and digest in .ci/linux.gitlab-ci.yml to match; its golangVersion selects the major/minor image family. On macOS and Windows a mismatch only costs a toolchain download. Builds that use GOTOOLCHAIN=local fail if their Go is older than go.mod and use their own Go if it is newer.

    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:

    make install-hooks
    

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