NTP


NTP Config

Install

  • 1) install
  • [root@localhost ~]# dnf -y install chrony
    [root@localhost ~]# vi /etc/chrony.conf
    # line 3 : change servers to synchronize (replace to your own timezone NTP server)
    # need NTP server itself to sync time with other NTP server
    #pool 2.centos.pool.ntp.org iburst
    pool ntp.nict.jp iburst
    # line 27 : add network range to allow to receive time synchronization requests from NTP Clients
    # specify your local network and so on
    # if not specified, only localhost is allowed
    allow 10.0.0.0/24

    [root@localhost ~]# systemctl enable --now chronyd

    [root@localhost ~]# firewall-cmd --add-service=ntp
    success
    [root@localhost ~]# firewall-cmd --runtime-to-permanent
    success

    [root@localhost ~]# chronyc sources