Skip to main content

VestaCP Installation Perquisite : Part 5 Configure Chrony NTP server

Accurate time keeping is important for a number of reasons in IT. This setup is the best practice that helps with problem diagnosis and informal server monitoring. I am living in Asia that's why i'm using this pool.
Install Chrony and Configure The NTP server .
# yum -y install chrony
# vi /etc/chrony.conf 

#server 0.centos.pool.ntp.org  iburst
#server 1.centos.pool.ntp.org  iburst
#server 2.centos.pool.ntp.org  iburst
#server 3.centos.pool.ntp.org  iburst

server 0.asia.pool.ntp.org iburst
server 1.asia.pool.ntp.org iburst
server 2.asia.pool.ntp.org iburst
server 3.asia.pool.ntp.org iburst

add the network range you allow to receive requests
allow 127.0.0.1

:x  (save & quit) 
Reminder: We have disabled firewalld, So we will add the port 123/udp after the VestaCP installation using Iptables.
Start the services and enable it 
# systemctl start chronyd 
# systemctl enable chronyd 

# chronyc sources
# timedatectl set-ntp yes
# systemctl enable systemd-timedated.service
# systemctl restart systemd-timedated.service

# chronyc tracking
# chronyc sources 
# chronyc sourcestats 

Comments