Skip to main content
kmak
Staff
Staff
June 19, 2025

Troubleshooting Tip: How to debug FortiWeb Content Routing policy with CLI debug commands

  • June 19, 2025
  • 0 replies
  • 373 views
Description This article describes steps to debug the FortiWeb Content Routing policy.
Scope FortiWeb.
Solution

Prerequisite: FortiWeb Server Policy Using Content Routing Policy.

 

FortiWeb Content Routing Policy executes in the sequence from top to bottom.

 

kmak_0-1750318934137.jpeg

 

FortiWeb CLI command supports checking if the Content Routing rule matches.

Due to the amount of logs generated, it is recommended to create a log file for the session using PuTTY to log the data and check it afterwards.

 

diagnose debug timestamp enable

diagnose debug flow filter flow-detail 4

diagnose debug flow filter client-ip x.x.x.x  <----- Client IP.

diagnose debug flow filter server ip y.y.y.y  <----- Virtual IP.

diagnose debug flow trace start

diagnose debug enable

 

Try to load the website URL and then afterwards, disable debugging:

 

diagnose debug reset

 

The debug output is shown in the screenshot below.

 

kmak_1-1750318934153.jpeg

 

Related document:

Routing based on HTTP content