Cloudflare WARP is a proxy that offers faster and more secure internet connectivity by encrypting and routing traffic through Cloudflare’s global network of servers, while also blocking malware and protecting user privacy.

You have two ways of installing WARP on Linux, depending on the distro you are using:

Setup package repository

Cloudflare’s client-side software can be installed on Linux with package managers APT or YUM by following these instructions. However, keep in mind that not all packages may support all operating systems!

Debian

First, install the repository’s GPG key:

curl https://pkg.cloudflareclient.com/pubkey.gpg | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg

Then add the repository to your machine’s apt sources:

echo "deb [arch=amd64 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

Finally, update your linux machine:

sudo apt update

and now packages from this repository can be installed directly with APT!

Ubuntu

First, install the repository’s GPG key:

curl https://pkg.cloudflareclient.com/pubkey.gpg | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg

Then add the repository to your machine’s apt sources:

echo "deb [arch=amd64 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

Finally, update your linux machine:

sudo apt update

Red Hat Enterprise Linux

Install the repository with RPM (replace with the release version number):

sudo rpm -ivh https://pkg.cloudflareclient.com/cloudflare-release-el<VERSION>.rpm

Finally, update your linux machine:

sudo dnf update

Installating the Cloudflare-WARP

  • Debian Based: sudo apt install cloudflare-warp
  • Red Hat Based: sudo yum install cloudflare-warp

Post Install Steps

The command line interface is the primary way to use WARP.

  1. Register the client warp-cli register.
  2. Connect warp-cli connect.
  3. Run curl https://www.cloudflare.com/cdn-cgi/trace/ and verify that warp=on.

Always stay connected

If you want to always stay connected to WARP you must call enable-always-on.

To enable this feature, run:

warp-cli enable-always-on

Switching modes

You can use warp-cli set-mode --help to get a list of the modes to switch between.

For example:

  • DNS only mode via DoH: warp-cli set-mode doh
  • WARP with DoH: warp-cli set-mode warp+doh

References

  1. 1.1.1.1
  2. APT & RPM Repository
  3. Package Repository
  4. Cloudflare WARP Client