Device serial numbers
Feature availability
Operating Systems | WARP mode required | Zero Trust plans |
---|---|---|
macOS, Windows, Linux | WARP with Gateway | All plans |
Cloudflare Zero Trust allows you to build Zero Trust rules based on device serial numbers. You can create these rules so that access to applications is granted only to users connecting from company devices.
To create rules based on device serial numbers you’ll need to create a list of numbers using the Lists functionality in the Zero Trust Dashboard.
-
On the Zero Trust dashboard, navigate to My Team > Lists.
-
Click Create manual list or Upload CSV. For larger teams, it is recommended to upload a CSV or use Cloudflare’s API endpoint.
-
Give your list a descriptive name, as this name will appear when configuring your Access policies.
-
Set List Type to Serial Number.
-
Input the serial numbers of the devices your team manages, or upload your CSV file.
-
Click Save.
Once saved, the serial number list will appear in your list view.
Now you can create or update an existing Access policy to require that any device requesting access belongs to your list of serial numbers.
To do that:
-
Navigate to Access > Applications.
-
To add to an existing application, choose the specific resource from the Applications page in the Access section of the sidebar.
-
Click Edit.
-
Select the Rules tab and edit an existing rule. To add a new rule, click Add a Rule.
-
Add a Require rule and choose Device Posture - Serial Number List from the drop-down menu.
-
Choose the list of devices to require and click Save rule.
Once saved, any device attempting to reach the application will need to connect from a device that uses Cloudflare WARP and presents a serial number in the list created.
Determine the serial number
Operating systems display version numbers in different ways. This section covers how to retrieve the version number in each OS, in a format matching what the OS Version posture check expects.
On macOS
- Open a terminal window.
- Use the
system_profiler
command to check for the value ofSPHardwareDataTypeng
and retrieve the serial number.
system_profiler SPHardwareDataTypeng
On Windows
- Open a Powershell window.
- Use the
Get-CimInstance
command to get the SerialNumber property of theWin32_BIOS
class.
Get-CimInstance Win32_BIOS
On Linux
- Open a Terminal Window
- Use the
dmidecode
command to get the version propertysystem-serial-number
.
sudo dmidecode -s system-serial-number