Re: [chrony-users] nts in Chrony 4.0

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-users Archives ]


On 06/11/2020 09:38, Miroslav Lichvar wrote:
On Thu, Nov 05, 2020 at 08:58:56PM +0100, Andrew wrote:
Hi,

Im using Fedora 33 with Chrony 4.0 and I can see that NetNods servers are
preconfigured/commented out in /etc/chronyd.conf, but when I enable them and
restart the service chronyc source and chronyc tracking are empty.
Can you post your chrony.conf? "chronyd -p 2>/dev/null" will print it
without comments and empty space.

Does "chronyc activity" show a non-zero number of "unknown sources"?
That would indicate a DNS issue.

Does "ping time.cloudflare.com" work?

Hi,


chrony.conf:

server nts.ntp.se:4460 nts iburst
server nts.sth1.ntp.se:4460 nts iburst
server nts.sth2.ntp.se:4460 nts iburst
driftfile /var/lib/chrony/drift
makestep 1.0 3
rtcsync
keyfile /etc/chrony.keys
ntsdumpdir /var/lib/chrony
leapsectz right/UTC
logdir /var/log/chrony


[root@blackbox ~]# chronyc activity
200 OK
0 sources online
0 sources offline
0 sources doing burst (return to online)
0 sources doing burst (return to offline)
3 sources with unknown address


root@blackbox ~]# chronyc sources
MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
[root@blackbox ~]# chronyc -N authdata
Name/IP address             Mode KeyID Type KLen Last Atmp  NAK Cook CLen
=========================================================================
[root@blackbox ~]#


[root@blackbox ~]# ping time.cloudflare.com
PING time.cloudflare.com (162.159.200.1) 56(84) bytes of data.
64 bytes from time.cloudflare.com (162.159.200.1): icmp_seq=1 ttl=60 time=2.34 ms 64 bytes from time.cloudflare.com (162.159.200.1): icmp_seq=2 ttl=60 time=2.03 ms 64 bytes from time.cloudflare.com (162.159.200.1): icmp_seq=3 ttl=60 time=1.93 ms 64 bytes from time.cloudflare.com (162.159.200.1): icmp_seq=4 ttl=60 time=2.00 ms


[root@blackbox ~]# ping nts.ntp.se
PING nts.ntp.se (194.58.202.201) 56(84) bytes of data.
64 bytes from nts.ntp.se (194.58.202.201): icmp_seq=1 ttl=60 time=9.45 ms
64 bytes from nts.ntp.se (194.58.202.201): icmp_seq=2 ttl=60 time=9.45 ms
64 bytes from nts.ntp.se (194.58.202.201): icmp_seq=3 ttl=60 time=9.37 ms


/etc/resolv.conf:

nameserver 127.0.0.53
options edns0 trust-ad


When I change chrony.conf to:

pool 2.fedora.pool.ntp.org iburst
#server nts.ntp.se:4460 nts iburst
#server nts.sth1.ntp.se:4460 nts iburst
#server nts.sth2.ntp.se:4460 nts iburst

# Use NTP servers from DHCP.
sourcedir /run/chrony-dhcp

Then I get this:

[root@blackbox ~]# chronyc sources
MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
^? ntp-b.0x5e.se                 2   6     3     0 +1487ms[+1487ms] +/-   30ms ^? ntp1.vmar.se                  2   6     3     0 +1487ms[+1487ms] +/-   12ms ^? Time100.Stupi.SE              1   6     3     1 +1487ms[+1487ms] +/- 4973us ^? ntp4.flashdance.cx            2   6     3     1 +1487ms[+1487ms] +/-   24ms
[root@blackbox ~]# chronyc -N authdata
Name/IP address             Mode KeyID Type KLen Last Atmp  NAK Cook CLen
=========================================================================
2.fedora.pool.ntp.org          -     0    0    0    -    0    0 0    0
2.fedora.pool.ntp.org          -     0    0    0    -    0    0 0    0
2.fedora.pool.ntp.org          -     0    0    0    -    0    0 0    0
2.fedora.pool.ntp.org          -     0    0    0    -    0    0 0    0
[root@blackbox ~]#

Thanks,

Andrew



--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject. For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/