Ubuntu 22.04
Sponsored Link

NTP Server : Configure NTP Server (Chrony)2022/04/25

 
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 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-b2.nict.go.jp             1   6     7     2    +58us[-1059us] +/-   11ms
^- ntp-a3.nict.go.jp             1   6     7     2    -75us[-1192us] +/-   11ms
^- ntp-b3.nict.go.jp             1   6    17     0   -638us[ -638us] +/-   10ms
^- ntp-a2.nict.go.jp             1   6    17     1   +904us[ +904us] +/- 9026us
Matched Content