โ๏ธ๐ก๏ธ Cloudflare Tunnel (cloudflared) is a tool that creates a secure connection between your local server and Cloudflareโs network.
๐ฑ It lets you expose local development servers to the internet without configuring firewalls or routers.
๐ Traffic is encrypted and routed through Cloudflare, adding security and DDoS protection.
๐ Common Use Cases
๐ฑ Expose local development servers to your phone for testing
๐ Share local sites with others without deploying
๐ Add Cloudflareโs security layer to self-hosted services
๐ Access home network services remotely
๐ป Installation
# Download cloudflared wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64# Make executable chmod +x cloudflared-linux-amd64# Run tunnel ./cloudflared tunnel --url http://127.0.0.1:4096
๐ง Basic Usage
# Simple tunnel to local server cloudflared tunnel --url http://localhost:3000# Create a named tunnel cloudflared tunnel create my-tunnelcloudflared tunnel route dns my-tunnel example.example.comcloudflared tunnel run my-tunnel