Chrony NTP Client Setup

tested on slack150

pgrep -a ntp                # empty
ls -lF /var/log/packages/ntp*       # empty
ls -lF /var/log/packages/openntp*   # empty
ls -lF /etc/rc.d/rc.*ntp*       # empty

sbopkg -r
sbopkg -i chrony
ls -lF /etc/rc.d/rc.chrony

cat /etc/adjtime

cp -pi /etc/chrony.conf /etc/chrony.conf.dist
vi /etc/chrony.conf

pool COUNTRY-CODE1.pool.ntp.org iburst
pool COUNTRY-CODE2.pool.ntp.org iburst

driftfile /var/lib/chrony/drift
makestep 1.0 3
rtcsync
hwclockfile /etc/adjtime
cmdport 0

#local stratum 10
#peer x.x.x.x
#peer x.x.x.x

and in case you want it to become authoritative over some subnet

#local stratum 10
#allow x.x.x.x/x

Ready to go

rc.chrony restart

pgrep -a chronyd
netstat -lntup | grep 123

Resources

https://chrony.tuxfamily.org/

https://chrony.tuxfamily.org/doc/4.3/chronyc.html

https://chrony.tuxfamily.org/faq.html

https://redhat.com/sysadmin/chrony-time-services-linux –> allow


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun