Harrison Ravazzolo
Harrison Ravazzolo
Cloudflare WARP is a secure VPN-like service that encrypts internet traffic and routes it through Cloudflare's network, improving privacy and security without compromising speed.
Create custom MDM Config
a. Download the example .mobileconfig
file
b. Tailor the payload with the desired parameters to satisfy your deployment
Upload .mobileconfig
to Fleet
a. In the Fleet admin console, navigate to Controls
b. Select the Team that requires Cloudflare WARP
c. Select OS settings > Custom settings
d. Select Add profile and upload the .mobileconfig
from step 1
e. Select the hosts which require Cloudflare WARP:
Note that the payload will be installed on all targeted hosts, but the WARP agent is not yet installed. Proceed to step 3 to complete the process.
.pkg
obtained from Cloudflare. If deploying with this approach, WARP will still need to be installed on select hosts via the UI, API or GitOps. Learn more about deploying software from this article.If using Fleet-maintained app, you can choose to install on hosts automatically or manually. To allow users to install WARP from Fleet Desktop, check the box for Self-service.
Download the WARP installer for Windows a. Visit the Download page to review system requirements and download the installer for your OS.
Upload WARP installer to Fleet
a. In the Fleet admin console, navigate to Software
b. Select the Team that requires Cloudflare WARP
c. Select Add software > Custom Package and upload the .msi
file downloaded from step 1
$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 Cloudflare's deployment parameters for a description of each argument and adjust your script as needed.
Learn more about ways to deploy software via the UI, API or GitOps from this article.
Fleet allows admins to execute custom scripts on Linux hosts. The following example script creates an MDM file and installs WARP on an Ubuntu 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/ $(lsb_release -cs) 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 learn about deploying scripts across multiple hosts, check out this article.
To install WARP on other Linux distributions, refer to the package repository