Skip to content

Instantly share code, notes, and snippets.

@cmbaughman
Created March 2, 2026 17:24
Show Gist options
  • Select an option

  • Save cmbaughman/963ca9d0af74e85982400490d4589fe4 to your computer and use it in GitHub Desktop.

Select an option

Save cmbaughman/963ca9d0af74e85982400490d4589fe4 to your computer and use it in GitHub Desktop.
Various Stuff for Cloudflare Warp CLI I need from time to time.
#!/bin/bash
# INSTALL
# =======
# Add Cloudflare's gpg key
curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg
# Add the repository
echo "deb [signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/cloudflare-client.list
# Install
sudo apt update && sudo apt install cloudflare-warp
## CONFIG/USAGE
# =============
# Set to use SOCKS5 mode
warp-cli mode proxy
warp-cli connect
# Making wget use the proxy
wget -e use_proxy=yes -e http_proxy=127.0.0.1:40000 http://filtered_domain.com
## THAT'S PRETTY MUCH IT. HAVE YOUR SCRIPT TURN THAT ON AND MAKE ALL REQUESTS WITH THIS PROXY.
##
## YOU CAN ALSO USE FLAREPROX - https://github.com/MrTurvey/flareprox AND KEEP CHANGING YOUR IP
## FOR EVERY REQUEST.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment