Description | This article describes how to configure a nac-policy on the FortiGate to match any unmatched/unknown devices that are not from existing NAC policies. |
Scope | FortiSwitches. |
Solution |
The following configuration makes it possible to map a specific VLAN other than the onboarding VLAN for devices that are not matched by any configured NAC policies.
Note: Over the FortiGate GUI, the mac-policy will be created by default when creating a nac-policy.
When creating a nac-policy using the CLI commands, configure a mac-policy as follows prior to configuring the nac-policy:
On the FortiGate CLI:
config switch-controller mac-policy
Create a nac-policy that uses the wildcard mac-address to match all remaining devices and associates them with the previously configured mac-policy:
On the FortiGate CLI:
config user nac-policy
This configuration ensures that any device not matching existing NAC policies is automatically mapped to the specified VLAN. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.