Created on
‎07-10-2009
06:20 AM
Edited on
‎09-20-2024
06:48 AM
By
Stephen_G
Description
This article provides help to troubleshoot and resolve issues that may arise when trying to connect to the FortiGuard servers.
The related article 'Accessing and Debugging FortiGuard Services' provides further information about FDS (FortiGuard Distribution Servers).
Scope
FortiGate in NAT, TP, VDOM mode.
Solution
- Connect to the CLI of the FortiGate and run the following debug command:
FGT# diagnose debug rating <----- For FortiGuard Web Filtering.
OR
FGT# diagnose spamfilter fortishield servers <----- For FortiGuard Email Filtering.
Example:
FGT# diagnose debug rating
For each IP address, the output of the commands shows the following:
- RTT (round trip delay)
- TZ (Server time zone)
- Curr Lost (The number of recent and consecutive queries without reply)
- Total lost (The historical total number of queries without reply; these values reset when the device restart)

- How is the server list sorted:
The server list is sorted first by weight and then the server with the smallest RTT is put at the top of the list (regardless of weight).
- How is the weight calculated:
The weight for each server increases with failed packets and decreases with successful packets.
The further away the server is, the higher its base weight and the lower in the list it will appear.
- If one or more servers are entered manually ('config system fortiGuard; set srv-ovrd enable ; config srv-ovrd-list'), the FortiGate will flush the dynamic server list to use and print only the configured server(s).
- If this is the case then check that a good UDP port is available, the UDP ports used are either ports 53 or 8888.
Note these ports are sometimes on ACLs defined by the service provider.
- This leads to Step 3, the source ports that are configured on the FortiGate and being used to connect to FDS are low source port numbers, these ports are also sometimes used by Net bios, therefore some service providers are filtering and blocking these ports.
FGT# show system global
config system global
set ip-src-port-range 4000-4999
- If the above steps fail, connect to the CLI of the FortiGate and collect the following debug:
FGT# diag debug rating 1
This command will refresh the rating every second and will show how many packets are being sent to the FDS servers.