Technical Tip: How to Reset Count on the Firewall Policy
Description
This article explains how to reset the packet count option for a firewall policy.
Scope
FortiGate.
Solution
GUI:
In FortiOS v7.0 and above:
In FortiOS v7.0 and above:
Select Policy & Objects -> Firewall Policy -> Select the policy where the counter needs to be cleared -> Clear Counters.
In the CLI:
Run the following CLI command to reset the packet count option for the firewall policy:
diagnose firewall iprope clear 100004 <Policy ID>
Example: Resetting the value of count field for the Policy ID 3
diagnose firewall iprope clear 100004 3
The policy ID number is different from the policy sequence number, which is shown in the 'Seq#' column on the GUI. The policy ID number, which is the index number of the firewall policy, can be found under the 'ID' column on the GUI.
To reset the count field for all policies, omit the <Policy ID>:
To reset the count field for all policies, omit the <Policy ID>:
diagnose firewall iprope clear 100004
