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

Description

This article explains how to reset the packet count option for a firewall policy.


Solution

GUI

a) In FortiOS v5.0

1) Right click on the value of Count field on the firewall policy under Policy > Policy > Policy.
2) Select "Clear Counters" from the list.

B) In FortiOS v5.2 and v5.4

1) Right click on the value of Count field on the firewall policy under Policy & Objects > Policy > IPv4.
2) Select "Clear Counters" from the list.

CLI

Run the following CLI command to reset 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 on "Seq#" column on the GUI. The Policy ID number which is the index number of the firewall policy can be found under "ID" column on the GUI.

In order to reset the count field for all policies simply omit the <Policy ID>:
# diagnose firewall iprope clear 100004