Skip to main content
pdabhade
Staff
Staff
October 22, 2024

Technical Tip: How to check active sessions for particular firewall policy

  • October 22, 2024
  • 0 replies
  • 2032 views
Description This article describes how to check active sessions for a particular firewall policy.
Scope FortiGate v7.0.0, v7.4.4, v7.6.0.
Solution

To check how many active sessions are on the firewall policy, go to Policy & Objects -> Policy -> Statistics.

 

Active_session.png

 

To check this information from the CLI, use the following commands:

 

diagnose sys session filter policy <policy ID>

diagnose sys session list

 

There is an option to check all the sessions from policy x to policy y. Use the following commands:

 

diagnose sys session filter policy <policy ID x> <policy ID y>

diagnose sys session list

 

It can be displayed in a GUI as below:

Navigate to Dashboard -> FortiView Sessions and apply the policy ID filter.

 

Fortiview sessions.PNG

 

This will show all sessions that match the selected policy in detail, and will offer a summary for the total amount.

    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