Skip to main content
nnair
Staff
Staff
December 28, 2021

Technical Tip: Disabling policy name requirement or allowing unnamed policy

  • December 28, 2021
  • 0 replies
  • 8204 views
Description This article describes how to disable policy name requirements.
Scope FortiGate.
Solution

When a user tries to enable policy, the unit will not allow to create one by default, which shall show the below error.

Rathan_FTNT_0-1662015227827.png


While by default the requirement of having a unique name for each policy mandate, it can be enabled or disabled.

If disabling the requirement is a one-time thing, doing it in the CLI is more straightforward.

 

This setting is VDOM-based so if multiple VDOMs are running, it will be necessary to enter the correct VDOM before entering the CLI commands or turning the feature on or off in the GUI.

 

From GUI.


To edit the requirement from GUI, 

 

Once it has been enabled, the requirement for named policies can be relaxed by going to System -> Feature Visibility.

Allow Unnamed Policies can be found under Additional Features. Here, it is possible to toggle the requirement on and off.

 

policy.PNG

 

From CLI.


To change the requirement in the CLI, use the following syntax:

 

config system settings

    set gui-allow-unnamed-policy [enable|disable]

end


Results:

A policy without any name can be created as below:

Rathan_FTNT_3-1662015545277.png
Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!