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.
Goutham_FTNT
Staff
Staff
Article Id 198185

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:
 
Select Policy & Objects -> Firewall Policy -> Select the policy where the counter needs to be cleared -> Clear Counters.
 
Screenshot 2026-01-07 143802.png

 

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>:
 
diagnose firewall iprope clear 100004