Description | This article lists useful commands for initial troubleshooting steps with issues running FortiGate with Virtual Servers. |
Scope | FortiGate. |
Solution |
Verification and debug.
Any of the following options can be supplied:
list: create a list. up: change the address to 'up'. down: change the address to 'down'. healthcheck: perform a server health check. clear: clear the firewall VIP, VIP6 real server statistics.
Information about Virtual Servers can also be viewed in the GUI under Monitoring -> Load Balance Monitor.
get test ipldbd 2 (where ipldbd is the load balance daemon).
Example output:
num of vf=1
The following command displays VIP filters. This is useful on FortiGates with many VIPs:
diagnose firewall vip virtual-server filter <option>
list: display the current filter. clear: erase the current filter. name: specify a VIP name to filter by. src: specify a source address range to filter by. dst: specify a destination address range to filter by. src-port: specify a source port range to filter by. dst-port: specify a destination port range to filter by. vd: specify the index of a virtual domain. -1 matches all. negate: negate the specified filter parameter.
Use the following command to view virtual server stats:
diagnose firewall vip virtual-server stats <option>
list List all statistics.
The best verification is a packet sniffer. In the sniffer, it is possible to view how packets are being forwarded based on the current load-balancing method.
diagnose sniffer packet <interface/any> ‘<filter>’ <verbose> <count>
To stop the sniffer, press Ctrl+C on the keyboard.
It is possible to change the format above to sniff for the specific traffic being forwarded towards the servers.
The following commands' output can be helpful to start initial troubleshooting and understand the Virtual server issue.
fnsysctl date
get router info routing-table all
Find below the live debug for troubleshooting when working with FortiGate real servers
diagnose debug disable diagnose debug reset diagnose debug application ipldbd -1 diagnose debug enable
Run the debug ,replicate the problem, and stop the capture with:
diagnose debug disable
See this document Load balancing diagnose commands for more information about load balancing diagnosis commands:
Related documents: Virtual server load balance - FortiGate administration guide. Technical Tip: Configure virtual server. Troubleshooting Tip: How to fix an issue with Virtual Servers. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.