Ubuntu 20.04
Sponsored Link

NTP Server : Configure NTP Server (Chrony)2020/04/27

 
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 17: 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
# show status

root@dlp:~#
chronyc sources

210 Number of sources = 4
MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
^- ntp-b3.nict.go.jp             1   6    17     6  -1507us[-1507us] +/- 9821us
^* ntp-a2.nict.go.jp             1   6    17     7    -45us[ +912us] +/- 8983us
^- ntp-b2.nict.go.jp             1   6    17     6  -1030us[-1030us] +/- 9922us
^- 61.205.120.130                1   6    17     6   -975us[ -975us] +/- 5933us
Matched Content