FortiGuard server settings
Your local FortiGate connects to remote FortiGuard servers to get updates to FortiGuard information, such as new viruses that may have been found or other new threats.
The default setting to reach FortiGuard is anycast. However, FortiGate can be configured to use unicast server. See FortiGuard for more information.
This section provides methods to display FortiGuard server information on your FortiGate, and how to use that information and update it to fix potential problems.
Displaying the server list
To get a list of FDS servers FortiGate uses to send web filtering requests:
get webfilter status
or
diagnose debug rating
Rating requests are only sent to the server at the top of the list in normal operation. Each server is probed for Round Trip Time (RTT) every two minutes. Rating may not be enabled on your FortiGate.
Optionally, you can add a refresh rate to the end of the command to determine how often the server list is refreshed.
Sample output:
Locale : English Service : Web-filter Status : Enable License : Contract Service : Antispam Status : Disable Service : Virus Outbreak Prevention Status : Disable Num. of servers : 2 Protocol : https Port : 443 Anycast : Disable Default servers : Included -=- Server List (Wed Nov 16 14:42:08 2022) -=- IP Weight RTT Flags TZ FortiGuard-requests Curr Lost Total Lost Updated Time 140.174.22.68 30 866 -5 13 0 0 Wed Nov 16 14:41:35 2022 12.34.97.18 30 878 DI -5 12 0 0 Wed Nov 16 14:41:35 2022
Output details
The server list includes the IP addresses of alternate servers if the first entry cannot be reached. In this example, the IP addresses are not public addresses.
The following flags in get webfilter status
indicate the server status:
Flag |
Description |
---|---|
|
The server was found through the DNS lookup of the hostname. If the hostname returns more than one IP address, all of them are flagged with D and are used first for INIT requests before falling back to the other servers. |
|
The server to which the last INIT request was sent |
|
The server hasn't responded to requests and is considered to have failed |
|
The server is currently being timed |
|
Rating requests can be sent to the server. The flag is set for a server only in two cases:
|
Please note that the example output displays Anycast
as Disable
because the CLI commands above work with the FortiGuard unicast server case and not with the FortiGuard anycast servers case.
Also, in the example output above, the server 12.34.97.18 was found through a DNS lookup (D
flag) and was sent the last INIT request (I
flag).
Sorting the server list
The server list is sorted first by weight. The server with the smallest RTT appears at the top of the list, regardless of weight. When a packet is lost (there has been no response in 2 seconds), it is re-sent to the next server in the list. Therefore, the top position in the list is selected based on RTT, while the other positions are based on weight.
Calculating weight
The weight for each server increases with failed packets and decreases with successful packets. To lower the possibility of using a remote server, the weight isn't allowed to dip below a base weight. The base weight is calculated as the difference in hours between the FortiGate and the server multiplied by 10. The farther away the server is, the higher its base weight is and the lower it appears in the list.