Troubleshooting Tip: How to use the FortiGate sniffer and debug flow in presence of NP2 ports
| Description | This article describes how in FortiGates with NP2 interfaces, some traffic is offloaded at the hardware level. This means that the traffic should not reach the CPU (unless it is traffic destined for the FortiGate itself) and therefore will not be detected by a flow debugging command or a sniffer trace.
However, what will always be seen are the first packets of any new session establishment. For example, the SYN/SYN-ACK/ACK. Once the session is established, no further packets will be seen anymore as they will use the fast-path. |
| Scope | FortiGate with NP2 ports. |
| Solution | For troubleshooting purposes, and when packet capture or traffic flow inspection on a FortiGate is required, hardware acceleration can be bypassed on a specific port using the following command. diagnose npu np2 fastpath-sniffer enable <port(s)_number>
This now shows all traffic for all sessions to/from this or those port(s) when using the sniffer or the diagnose debug flow commands
diagnose npu np2 fastpath-sniffer disable <port(s)_number> Note that this is not saved in the configuration and will be lost after a reboot. Related articles:
|
