Skip to content

Fleet

This guide covers how to deploy the Cloudflare One Client (formerly WARP) using Fleet ↗︎ device management software.

macOS

1. Create a custom MDM file

  1. Download an example .mobileconfig file.
  2. Modify the file with your desired deployment parameters.

2. Upload MDM file to Fleet

  1. In the Fleet admin console, go to Controls.
  2. From the Fleets dropdown, select the fleet (group of hosts) that requires the Cloudflare One Client.
  3. Select OS settings > Configuration profiles.
  4. Select Add profile and upload the custom .mobileconfig.
  5. Select the hosts which require the Cloudflare One Client:
    • All hosts: Deploys the Cloudflare One Client to all hosts in the fleet.
    • Custom: Deploys the Cloudflare One Client to a subset of the hosts in the fleet. Use labels ↗︎ to define the hosts that should be included or excluded.
  6. Select Add profile.

The defined hosts will immediately receive the deployment profile, but the Cloudflare One Client is not yet installed.

3. Download Cloudflare One Client package for macOS

Visit the Download page to review system requirements and download the installer for your operating system.

4. Upload Cloudflare One Client package to Fleet

To add the Cloudflare One Client installer package for distribution to your hosts enrolled in Fleet:

  1. In the Fleet admin console, go to Software.
  2. From the Fleets dropdown, select the fleet (group of hosts) that requires the Cloudflare One Client.
  3. Select Add Software and upload the .pkg file that was previously downloaded.

5. Install the Cloudflare One Client with Fleet

To deploy the uploaded .pkg file to your hosts:

  1. In the Fleet admin console, go to Hosts.
  2. Select the host that requires the Cloudflare One Client.
  3. Go to Software and search for Cloudflare.
  4. Select Actions > Install.

Installation will happen automatically when the host comes online. To deploy with REST API or GitOps, refer to the Fleet documentation ↗︎.

After deploying the Cloudflare One Client, you can check its connection progress using the Connectivity status messages displayed in the Cloudflare One Client GUI.

6. Uninstall the Cloudflare One Client with Fleet

To uninstall the Fleet-deployed Cloudflare One Client:

  1. In the Fleet admin console, go to Hosts.
  2. Select the host that requires the Cloudflare One Client to be uninstalled.
  3. Go to Software and search for Cloudflare.
  4. Select Actions > Uninstall.

Windows

1. Download Cloudflare One Client package for Windows

Visit the Download page to review system requirements and download the installer for your operating system.

2. Upload Cloudflare One Client package to Fleet

To add the Cloudflare One Client installer package for distribution to your hosts enrolled in Fleet:

  1. In the Fleet admin console, go to Software.
  2. From the Fleets dropdown, select the fleet (group of hosts) that requires the Cloudflare One Client.
  3. Select Add Software and upload the .msi file that was previously downloaded.
  4. (Optional) To allow users to install the Cloudflare One Client from Fleet Desktop, select Self-service.
  5. Select Advanced options.
  6. In Install script, replace the default script with the following:
$logFile = "${env:TEMP}/fleet-install-software.log"

try {

$installProcess = Start-Process msiexec.exe `
  -ArgumentList "/quiet /norestart ORGANIZATION=your-team-name SUPPORT_URL=https://example.com /lv ${logFile} /i `"${env:INSTALLER_PATH}`"" `
  -PassThru -Verb RunAs -Wait

Get-Content $logFile -Tail 500

Exit $installProcess.ExitCode

} catch {
  Write-Host "Error: $_"
  Exit 1
}

Refer to deployment parameters for a description of each argument.

3. Install the Cloudflare One Client with Fleet

To deploy the uploaded .pkg file to your hosts:

  1. In the Fleet admin console, go to Hosts.
  2. Select the host that requires the Cloudflare One Client.
  3. Go to Software and search for Cloudflare.
  4. Select Actions > Install.

Installation will happen automatically when the host comes online. To deploy with REST API or GitOps, refer to the Fleet documentation ↗︎.

After deploying the Cloudflare One Client, you can check its connection progress using the Connectivity status messages displayed in the Cloudflare One Client GUI.

4. Uninstall the Cloudflare One Client with Fleet

To uninstall the Fleet-deployed Cloudflare One Client:

  1. In the Fleet admin console, go to Hosts.
  2. Select the host that requires the Cloudflare One Client to be uninstalled.
  3. Go to Software and search for Cloudflare.
  4. Select Actions > Uninstall.

Linux

Fleet allows you to execute custom scripts ↗︎ on Linux hosts. The following example script creates an MDM file and installs the Cloudflare One Client on an Ubuntu 22.04 host:

#!/bin/sh

# Write the mdm.xml file
touch /var/lib/cloudflare-warp/mdm.xml
echo -e "<dict>\n   <key>organization</key>\n   <string>your-team-name</string>\n</dict>
" > /var/lib/cloudflare-warp/mdm.xml

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

# Add this repo to your apt repositories
echo "deb [signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ any main" | sudo tee /etc/apt/sources.list.d/cloudflare-client.list

# Install
sudo apt-get -y update && sudo apt-get -y install cloudflare-warp

To install the Cloudflare One Client on other Linux distributions, refer to the package repository ↗︎.

Android

Fleet can deploy the Cloudflare One Agent to Android devices as a managed app and configure it with a managed configuration file. This guide covers fully managed (company-owned) devices.

Prerequisites

  • Android MDM turned on in Fleet ↗︎ and Android devices enrolled in the fleet that requires the Cloudflare One Agent.
  • A Zero Trust organization with device enrollment permissions that allow your users to enroll.
  • A web browser installed on the device. The Cloudflare One Agent opens a browser to sign in, and a fully managed device might not have one available by default. Add a browser such as Chrome ↗︎ to the same fleet.

1. Create a managed configuration file

Create a JSON file with your desired deployment parameters. Fleet takes the app's settings as a plain JSON object under managedConfiguration. Place the Cloudflare One Agent parameters inside app_config_bundle_list:

{
  "managedConfiguration": {
    "app_config_bundle_list": [
      {
        "organization": "your-team-name",
        "display_name": "Production environment",
        "service_mode": "warp",
        "switch_locked": true,
        "auto_connect": 0
      }
    ]
  }
}

The display_name parameter is required whenever you specify organization.

2. Add the Cloudflare One Agent to Fleet

Add the Cloudflare One Agent (com.cloudflare.cloudflareoneagent) from Google Play as an Android app for the fleet, and set its managed configuration to the file you created. For the steps in the Fleet admin console and REST API, refer to the Fleet documentation ↗︎.

To deploy with GitOps, add the app to the fleet's software.app_store_apps list. The configuration.path value assumes the repository layout that fleetctl new generates, with fleet files in fleets/ and managed app configurations in platforms/android/managed-app-configurations/:

software:
  app_store_apps:
    - app_store_id: com.cloudflare.cloudflareoneagent
      platform: android
      self_service: true
      setup_experience: true
      configuration:
        path: ../platforms/android/managed-app-configurations/cloudflare-one-agent.json
    - app_store_id: com.android.chrome
      platform: android
      self_service: true
      setup_experience: true

With setup_experience: true, Fleet installs the apps while a device enrolls. This only applies to devices that enroll after you add it. Install the app on devices that are already enrolled as described in the next step.

3. Install the Cloudflare One Agent on enrolled devices

Fleet cannot yet install software on an Android host that is already enrolled. Because the apps in this guide have self_service: true, they are available in the managed Google Play store on the device. On a device that enrolled before you added the apps, ask the user to open the managed Google Play store and install the Cloudflare One Agent and the browser.

Changes to the managed configuration apply to the installed app without reinstalling it. Fleet shows the app as pending until the configuration reaches the device.

After the app opens, the user signs in to your Zero Trust organization.

After deploying the Cloudflare One Client, you can check its connection progress using the Connectivity status messages displayed in the Cloudflare One Client GUI.

4. (Optional) Use per-app VPN

Per-app VPN sends traffic from only the apps you choose through the Cloudflare One Client. It requires Cloudflare One Agent version 2.3 or greater.

Add a tunneled_apps array to the managed configuration. Each entry has an app_identifier (the app's package name) and, for browsers, is_browser:

{
  "managedConfiguration": {
    "app_config_bundle_list": [
      {
        "organization": "your-team-name",
        "display_name": "Production environment",
        "service_mode": "warp",
        "tunneled_apps": [
          {
            "app_identifier": "com.android.chrome",
            "is_browser": true
          }
        ]
      }
    ]
  }
}

To check that it works, open https://www.cloudflare.com/cdn-cgi/trace in a tunneled app and in an app that is not in tunneled_apps. In the tunneled app, the response includes warp=plus. In the other app, it includes warp=off.

5. (Optional) Use always-on VPN

To keep the Cloudflare One Client connected, set the Cloudflare One Agent as the always-on VPN with a Fleet Android configuration profile:

{
  "alwaysOnVpnPackage": {
    "packageName": "com.cloudflare.cloudflareoneagent",
    "lockdownEnabled": false
  }
}

Fleet configures always-on VPN with a JSON configuration profile, not with a setting in the admin console. Save the profile as a JSON file, then add it to the fleet:

  • Fleet admin console: Go to Controls > OS settings > Configuration profiles, select Add profile, and upload the file.
  • GitOps: Add the file to the fleet's controls.android_settings.configuration_profiles list.

For more information, refer to the Fleet documentation ↗︎.

Set lockdownEnabled to true to block all network traffic on the device while the VPN is not connected. Lockdown requires Cloudflare One Agent version 2.5.4 or greater with use_in_app_webview set to true in the app_config_bundle_list entry, otherwise sign-in cannot complete. Verify always-on VPN with lockdown disabled before you turn lockdown on. If the Cloudflare One Agent cannot connect while lockdown is on, the device has no network access and cannot receive configuration changes from Fleet.

Was this helpful?