Seems like the chrony NTP server in VyOS does not sync its time due to it unable to resolve DNS names at boot of the system. To solve this, I added an IP address to my list of NTP servers and then checked via chronyc
Before change, the config was
vyos@vyos# edit service ntp [edit service ntp] vyos@vyos# show allow-client { address 10.0.0.0/8 } interface eth2.4040 listen-address 10.255.253.1 server 0.ubnt.pool.ntp.org { } server 1.ubnt.pool.ntp.org { } server 2.ubnt.pool.ntp.org { } server 3.ubnt.pool.ntp.org { } server time1.vyos.net { } server time2.vyos.net { } server time3.vyos.net { }
Also, Chrony was not synced
vyos@vyos:/etc$ sudo chronyc tracking Reference ID : 00000000 () Stratum : 0 Ref time (UTC) : Thu Jan 01 00:00:00 1970 System time : 0.000000000 seconds fast of NTP time Last offset : +0.000000000 seconds RMS offset : 0.000000000 seconds Frequency : 0.000 ppm slow Residual freq : +0.000 ppm Skew : 0.000 ppm Root delay : 1.000000000 seconds Root dispersion : 1.000000000 seconds Update interval : 0.0 seconds Leap status : Not synchronised
After I made the following changes and committed them,
vyos@vyos# edit service ntp [edit service ntp] vyos@vyos# show allow-client { address 10.0.0.0/8 } interface eth2.4040 listen-address 10.255.253.1 server 0.ubnt.pool.ntp.org { pool } server 1.ubnt.pool.ntp.org { pool } server 2.ubnt.pool.ntp.org { pool } server 3.ubnt.pool.ntp.org { pool } server 129.6.15.28 { prefer } server time1.vyos.net { } server time2.vyos.net { } server time3.vyos.net { }
My clients started to properly sync time (they were reporting the "kiss-of-death" packet
Also, chronyc showed
vyos@vyos:~$ sudo chronyc tracking Reference ID : 81060F1C (129.6.15.28) Stratum : 2 Ref time (UTC) : Tue Aug 15 20:24:27 2023 System time : 0.000016202 seconds slow of NTP time Last offset : +0.000060604 seconds RMS offset : 0.000991987 seconds Frequency : 3.716 ppm slow Residual freq : +0.011 ppm Skew : 2.638 ppm Root delay : 0.072576128 seconds Root dispersion : 0.000859601 seconds Update interval : 64.2 seconds Leap status : Normal
My VyOS version is
vyos@vyos:/etc$ show version Version: VyOS 1.4-rolling-202308140557 Release train: current