What's new

ntpMerlin ntpMerlin v3.x

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

v3.2.0 is now available

Changelog

  • FIXED: Values for chrony were being logged and displayed incorrectly
  • CHANGED: Remove Jitter chart from WebUI (not a useful metric)
  • IMPROVED: Export now produces a csv rather than a zip
 
v3.2.0 is now available

Changelog

  • FIXED: Values for chrony were being logged and displayed incorrectly
  • CHANGED: Remove Jitter chart from WebUI (not a useful metric)
  • IMPROVED: Export now produces a csv rather than a zip
This is fantastic!
I just need it to have been running for a month (it's only been 10-12 days on my system) to populate the data registers for correct averages/scaling...
 
Great Job. Many thanks.

I have just installed it and there is a minor bug. It is not affecting to its functionality.

It is showing ...“ v3.2.0 - Updated 2020-01-21”

But we are in 2021.;)
 
Thank you for the update
 
Just tested cloudflare's nts support by uncommenting the config line and here's what I got.
Code:
Jan 23 15:51:36 chronyd[12151]: Missing NTS support
However, searching cloudflare's website, I found out I need to add port 1234(time.cloudflare.com:1234) to use nts support. It worked after I edited the config file. :)
 
Just tested cloudflare's nts support by uncommenting the config line and here's what I got.
Code:
Jan 23 15:51:36 chronyd[12151]: Missing NTS support
However, searching cloudflare's website, I found out I need to add port 1234(time.cloudflare.com:1234) to use nts support. It worked after I edited the config file. :)
Thank you. I received this same log message this morning when I tried it. I didn’t know we have to point to port 1234.
 
Thank you. I received this same log message this morning when I tried it. I didn’t know we have to point to port 1234.
Interesting, I didn’t think the chronyd supplied by Entware supports NTS yet. I should be available in the next update from what I have read on GitHub
 
Thank you. I received this same log message this morning when I tried it. I didn’t know we have to point to port 1234.

Interesting, I didn’t think the chronyd supplied by Entware supports NTS yet. I should be available in the next update from what I have read on GitHub
it might as well not been implemented yet. Here's what the log says when I don't append the port in the comfig's file using cloudflare's server.
Code:
Jan 23 15:52:15 chronyd[12554]: chronyd version 4.0 starting (+CMDMON +NTP +REFCLOCK -RTC +PRIVDROP -SCFILTER -SIGND +ASYNCDNS -NTS -SECHASH +IPV6 -DEBUG)
Jan 23 15:52:15 chronyd[12554]: Frequency -12.744 +/- 0.317 ppm read from /opt/var/lib/chrony/drift
Jan 23 15:52:15 chronyd[12554]: Loaded dump file for 162.159.200.1
Jan 23 15:52:15 chronyd[12554]: Loaded dump file for 162.159.200.123
Jan 23 15:52:15 xxxxx: Started chronyd from .
Jan 23 15:52:16 chronyd[12554]: Missing NTS support
And this is the log after I edited the config file adding port 1234 and restarted chronyd. As you can see there is no Missing NTS support statement in the log. This was my basis that it worked?
Code:
Jan 23 17:07:02 xxxxx: Started chronyd from .
Jan 23 17:07:11 ntpMerlin: Restarting chronyd...
Jan 23 17:07:11 S77chronyd: Waiting for NTP to sync before starting...
Jan 23 17:07:11 chronyd[24449]: chronyd exiting
Jan 23 17:07:11 chronyd[24630]: chronyd version 4.0 starting (+CMDMON +NTP +REFCLOCK -RTC +PRIVDROP -SCFILTER -SIGND +ASYNCDNS -NTS -SECHASH +IPV6 -DEBUG)
Jan 23 17:07:11 chronyd[24630]: Frequency -12.744 +/- 0.317 ppm read from /opt/var/lib/chrony/drift
Jan 23 17:07:11 xxxxx: Started chronyd from .
Is there a chronyd complete log somewhere that I can check? or any command to check if NTS support works?
 
Last edited:
it might as well not been implemented yet. Here's what the log says when I don't append the port in the comfig's file using cloudflare's server.
Code:
Jan 23 15:52:15 chronyd[12554]: chronyd version 4.0 starting (+CMDMON +NTP +REFCLOCK -RTC +PRIVDROP -SCFILTER -SIGND +ASYNCDNS -NTS -SECHASH +IPV6 -DEBUG)
Jan 23 15:52:15 chronyd[12554]: Frequency -12.744 +/- 0.317 ppm read from /opt/var/lib/chrony/drift
Jan 23 15:52:15 chronyd[12554]: Loaded dump file for 162.159.200.1
Jan 23 15:52:15 chronyd[12554]: Loaded dump file for 162.159.200.123
Jan 23 15:52:15 xxxxx: Started chronyd from .
Jan 23 15:52:16 chronyd[12554]: Missing NTS support
And this is the log after I edited the config file adding port 1234 and restarted chronyd. As you can see there is no Missing NTS support statement in the log. This was my basis that it worked?
Code:
Jan 23 17:07:02 xxxxx: Started chronyd from .
Jan 23 17:07:11 ntpMerlin: Restarting chronyd...
Jan 23 17:07:11 S77chronyd: Waiting for NTP to sync before starting...
Jan 23 17:07:11 chronyd[24449]: chronyd exiting
Jan 23 17:07:11 chronyd[24630]: chronyd version 4.0 starting (+CMDMON +NTP +REFCLOCK -RTC +PRIVDROP -SCFILTER -SIGND +ASYNCDNS -NTS -SECHASH +IPV6 -DEBUG)
Jan 23 17:07:11 chronyd[24630]: Frequency -12.744 +/- 0.317 ppm read from /opt/var/lib/chrony/drift
Jan 23 17:07:11 xxxxx: Started chronyd from .
Is there a chronyd complete log somewhere that I can check? or any command to check if NTS support works?
Yes, this chrony version does not support NTS yet. How did I know?
I read somewhere about this command "chronyc -n sources" and when executed there is no source ip of cloudflare servers when configured as the lone time server with NTS support to test. My guess is if chronyc does not support encryption it can not get an answer from the server, however, there is no obvious log to show the error.
Code:
xxxxx@RT-AX88U-FEE0:/tmp/home/root# chronyc -n sources
MS Name/IP address         Stratum Poll Reach LastRx Last sample               
===============================================================================
xxxxx@RT-AX88U-FEE0:/tmp/home/root#
Compared to normal config(non NTS server)
Code:
xxxxx@RT-AX88U-FEE0:/tmp/home/root# chronyc -n sources
MS Name/IP address         Stratum Poll Reach LastRx Last sample               
===============================================================================
^+ 162.159.200.1                 3   6    37     2    -77us[  -77us] +/- 7370us
^* 162.159.200.123               3   6    37     3   +132us[  +76us] +/- 6969us
 
Last edited:
Question -
is there a way to determine which clients on my network are (or aren't) following this timeserver from within the script?
(maybe a nice tie-in with YazDHCP?)
 
Question -
is there a way to determine which clients on my network are (or aren't) following this timeserver from within the script?
(maybe a nice tie-in with YazDHCP?)
Command line you can run
Code:
chronyc clients
I don't remember the equivalent for ntpd off the top of my head, probably a switch for ntpq
 
I think you have to setup the time/zone in your desktop. So this have to point your router IP, which is now your NTP server
yes, I believed I had done that already, but it seems to want to follow ubuntu's ntp server instead
 
The option "Toggle redirect of all NTP traffic to ntpMerlin" does that, or that is what I think it does. Don't know if it shows in "chronyc clients" , maybe @Jack Yaz could give some info?
 
The option "Toggle redirect of all NTP traffic to ntpMerlin" does that, or that is what I think it does. Don't know if it shows in "chronyc clients" , maybe @Jack Yaz could give some info?
Trust, but verify. I have that option selected in Merlin, yet my desktop is absent from chronyc clients; I even checked for and pointed my ntp settings option in network connections to my router's IP, and still it looks to ntp.ubuntu.com
I'm sure I'll discover the "oops" soon enough, probably as an "oops!" itself. lol
 
Last edited:
since the 386.1 update, I'm getting all devices on my network (save a stubborn android phone) following ntpMerlin.
for some reason my desktop's IP querying chronyc clients doesn't match the client list in the Merlin GUI...is that dnsmasq? or is it an IPv6 thing?
 
Following on from a previous post about suspicious offset etc, followed the commands and had these outputs. Only thing I'd changed is modified servers to local ones. Are these outputs legit? Or have I cocked something up?

Code:
admin86@RT-AX86U-0468:/tmp/home/root# /opt/etc/init.d/S77chronyd check
 Checking timeserverd...              alive.
admin86@RT-AX86U-0468:/tmp/home/root# chronyc tracking
Reference ID    : 7F7F0101 ()
Stratum         : 10
Ref time (UTC)  : Mon Feb 08 00:47:07 2021
System time     : 0.000000000 seconds slow of NTP time
Last offset     : +0.000000000 seconds
RMS offset      : 0.000000000 seconds
Frequency       : 6.282 ppm slow
Residual freq   : +0.000 ppm
Skew            : 0.000 ppm
Root delay      : 0.000000000 seconds
Root dispersion : 0.000000000 seconds
Update interval : 0.0 seconds
Leap status     : Normal
admin86@RT-AX86U-0468:/tmp/home/root# chronyc sources
MS Name/IP address         Stratum Poll Reach LastRx Last sample               
===============================================================================
^- uklon5-ntp-004.aaplimg.c>     1   7   377   117   -193us[ -193us] +/- 9331us
^- frcch1-ntp-001.aaplimg.c>     1   8   357    45   -385us[ -385us] +/-   14ms
^- ntp.euro.apple.com            1   8   377   113    +80us[  +80us] +/- 8937us
^- uklon5-ntp-003.aaplimg.c>     1   7   377   109    +55us[  +55us] +/- 8583us
^- time2.google.com              1   8   377   114   -100us[ -100us] +/-   12ms
^- time1.google.com              1   8   377   110   +119us[ +119us] +/-   12ms
^- time4.google.com              1   8   377    45   -382us[ -382us] +/-   14ms
^- time3.google.com              1   8   377   112   -572us[ -572us] +/-   13ms
^- time.cloudflare.com           3   8   377    41   -543us[ -543us] +/-   16ms
^- ns4.turbodns.co.uk            2   8   357   168  -1178us[-1178us] +/-   66ms
^- ns2.customer-resolver.net     2   8   377   230   -282us[ -282us] +/-   53ms
^- ns1.luns.net.uk               2   8   377    43   -873us[ -873us] +/-   45ms
^- 183.ip-51-89-151.eu           3   8   357    45    +90us[  +90us] +/-   12ms
^- ntp.nat.ms                    1   7   377   106  -4039us[-4039us] +/-   21ms
^- 213.251.53.217                2   8   377    36  +1899us[+1899us] +/-   52ms
^- 51-155-16-62.ll.in-addr.>     1   8   377   236   -321us[ -321us] +/-   21ms
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Members online

Top