NTP : Configure NTP Server (NTPd)2023/12/19 |
|
Install NTPd and Configure NTP server for time adjustment. NTP uses 123/UDP.
|
|
| [1] | Install and Configure NTPd. |
|
root@dlp:~ #
pkg install -y ntp
root@dlp:~ #
vi /etc/ntp.conf # line 32 : comment out default settings and add NTP Servers for your timezone #pool 0.freebsd.pool.ntp.org iburst #pool 2.freebsd.pool.ntp.org iburst pool ntp.nict.jp iburst # line 89 : 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:~ #
service ntpd enable ntpd enabled in /etc/rc.conf root@dlp:~ # service ntpd start Security policy loaded: MAC/ntpd (mac_ntpd) Starting ntpd. # verify 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-k1.nict.jp .NICT. 1 u 35 64 1 11.343 -9.364 6.736
*ntp-a3.nict.go. .NICT. 1 u 35 64 1 17.512 -8.837 3.944
-ntp-b2.nict.go. .NICT. 1 u 33 64 1 29.229 -14.034 4.794
+ntp-b3.nict.go. .NICT. 1 u 33 64 1 17.141 -8.294 4.203
+ntp-a2.nict.go. .NICT. 1 u 32 64 1 17.928 -7.993 7.155
|