Chrony config documentation

Hi - Is there any documentation available for the /etc/config directives supported by the chrony package? The page on the wiki just contains package details:

2 Likes

You can add pools, peers, and servers to /etc/config/chrony like this:

config pool
	option hostname '2.openwrt.pool.ntp.org'
	option maxpoll '12'
	option iburst 'yes'

config peer
	option hostname '192.168.1.3'
	option maxpoll '5'
	option minpoll '1'
	option xleave

config server
        option hostname 'ntp1.server.tld'
        option maxpoll '12'
        option iburst 'yes'

Here is what else I find in my config:

config dhcp_ntp_server
	option iburst 'yes'
	option disabled 'no'

config allow
	option interface 'lan'

config makestep
	option threshold '1.0'
	option limit '3'

config nts
	option rtccheck 'yes'
	option systemcerts 'yes'

I don't know about other options

1 Like

Also check out this: LuCI APP: luci-app-chrony

What about the refclock option? is it supported?
Something like this is not being used

config refclock
        option SHM '1'
        option poll '3'
        option refid 'GPS1'

For the sake of a more complete and advanced configuration (supporting NTP v5), I share a sample from mine, exclusively using servers, not the NTP pool.

# nano /etc/config/chrony

And its contents:

config server
        option hostname '192.168.10.203'
        option minpoll '0'
        option maxpoll '5'
        option iburst 'yes'
        option polltarget '30'
        option xleave 'yes'
        option maxdelaydevratio '2'
        option maxdelay '0.050'
        option extfield 'F323'
        option prefer 'yes'

config server
        option hostname '129.134.29.123'
        option minpoll '0'
        option maxpoll '5'
        option iburst 'yes'
        option polltarget '30'
        option xleave 'yes'
        option maxdelaydevratio '2'
        option maxdelay '0.050'
        option extfield 'F323'

config lock_all

config rtcsync

config leapsectz
        option timezone 'right/UTC'

config dscp
        option directive '48'

config dhcp_ntp_server
        option iburst 'yes'
        option disabled 'yes'

config allow
        option interface 'lan'

config makestep
        option threshold '1.0'
        option limit '3'

config ratelimit
        option interval '1'
        option burst '16'
        option leak '2'

config nts
        option rtccheck 'yes'
        option systemcerts 'yes'

More info: https://chrony-project.org/doc/4.3/chrony.conf.html