No Description

Devin Carr b9898a9fbe TUN-8331: Add unit testing for AccessJWTValidator middleware 2 weeks ago
.github a6760a6cbf ci/check: bump actions/setup-go to v5 1 month ago
.mac_resources 0c65daaa7d AUTH-2712 mac package build script and better config file handling when started as a service 3 years ago
.teamcity c8ffdae859 TUN-8146: Fix Makefile targets should not be run in parallel and install-go script was missing shebang 3 months ago
carrier 887e486a63 TUN-7057: Remove dependency github.com/gorilla/mux 1 year ago
cfapi 86476e6248 TUN-8281: Run cloudflared query list tunnels/routes endpoint in a paginated way 1 month ago
cfio d1a4710aa2 TUN-6035: Reduce buffer size when proxying data 2 years ago
cmd 7deb4340b4 Format code 2 weeks ago
component-tests 5344a0bc6a TUN-8242: Enable remote diagnostics by default 1 month ago
config b5be8a6fa4 feat: auto tls sni 2 weeks ago
connection 76badfa01b TUN-8236: Add write timeout to quic and tcp connections 2 months ago
credentials b89c092c1b TUN-7134: Acquire token for cloudflared tail 1 year ago
datagramsession 5aaab967a3 TUN-7477: Decrement UDP sessions on shutdown 9 months ago
edgediscovery 991f01fe34 TUN-7131: Add cloudflared log event to connection messages and enable streaming logs 1 year ago
features 4ddc8d758b TUN-7970: Default to enable post quantum encryption for quic transport 4 months ago
fips 11cbff4ff7 RTG-1339 Support post-quantum hybrid key exchange 1 year ago
h2mux 2ee90483bf TUN-7585: Remove h2mux compression 9 months ago
hello b500e556bf TUN-7590: Remove usages of ioutil 9 months ago
ingress b9898a9fbe TUN-8331: Add unit testing for AccessJWTValidator middleware 1 week ago
internal 93acdaface TUN-7125: Add management streaming logs WebSocket protocol 1 year ago
ipaccess 99d4e48656 TUN-6016: Push local managed tunnels configuration to the edge 1 year ago
logger 2b4815a9f5 TUN-7543: Add --debug-stream flag to cloudflared access ssh 9 months ago
management 687682120c TUN-8333: Bump go-jose dependency to v4 1 week ago
metrics d8f2b768f8 TUN-7147: Revert wrong removal of debug endpoint from metrics port 1 year ago
orchestration 76badfa01b TUN-8236: Add write timeout to quic and tcp connections 2 months ago
overwatch 2f70b05c64 AUTH-2169 make access login page more generic 3 years ago
packet 2baea15387 ZTC-234: Replace ICMP funnels when ingress connection changes 1 year ago
proxy 3299a9bc15 TUN-8238: Fix type mismatch introduced by fast-forward 2 months ago
quic da6fac4133 TUN-8297: Improve write timeout logging on safe_stream.go 1 month ago
retry bfeaa3418d TUN-7624: Fix flaky TestBackoffGracePeriod test in cloudflared 9 months ago
signal 073c5bfdaa TUN-1562: Refactor connectedSignal to be safe to close multiple times 5 years ago
socks b500e556bf TUN-7590: Remove usages of ioutil 9 months ago
ssh_server_tests 197a70c9c4 Fix typos 2 years ago
sshgen 687682120c TUN-8333: Bump go-jose dependency to v4 1 week ago
stream d1e338ee48 TUN-7545: Add support for full bidirectionally streaming with close signal propagation 9 months ago
supervisor 76badfa01b TUN-8236: Add write timeout to quic and tcp connections 2 months ago
tlsconfig b500e556bf TUN-7590: Remove usages of ioutil 9 months ago
token 687682120c TUN-8333: Bump go-jose dependency to v4 1 week ago
tracing 12dd91ada1 TUN-8052: Update go to 1.21.5 4 months ago
tunneldns b500e556bf TUN-7590: Remove usages of ioutil 9 months ago
tunnelrpc a4a84bb27e tunnelrpc/pogs: fix dropped test errors (#1106) 4 months ago
tunnelstate 99f39225f1 TUN-6617: Dont fallback to http2 if QUIC conn was successful. 1 year ago
validation 81fe0bd12b TUN-7628: Correct Host parsing for Access 8 months ago
vendor 687682120c TUN-8333: Bump go-jose dependency to v4 1 week ago
watcher 65247b6f0f TUN-7584: Bump go 1.20.6 8 months ago
websocket 887e486a63 TUN-7057: Remove dependency github.com/gorilla/mux 1 year ago
.docker-images e89bceca5e TUN-6825: Fix cloudflared:version images require arch hyphens 1 year ago
.dockerignore d54c8cc745 TUN-5129: Use go 1.17 and copy .git folder to docker build to compute version 2 years ago
.gitignore 9552bb7bc7 TUN-5853 Add "install" make target and build package manager info into executable 2 years ago
CHANGES.md dc2c76738a TUN-8242: Update Changes.md file with new remote diagnostics behaviour 1 month ago
Dockerfile ecd101d485 TUN-8130: Install go tool chain in /tmp on build agents 3 months ago
Dockerfile.amd64 ecd101d485 TUN-8130: Install go tool chain in /tmp on build agents 3 months ago
Dockerfile.arm64 ecd101d485 TUN-8130: Install go tool chain in /tmp on build agents 3 months ago
LICENSE c54e8cd8e6 TUN-5851: Update all references to point to Apache License 2.0 2 years ago
Makefile c8ffdae859 TUN-8146: Fix Makefile targets should not be run in parallel and install-go script was missing shebang 3 months ago
README.md e23d928829 TUN-8118: Disable FIPS module to build with go-boring without CGO_ENABLED 3 months ago
RELEASE_NOTES a1a9f3813e Release 2024.4.0 1 week ago
build-packages-fips.sh cf5be91d2d TUN-8129: Use the same build command between branch and release builds 3 months ago
build-packages.sh 3ad4b732d4 TUN-8176: Support ARM platforms that don't have an FPU or have it enabled in kernel 2 months ago
catalog-info.yaml ac82c8b08b TUN-7599: Onboard cloudflared to Software Dashboard 9 months ago
cfsetup.yaml 8d9aab5217 TUN-8140: Remove homebrew scripts 3 months ago
check-fips.sh 70e675f42c TUN-5551: Reintroduce FIPS compliance for linux amd64 now as separate binaries 2 years ago
cloudflared.wxs 9e1f4c2bca Remove extraneous `period` from Path Environment Variable (#1009) 4 months ago
cloudflared_man_template 1ed9e0fceb AUTH-2644: Change install location and add man page 3 years ago
dev.Dockerfile ecd101d485 TUN-8130: Install go tool chain in /tmp on build agents 3 months ago
fmt-check.sh 515ad7cbee TUN-6917: Bump go to 1.19.3 1 year ago
github_message.py 4642316167 TUN-6823: Update github release message to pull from KV 1 year ago
github_release.py 50a0c44cee TUN-7392: Ignore release checksum upload if asset already uploaded 11 months ago
go.mod 687682120c TUN-8333: Bump go-jose dependency to v4 1 week ago
go.sum 687682120c TUN-8333: Bump go-jose dependency to v4 1 week ago
postinst.sh 28d556b8d4 AUTH-2858: Set file to disable autoupdate 3 years ago
postrm.sh 47ad3238dd TUN-8290: Remove `|| true` from postrm.sh 1 month ago
release_pkgs.py 5d8f60873d TUN-7718: Update R2 Token to no longer encode secret 7 months ago
wix.json 0c65daaa7d AUTH-2712 mac package build script and better config file handling when started as a service 3 years ago

README.md

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/connections/connect-apps

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.

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.