Cloudflare notes

Thu, February 6, 2025 - 1 min read

Contents

TCP tunnel

  • On server: Install cloudflare tunnel in server
curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb &&
sudo dpkg -i cloudflared.deb
  • On client: Run command and connect at client
cloudflared access tcp --hostname [domain] --url localhost:5432

Note: On wsl, cloudflared must be installed on WSL, not on Windows.