This article provides information about how to display the sequence number of firewall policies in the order that they are arranged on GUI. The sequence number is different from the numeric ID given to the firewall policy.
When policies are moved up or down using drag and drop on GUI, the numeric ID of the firewall policies may be shown out of order or not in sequence.
Firewall policies created on FortiGate using GUI/CLI contain a numeric ID and every new firewall policy gets a number in ascending order fashion.
The output #diagnose firewall iprope list 100004 displays the Kernel iprope rules that are checked in sequence while processing end-user traffic to allow or deny the session.
#diagnose firewall iprope list 100004
policy index=45 uuid_idx=719 action=accept
policy index=44uuid_idx=720 action=accept
The 'policy index' value indicates the numeric ID of the firewall policy and the 'uuid_idx' corresponds to the ordered sequence number of the firewall policy.