Accurate time is very important for any network device — especially firewalls like FortiGate. Correct timestamps help with:
By default, FortiGate uses FortiGuard time servers over the internet. This works well for most people, but many organizations prefer internal NTP servers for better security, faster sync, or compliance rules.
This guide shows you how to configure custom NTP servers on FortiGate — using both the web GUI and CLI — with a practical example.
Here are the main reasons companies choose their own NTP servers instead of FortiGuard:
We will configure the following settings (you can change them to match your environment):
1440 minutes = 24 hours — this is a common setting for internal servers. You can use shorter intervals (e.g., 60 minutes) if needed.
After applying, FortiGate will immediately try to sync with your server.
Log in via SSH or console and run these commands:
config system ntp
set ntpsync enable
set type custom
set syncinterval 1440
config ntpserver
edit 1
set server "192.168.20.10"
next
end
end
To add a second server (recommended for redundancy):
config system ntp
config ntpserver
edit 2
set server "192.168.20.11"
next
end
end
Save changes:
end
After configuration, check status with these CLI commands:
get system ntp status
Look for:
sync: yes — means it successfully syncedserver: 192.168.20.10last update: shows when it last synceddiagnose sys ntp status
This gives more details including offset, delay, and stratum level.
diagnose debug application ntpd -1 diagnose debug enable
(Run for a short time, then disable with diagnose debug disable — shows real-time sync activity.)
execute ping 192.168.20.10FortiGate blocks NTP by default in policies — create a policy: LAN → WAN, service NTP, allow.
Setting up custom NTP servers on FortiGate is simple and gives you better control, security, and compliance. Whether you use the GUI for quick setup or CLI for scripting/automation, the process is the same: enable NTP, set custom mode, add your server(s), choose a sync interval, and verify.
Accurate time sync is a small setting with a big impact — it makes logs trustworthy, certificates valid, and troubleshooting much easier.
Once configured, your FortiGate will quietly keep perfect time — exactly how you want it.