FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
akumarr
Staff
Staff
Article Id 202114
Description This article describes how the 'negate' command in debug flow works.
Scope FortiGate.
Solution

The negate property can be used to exclude an IP address from debug logs. For example, to capture the debug for all sources except the IP 8.8.8.8, run the following configuration:


diagnose deb reset
diagnose deb disable
diagnose deb flow filter addr 8.8.8.8
diagnose deb flow filter proto 1
diagnose deb flow filter negate addr
diagnose deb fl trace start 999
diagnose deb fl sh fun en
diagnose deb en

 

To Stop the Debugs:

 

diagnose de disable

diagnose de reset

 

After running the commands, if any traffic flows through the FortiGate, it is possible to see the output but not for the address 8.8.8.8. In other words, 8.8.8.8 is excluded from the debug.

 

Related articles:

Debugging packet flow - FortiGate Cookbook.

Troubleshooting Tip: Enable Policy Trace in Debug Flow.

Troubleshooting Tip: First steps to troubleshoot connectivity.