Saturday, November 22, 2025

NTP Server : Configure NTP Server (Chrony)

 

NTP Server : Configure NTP Server (Chrony)

 

Install Chrony and Configure NTP server for time adjustment. NTP uses 123/UDP.

[1]Install and Configure Chrony.
root@dlp:~# 
apt -y install chrony
root@dlp:~# 
vi /etc/chrony/chrony.conf
# line 5 : comment out default settings and add NTP Servers for your timezone

#pool 2.debian.pool.ntp.org iburst
pool ntp.nict.jp iburst 

# add to last line : network range you allow to receive time syncing requests from clients
allow 10.0.0.0/24 

root@dlp:~# 
systemctl restart chrony
# verify status

root@dlp:~# 
chronyc sources

MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
^- ntp-a3.nict.go.jp             1   6    17    10    -92us[  -92us] +/-   10ms
^- ntp-k1.nict.jp                1   6    17    10   -637us[ -637us] +/- 9855us
^* ntp-b2.nict.go.jp             1   6    17    10   +786us[ +349us] +/-   12ms
^- ntp-a2.nict.go.jp             1   6    17    10  +1655us[+1655us] +/- 9278us

No comments:

Post a Comment