Ubuntu 24.04
Sponsored Link

NTP Server : Configure NTP Server (Chrony)2024/04/26

 
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 20 : comment out default settings and add NTP server pool you like to use
# * OK to keep default if you do not have specific requirements
#pool ntp.ubuntu.com        iburst maxsources 4
#pool 0.ubuntu.pool.ntp.org iburst maxsources 1
#pool 1.ubuntu.pool.ntp.org iburst maxsources 1
#pool 2.ubuntu.pool.ntp.org iburst maxsources 2
pool ntp.nict.jp iburst 

# add to last line : add 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     1    -36us[  -36us] +/- 8587us
^- ntp-b3.nict.go.jp             1   6    17     1  -1399us[-1399us] +/-   10ms
^+ ntp-b2.nict.go.jp             1   6    17     0  -1167us[-1167us] +/- 9928us
^* ntp-a2.nict.go.jp             1   6     7     2   +264us[+1040us] +/-   10ms
Matched Content