NTP on CentOS 7

  1. yum install ntp
  2. edit /etc/ntp.conf
    1. add servers from your country to config, check here https://www.ntppool.org/en/
      1. server 1.hr.pool.ntp.org
      2. server 3.europe.pool.ntp.org
      3. server 1.europe.pool.ntp.org
    2. restrict 192.168.1.0 netmask 255.255.255.0 nomodify notrap //this will allow client from network 192.168.1 to access ntp server
  3. systemctl start ntpd
  4. systemctl enable ntpd
  5. systemctl status ntpd