Ubuntu 23.04
Sponsored Link

NTP Server : Configure NTP Server2023/04/21

 
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 Servers for your timezone

#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 the end : 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@dlp:~#
systemctl restart chrony
# verify status

root@dlp:~#
chronyc sources

MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
^* ntp-b2.nict.go.jp             1   6    17     7  -1503us[-1374us] +/-   11ms
^+ ntp-b3.nict.go.jp             1   6    17     8   -596us[ -467us] +/-   11ms
^+ ntp-a3.nict.go.jp             1   6    17     8   +384us[ +513us] +/- 9661us
^+ ntp-a2.nict.go.jp             1   6    17     8   +699us[ +827us] +/- 9174us
Matched Content