Skip to main content
rmetzger
Staff
Staff
October 25, 2010

Technical Tip: How to clear Firewall Policy counters

  • October 25, 2010
  • 0 replies
  • 7463 views

Description

This article describes how, as of FortiOS firmware version 4.00 MR2, the Firewall Policy counters can be cleared from the Web Interface (GUI) in the context menu (typically opened by right-clicking), as shown in the screenshot below:
 

rmetzger_FD32921_32921_clear_fwp_counters.jpg

 

Scope

  • FortiOS firmware version 4.00 MR2.

  • FortiOS firmware version 4.00 MR3.

  • FortiOS firmware version 5.0.x.

  • FortiOS firmware version 7.2.10.

  • FortiOS firmware version 7.4.6.

  • FortiOS firmware version 7.6.1.

 

Solution

Additional note: On newer versions of the FortiOS, the view of the Firewall Policy and clearing the counters will be as follows:

On FortiOS v7.2.10:

Clear the counters 7.2.10.PNG

 

On FortiOS v7.4.6:

Clear the counters 7.4.6.PNG

 

On FortiOS v7.6.1:

Clear the counters 7.6.1.PNG

 

Note: The counters can also be cleared when editing the policy, as shown below:

Clear counters edit policy.PNG

 

The counters will also be cleared if the firewall policy is disabled and then enabled again:

Clear counters disable-enable policy.PNG


From the CLI:

Run the following CLI commands to reset the packet count option for the firewall policy:

diagnose firewall iprope clear 100004 <Policy ID>


For example, to reset the count field for multiple policy IDs (2, 5, and 8):

diagnose firewall iprope clear 100004 2 5 8


Related articles:

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
    Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT