Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save budiantoip/1b278a8fe5612985454005b07f974d40 to your computer and use it in GitHub Desktop.
Save budiantoip/1b278a8fe5612985454005b07f974d40 to your computer and use it in GitHub Desktop.
How to install Cloudflare WARP to an Ubuntu server

Installation

curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ jammy main" | sudo tee /etc/apt/sources.list.d/cloudflare-client.list
sudo apt-get update && sudo apt-get install -y cloudflare-warp

Configuration

  1. Run this command:
    warp-cli registration new <team_name>
  2. Open this on your browser: https://<team_name>.cloudflareaccess.com/warp
  3. Inspect the Open Cloudflare WARP button
  4. Copy the long token that’s shown linked to the button
  5. Run this command:
    warp-cli --accept-tos registration token 'com.cloudflare.warp://<team_name>.cloudflareaccess.com/auth?token=<token you copied>'
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment