FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
nalexiou
Staff & Editor
Staff & Editor
Article Id 399261
Description This article describes how to change the order of the NAC-policies by using the CLI.
Scope FortiOS. 
Solution

In cases where the GUI cannot be used, the NAC policies order can be modified via CLI by using the commands: 'move <policy-name> before <policy name>'  and 'move <policy-name> after <policy name>'.

 

For example to move NAC policy test1 under test3 the commend move "test1" after "test3" can be used:

 

FGT (nac-policy) # show
config user nac-policy
    edit "test1"
        set switch-fortilink "fortilink"
    next
    edit "test2"
        set switch-fortilink "fortilink"
    next
    edit "test3"
        set switch-fortilink "fortilink"
    next
end
 
FGT (nac-policy) # move "test1" after "test3"
 
FGT (nac-policy) # show
config user nac-policy
    edit "test2"
        set switch-fortilink "fortilink"
    next
    edit "test3"
        set switch-fortilink "fortilink"
    next
    edit "test1"
        set switch-fortilink "fortilink"
    next
end