Current ThreatQ Version Filter
 

Configuring chrony as a Network Timing Protocol (NTP) Client

You must complete all network configuration as well as your first login before setting the NTP.

The following steps must be performed as the root user or via sudo.

In Linux systems, the chronyd daemon provided by the chrony package is the default NTP client.  By default, chronyd uses an NTP.org pool as the time source.  You can update the server or pool option in the /etc/chrony.conf file to specify a single NTP (server) or pool of NTP servers (pool) as the time source.

  1. Enter the following command to access the NTP configuration file:
    vi /etc/chrony.conf
  2. To specify a single NTP sever as your time source, add the following lines to the chrony configuration file, replacing <ntp server> with your preferred NTP server.
    server <NTP server> iburst
    To specify a pool of NTP servers as your time source, add the following lines to the chrony configuration file, replacing <ntp server pool> with your preferred NTP server pool.
    pool <NTP server pool> iburst
  3. Save your changes.
  4. For your changes to take affect you must reboot or use the following command to restart chronyd:
    systemctl restart chronyd