Configure NTP Server (Chrony)2014/04/18 |
Install Chrony and Configure NTP server for time adjustment. NTP uses 123/UDP. |
root@dlp:~#
apt-get -y install chrony
root@dlp:~#
vi /etc/chrony/chrony.conf # line 20: comment out # server 0.debian.pool.ntp.org offline minpoll 8# server 1.debian.pool.ntp.org offline minpoll 8# server 2.debian.pool.ntp.org offline minpoll 8# server 3.debian.pool.ntp.org offline minpoll 8# add servers of your timezone for time synchronization
server ntp1.jst.mfeed.ad.jp offline minpoll 8
server ntp2.jst.mfeed.ad.jp offline minpoll 8 server ntp3.jst.mfeed.ad.jp offline minpoll 8 # line 69: add the network range you allow to receive requests # allow 10/8# allow 192.168/16# allow 172.16/12
allow 10.0.0.0/24
/etc/init.d/chrony restart Restarting time daemon: Starting /usr/sbin/chronyd... chronyd is running and online. # show status root@dlp:~# chronyc sources 210 Number of sources = 3 MS Name/IP address Stratum Poll Reach LastRx Last sample =============================================================================== ^* ntp1.jst.mfeed.ad.jp 2 8 37 19 +504us[ +561us] +/- 81ms ^+ ntp2.jst.mfeed.ad.jp 2 8 37 20 -855us[ -798us] +/- 85ms ^+ ntp3.jst.mfeed.ad.jp 2 8 37 20 +633us[ +947us] +/- 112ms |
Sponsored Link |
|