Skip to main content
parteeksharma
Staff
Staff
Oct 28, 2024 7:05 AM UTC

Technical Tip: Blocking device based on OS detected using Dynamic address options under Firewall Policies

Description This article describes the feature to enable 'Dynamic address' under policies and block devices based on the OS detected.
Scope FortiGate v7.4 and above.
Solution

This feature relies on device detection configured on the interface connected to user devices to determine device information. Only existing devices whose device information has already been detected by the FortiGate and is known can be added to this dynamic address subtype. 

 

FortiGate requires General Updates Services for Device & OS Identification.

 
 

Screenshot 2026-02-27 153929.png

 

  1. To use the dynamic Device & OS Identification subtype, the FortiGate should be working in NGFW Profile-based mode.

 

Note: Switching from profile-based to policy-based mode converts policies to policy-based. To avoid issues, create a new VDOM for the policy-based mode. Recommend backing up the configuration before switching modes. 

 

  1. Go to System -> Feature Visibility and enable 'Dynamic Device & OS Identification'.

 

  1. Once enabled, go to the LAN interface and enable 'Device detection' at the interface level.

 

  1. Create the address under Policy & Objects -> Addresses:
  • Type = Dynamic.
  • Sub Type = Device & OS Identification.
  • Software OS = Windows.
  • Software Version.

 

The Software Version can be added. Depending on the hardware model, the address can be configured and settings adjusted as needed. The example below is for an iPhone mobile device.

 

  1. Create a firewall policy to block 'Block iphone' from connecting to the internet. Go to Policy & Objects -> Firewall policy, select 'Create New', and configure.

    Example:

    video.gif

     

  2. Post this configuration, the traffic generated by Windows users detected on the interface will be blocked, and this can be validated by checking under forward traffic logs:

 

6.PNG

 

Troubleshooting command:


diagnose user device list 

 

Related document:

Profile-based NGFW vs policy-based NGFW

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024