Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Comprehensive Cloudflare platform skill covering Workers, D1, R2, KV, AI, Durable Objects, and security.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/tunnel/README.md
1# Cloudflare Tunnel23Secure outbound-only connections between infrastructure and Cloudflare's global network.45## Overview67Cloudflare Tunnel (formerly Argo Tunnel) enables:8- **Outbound-only connections** - No inbound ports or firewall changes9- **Public hostname routing** - Expose local services to internet10- **Private network access** - Connect internal networks via WARP11- **Zero Trust integration** - Built-in access policies1213**Architecture**: Tunnel (persistent object) → Replica (`cloudflared` process) → Origin services1415**Terminology:**16- **Tunnel**: Named persistent object with UUID17- **Replica**: Individual `cloudflared` process connected to tunnel18- **Config Source**: Where ingress rules stored (local file vs Cloudflare dashboard)19- **Connector**: Legacy term for replica2021## Quick Start2223### Local Config24```bash25# Install cloudflared26brew install cloudflared # macOS2728# Authenticate29cloudflared tunnel login3031# Create tunnel32cloudflared tunnel create my-tunnel3334# Route DNS35cloudflared tunnel route dns my-tunnel app.example.com3637# Run tunnel38cloudflared tunnel run my-tunnel39```4041### Dashboard Config (Recommended)421. **Zero Trust** > **Networks** > **Tunnels** > **Create**432. Name tunnel, copy token443. Configure routes in dashboard454. Run: `cloudflared tunnel --no-autoupdate run --token <TOKEN>`4647## Decision Tree4849**Choose config source:**50```51Need centralized config updates?52├─ Yes → Token-based (dashboard config)53└─ No → Local config file5455Multiple environments (dev/staging/prod)?56├─ Yes → Local config (version controlled)57└─ No → Either works5859Need firewall approval?60└─ See networking.md first61```6263## Core Commands6465```bash66# Tunnel lifecycle67cloudflared tunnel create <name>68cloudflared tunnel list69cloudflared tunnel info <name>70cloudflared tunnel delete <name>7172# DNS routing73cloudflared tunnel route dns <tunnel> <hostname>74cloudflared tunnel route list7576# Private network77cloudflared tunnel route ip add 10.0.0.0/8 <tunnel>7879# Run tunnel80cloudflared tunnel run <name>81```8283## Configuration Example8485```yaml86# ~/.cloudflared/config.yml87tunnel: 6ff42ae2-765d-4adf-8112-31c55c1551ef88credentials-file: /root/.cloudflared/6ff42ae2-765d-4adf-8112-31c55c1551ef.json8990ingress:91- hostname: app.example.com92service: http://localhost:800093- hostname: api.example.com94service: https://localhost:844395originRequest:96noTLSVerify: true97- service: http_status:40498```99100## Reading Order101102**New to Cloudflare Tunnel:**1031. This README (overview, quick start)1042. [networking.md](./networking.md) - Firewall rules, connectivity pre-checks1053. [configuration.md](./configuration.md) - Config file options, ingress rules1064. [patterns.md](./patterns.md) - Docker, Kubernetes, production deployment1075. [gotchas.md](./gotchas.md) - Troubleshooting, best practices108109**Enterprise deployment:**1101. [networking.md](./networking.md) - Corporate firewall requirements1112. [gotchas.md](./gotchas.md) - HA setup, security best practices1123. [patterns.md](./patterns.md) - Kubernetes, rolling updates113114**Programmatic control:**1151. [api.md](./api.md) - REST API, TypeScript SDK116117## In This Reference118119- [networking.md](./networking.md) - Firewall rules, ports, connectivity pre-checks120- [configuration.md](./configuration.md) - Config file options, ingress rules, TLS settings121- [api.md](./api.md) - REST API, TypeScript SDK, token-based tunnels122- [patterns.md](./patterns.md) - Docker, Kubernetes, Terraform, HA, use cases123- [gotchas.md](./gotchas.md) - Troubleshooting, limitations, best practices124125## See Also126127- [workers](../workers/) - Workers with Tunnel integration128- [access](../access/) - Zero Trust access policies129- [warp](../warp/) - WARP client for private networks130