NTP Server : Configure NTP Server (Chrony)2021/04/28 |
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 1 -161us[-5285us] +/- 9902us ^- ntp-k1.nict.jp 1 6 7 1 -1709us[-6833us] +/- 8891us ^+ ntp-a3.nict.go.jp 1 6 7 1 +1226us[-3898us] +/- 9469us ^* ntp-b3.nict.go.jp 1 6 7 1 -796us[-5919us] +/- 9542us |
Sponsored Link |