Chapter 8: System Management > Configuring system time

Configuring system time

Accurate system time is critical to the correct FortiDDoS operation including all graphs, logs, and scheduling.

Changing the time of a system that is operational may have extreme consequences for the data already collected by the system and the system’s ability to detect and mitigate attacks. All saved traffic graphs, drop data and logs may be lost along with traffic statistics and system Thresholds.

We strongly recommend that you use Network Time Protocol (NTP) to maintain the system time and that you configure date and time NTP settings before you do any other configurations.

As an alternative when NTP is not available or is impractical, you can set the system time manually, but this time will drift and changing times later can have serious consequences on existing data and mitigation.

You can change the system time with the web UI or the CLI.

Before you begin:

To configure the system time:
  1. Navigate to the system time settings page in one of the following ways:
  2. Complete the configuration as described in Table 88.
  3. Important: You can change settings for only one group at a time: Time Zone or Time Setting. You must save your changes after each group before making changes in the next.

  4. Save your changes. The system will reboot.
  5. Note: If the time or time zone is changed, you need to reset the system to its factory state using the command # execute formatlogdisk so that the graphs are updated accordingly.

  6. Change tabs to Date and Time.
  7. Complete NTP or manual time settings.
  8. Save your changes. The system will reboot.
  9. Verify your changes:
  10.  

    Figure  147:  Time settings

 Table 88:   System time configuration

SettingGuidelines
Time Zone
Time zone
  1. Ensure the 'Daylight Saving Time' checkbox is unchecked.
  2. Select the time zone where the appliance is located. Check that the GMT offset is correct for the location. In recent years, Time Zone changes have been frequent. If the City/Country-Time Zone pair is inaccurate, use the correct GMT offset and ignore the text information.
Automatically adjust clock for daylight saving changesEnable if you want the system to adjust its own clock when its time zone changes between daylight saving time (DST) and standard time. When enabled, you will see that the Time Zone GMT offset immediately changes, no matter if you are in DST or not. This is for display only and will not affect the system time.
Synchronize with NTP Server
ServerSpecify the IP address or domain name of an NTP server or pool, such as pool.ntp.org. To find an NTP server, go to http://www.ntp.org. You may enter more than one IP address or domain name with a space between them.
Sync IntervalSpecify how often the system should synchronize its time with the NTP server, in minutes. For example, to synchronize once a day, type 1440.
OR
Set Time
Hour, Minute, Second, DateThis is not required if you have set NTP. Use the controls to set the time manually. The clock is initialized with the time you specified when you click Save.

NOTE: Manual time setting is NOT recommended.

 

To configure NTP using the CLI:

config system time ntp

set ntpsync enable

set ntpserver {<server_fqdn> | <server_ipv4>}

set syncinterval <minutes_int>

end

To configure the system time manually:

config system time ntp

set ntpsync disable

end

config system time manual

set zone <timezone_index>

set daylight-saving-time {enable | disable}

end

execute date <mm:dd:yyyy> <hh:mm:ss>