After that change and restart chrony should listen on port 123.
EDIT:
that still doesn't answer why your host is in the sources list, maybe you changed /etc/chrony/chrony.conf?
Check /var/etc/chrony.d/10-uci.conf (after starting chrony) to see if the host is listed there too.
EDIT2:
the dhcp_ntp_server-directive is useful only if you receive a list of ntp server from a dhcp server.
This can be used to set different ntp server for different interfaces.
Keywords here: /etc/hotplug.d/iface/20-chrony and chrony sourcedir
No, chrony will be listening on all subnets by default but answers to allowed clients/subnets only. You can test this by commenting one allow rule and restart the daemon. The server shouldn't answer requests from that subnet anymore.
Chrony has the option to set binddevice and bindaddress but those are limited to one device/address (although i couldn't get it to work properly with binddevice).
It might be possible to run more than one chrony daemon by duplicating the init-script and changing config files, paths, (server) ports etc. for that 2nd instance but i haven't tested that.
EDIT:
connections from wan should be blocked by default with your firewall
inside your network you can adjust the firewall to prevent other subnets from accessing the server at all
Why is IP 192.168.1.1 listed as a NTP source?
This IP is not offering a NTP service on port 123:
root@eddie:~# nmap -p 123 192.168.1.1
Starting Nmap 7.80 ( https://nmap.org ) at 2022-06-19 12:25 CEST
Nmap scan report for 192.168.1.1
Host is up (0.00044s latency).
PORT STATE SERVICE
123/tcp closed ntp
MAC Address: C8:0E:14:DE:97:70 (AVM Audiovisuelles Marketing und Computersysteme GmbH)
Nmap done: 1 IP address (1 host up) scanned in 1.16 seconds
My intention is that OpenWrt router is a NTP server for any client in subnet proxy and dmz, and the NTP server IP is announced via DHCP to the relevant clients in these subnets.
nts isn't working with default chrony package. you'll need chrony-nts package and a special configuration for it. If you don't use nts, remove these 3 lines.
Hello! I know this is an old Topic but I ended up here when I was searching for chrony-nts configurations.
After I installed chrony-nts on OpenWrt 23.05.3 I noticed that the default configuration "seemed" to work but after taking a look at the packets to see if it was really using NTS I noticed that the packets were missing the NTS Extensions, this led me to check the /etc/init.d/chronyd file
Here is a small snippet relevant to this conversation
As you can see from the code block above in order for NTS or iburst to work it needs to be configured with boolean value of 1 by default the config has "yes", but that does not seem to work for NTS.
I got it to work using NTS properly by using this config
After I added this configuration I was able to see the special Extensions that signify that NTS is being used in wireshark.
Here is a picture of what this looks like.
According to chrony manpage: offline If the server will not be reachable when chronyd is started, the offline option can be specified. chronyd will not try to poll the server until it is enabled to do so (by using the online command in chronyc).
OpenWrt manages services with SysVinit scripts, and this means I cannot modify order of starting services.
Check "chronyc sources" - it shows how many seconds to next check, it will grow to 1024s interval if your computer has stable clock. Nothing to worry about, ntp servers do the regular checking.