Skip to main content
raureada
Staff
Staff
May 24, 2024

Technical Tip: How to create packet capture on the policy level

  • May 24, 2024
  • 0 replies
  • 2795 views

Description

This article describes how to create packet capture at the policy level.

Scope

FortiGate.

Solution

This guide shows how to create an automated packet capture.

 

It is possible to enable packet capture on the firewall policy using the below command:

 

packet kb.JPG

 

If not already disabled, this will turn off auto ASIC offloading and display a notification. When packet capture is disabled, auto ASIC offloading is automatically re-enabled.

 

When a firewall policy with packet capture enabled is matched, FortiGate automatically begins capturing packets.

 

packet kb1.JPG

 

To download it, select the logs, then select details.

 

packet kb3.JPG

 

Select Archived Data, then select the download button.

 

packet kb2.JPG

 

This can be helpful when capturing traffic that cannot be generated on demand.


Note:
This article does not apply to FortiProxy appliances. FortiProxy does not support policy.capture-packet. The GUI will remove this setting in the upcoming release.

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!