Ubuntu 25.04
Sponsored Link

NTP Server : Configure NTP Server (NTPsec)2025/04/21

 

Install NTPsec and Configure NTP server for time adjustment. NTP uses 123/UDP.

[1] Install and Configure NTPsec.
root@dlp:~#
apt -y install ntpsec
root@dlp:~#
vi /etc/ntpsec/ntp.conf
# line 24 : if you use your own NTP servers only and also 
# pool entries are a few, change number of value below or comment out the line
#tos minclock 4 minsane 3

# line 34 : 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 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.
#server ntp.ubuntu.com
pool ntp.nict.jp iburst 

root@dlp:~#
systemctl restart ntpsec
# verify status

root@dlp:~#
ntpq -p

     remote                                   refid      st t when poll reach   delay   offset   jitter
=======================================================================================================
 ntp.nict.jp                             .POOL.          16 p    -  256    0   0.0000   0.0000   0.0001
+ntp-a2.nict.go.jp                       .NICT.           1 u    9   64    1  17.3937 -88.6862   3.1406
+ntp-b2.nict.go.jp                       .NICT.           1 u    9   64    1  20.5690 -87.4461   3.4075
*ntp-a3.nict.go.jp                       .NICT.           1 u    9   64    1  17.3066 -88.5597   3.2338
+ntp-k1.nict.jp                          .NICT.           1 u    9   64    1  12.9716 -86.5904   3.2876
+ntp-b3.nict.go.jp                       .NICT.           1 u    9   64    1  20.0766 -87.1291   3.4099
 2001:ce8:78::2                          .INIT.          16 u    -   64    0   0.0000   0.0000   0.0001
 ntp-a3.nict.go.jp                       .INIT.          16 u    -   64    0   0.0000   0.0000   0.0001
 ntp-a2.nict.go.jp                       .INIT.          16 u    -   64    0   0.0000   0.0000   0.0001
Matched Content