Skip to main content
slautenschlager
Staff
Staff
Aug 29, 2019 8:13 AM UTC

Troubleshooting Tip: Packet Capture on FortiOS GUI

  • Nov 20, 2026 12:58 PM UTC
  • 0 replies
  • 242086 views
  • Translate All

Description


This article describes how to use the built-in packet capture feature in FortiOS from the GUI interface.

 

Scope

 

FortiGate.

Solution


On the v5.6 firmware branch, the unit needs a disk, and logging to the disk has to be enabled.
Since firmware version 6.0.2, this restriction has been removed.

Here is the Step-by-Step guide to capturing packets from the GUI:

  • Go to Network -> Diagnostics -> Packet capture (on legacy firmware, Network -> Packet Capture) and create a new filter. On modern firmware, navigate to Network -> Diagnostics -> Packet capture.

  • It is possible to use the following URL to access the packet capture page: 'https://[management-IP]/ng/page/p/firewall/sniffer/'.
    Substitute the management IP with the correct IP to access the FortiGate.

  • Below is the Packet Capture interface:

 

kb_15969_1.png

 

The option to capture packets based on interface and filter by hosts, ports, or VLANs will be proposed.
In the example above, 100 packets would be captured based on the selected filters:

IP address 10.205.1.206 and ports 80 and 443 on interface port 3.
If 'Enable Filters' is not selected, all packets on the selected interface will be captured.

Results.

kb_15969_2.png

 

The capture will stop automatically once it reaches the maximum packet size defined in the settings.

Once the packet capture has been run and is completed, the default view of the results is 'Headers', which will show only the headers of the packets:

 

capture_headers.png

 

The other view that is available is 'Packet data'. If 'Packet data' is selected, when any of the packets are selected at the top of the window, the raw packet details of the highlighted packet are shown at the bottom of the screen:

 

packet_details.png


The output can be saved as a .pcap file by selecting the 'Save as .pcap' button at the bottom of the output window, and the saved .pcap file can then be viewed using Wireshark:

 

save-as-pcap.png

 

kb_15969_3.png

 

Note: Packet capture can tell what is happening on the network at a low level. This can be very useful for troubleshooting problems, such as:

  • Finding missing or lost traffic/packets.

  • Locating ARP problems, such as broadcast storm sources.

  • Confirm which address a computer is using on the network if there are multiple addresses or it is on multiple networks. Confirm that routing is working as expected.

  • A particular type of packet, such as UDP, is having problems, which is commonly used for streaming video.

Limitations:

  • It is impossible to select the interface as 'any' at the time of packet capture. 

  • Less than or equal to 10,000 packets can be captured in one packet capture filter.

  • From v7.2 onwards, this limit is increased to 50,000.

 

msanjaypadma_0-1646763493505.png

 

On FortiGate v7.2+, this option can be found under Network -> Diagnostics.

 

ethomollari_0-1662633861516.png

 

  • Select Start Capture, and it is possible to see the live flow of packets.

  • It is recommended to disable auto-asic-offload or np-acceleration under the respective Firewall policy to see all packets.

 

3.jpg

 

  • The command np-acceleration is available when the firewall is in profile-based NGFW mode.

  • It is possible to stop the capture and save the file in PCAP format, readable by Wireshark.

 

ethomollari_1-1662634118311.png

 

 

On FortiGate v7.2+, it is not possible to run several packet captures at the same time. On the new packet capture module, if the administrator logs out of the FortiGate GUI, the packet capture will stop running as well.

 

An alternative way to do background packet capture is through SSH/CLI, using the command below:

 

diagnose sniffer packet <interface name> "<filter>" 6 0 l

 

On FortiGate v7.4.3, it is re-introduced the possibility to run several packet captures simultaneously (maximum 15 captures) has been reintroduced, and there is a limitation on the number of packets to 20.000.

 

PCAP_7.4.PNG

 

Starting FortiOS v7.4.4, packet capture criteria can now be stored. Once settings have been configured, it is now possible to choose to Start capture, Save settings for later, or Close.

 

Capture.PNG

 

On v7.4.4, to determine the maximum number of packet captures supported for a certain device type, utilize the Maximum Values Table and look for the item firewall.on-demand-sniffer.

 

on-demand-sniffer.png

 

Wireless packet sniffer.

  1. Configure Packet Sniffer Mode in the FortiAP Profile.

    1. Go to WiFi & Switch Controller -> FortiAP Profiles.

    2. Select the required FortiAP Profile and edit the radio configuration.

    3. Under Mode, select 'Packet Sniffer'.

    4. Configure the following parameters.

      1. Packet buffer size: Specify the packet buffer size.

      2. Channel: Select the wireless channel for packet capture.

      3. Channel width: Select the required channel width.

      4. MAC address filter: Specify a MAC address to filter the captured wireless traffic.

      5. Packet types: Select the required packet types, including Management beacon, Management probe, Management other, Control, and Data.

ca361bfe.png

  1. Start Wireless Packet Capture.

    1. Go to WiFi & Switch Controller -> Managed FortiAP.

    2. 'Right-click' the required FortiAP and select 'Packet Capture'.

    3. A new window will appear where it is possible to modify the Maximum captured packets and the filters once again.

    4. Select 'Start capture' to initiate the wireless packet capture.

774db10b.png


Related documents:
Packet capture

Embed real-time packet capture and analysis tool on Diagnostics page

Run simultaneous packet captures and use the command palette

Packet capture Help

Wireless traffic packet sniffer

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024