Ubuntu 20.04
Sponsored Link

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

 
Install NTPd and Configure NTP server for time adjustment. NTP uses 123/UDP.
[1] Install and Configure NTPd.
root@dlp:~#
apt -y install ntp
root@dlp:~#
vi /etc/ntp.conf
# line 21: comment out default settings and add NTP Servers for your timezone

#pool 0.ubuntu.pool.ntp.org iburst
#pool 1.ubuntu.pool.ntp.org iburst
#pool 2.ubuntu.pool.ntp.org iburst
#pool 3.ubuntu.pool.ntp.org iburst

# Use Ubuntu's ntp server as a fallback.
#pool ntp.ubuntu.com
pool ntp.nict.jp iburst 

# line 51: add network range you allow to receive time syncing requests from clients

restrict 10.0.0.0 mask 255.255.255.0 nomodify notrap
root@dlp:~#
systemctl restart ntp
# show status

root@dlp:~#
ntpq -p

     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 ntp.nict.jp     .POOL.          16 p    -   64    0    0.000    0.000   0.000
 ntp-a2.nict.go. .NICT.           1 u    1   64    1   14.677    0.976   1.419
+ntp-b2.nict.go. .NICT.           1 u    2   64    1   21.027    0.982   0.804
*61.205.120.130  .nict.           1 u    1   64    1   12.759   -0.581   0.488
Matched Content