[Samba] Time synchronization problem. Chrony, ntp

Programnet
2025-01-18T11:22:55Z

Unfortunately, this does not solve the problem.

When I run the command:


w32tm /monitor
I can see both the request and response in tcpdump NTPv1.

12:12:15.230555 IP (tos 0x0, ttl 128, id 50559, offset 0, flags [none],
proto UDP (17), length 76)
 ??? 192.168.45.14.58655 > 192.168.45.9.123: NTPv1, Client, length 48
 ??????? Leap indicator:? (0), Stratum 0 (unspecified), poll 0 (1s),
precision 0
 ??????? Root Delay: 0.000000, Root dispersion: 0.000000, Reference-ID:
(unspec)
 ????????? Reference Timestamp:? 0.000000000
 ????????? Originator Timestamp: 0.000000000
 ????????? Receive Timestamp:??? 0.000000000
 ????????? Transmit Timestamp:?? 3946187533.020913599 (2025-01-18T11:12:13Z)
 ??????????? Originator - Receive Timestamp:? 0.000000000
 ??????????? Originator - Transmit Timestamp: 3946187533.020913599
(2025-01-18T11:12:13Z)
12:12:15.230763 IP (tos 0x0, ttl 64, id 34850, offset 0, flags [DF],
proto UDP (17), length 76)
 ??? 192.168.45.9.123 > 192.168.45.14.58655: NTPv1, Server, length 48
 ??????? Leap indicator:? (0), Stratum 3 (secondary reference), poll 0
(1s), precision -25
 ??????? Root Delay: 0.021835, Root dispersion: 0.002899, Reference-ID:
0xd47f5fda
 ????????? Reference Timestamp:? 3946187516.138654557 (2025-01-18T11:11:56Z)
 ????????? Originator Timestamp: 3946187533.020913599 (2025-01-18T11:12:13Z)
 ????????? Receive Timestamp:??? 3946187535.230308235 (2025-01-18T11:12:15Z)
 ????????? Transmit Timestamp:?? 3946187535.230492444 (2025-01-18T11:12:15Z)
 ??????????? Originator - Receive Timestamp:? +2.209394635
 ??????????? Originator - Transmit Timestamp: +2.209578844


However, when I execute:

w32tm /resync

tcpdump shows only the NTPv3 request, as if Chrony is not responding.


12:12:30.491813 IP (tos 0x0, ttl 128, id 50564, offset 0, flags [none],
proto UDP (17), length 148)
 ??? 192.168.45.14.123 > 192.168.45.9.123: NTPv3, Client, length 120
 ??????? Leap indicator: clock unsynchronized (192), Stratum 0
(unspecified), poll 17 (131072s), precision -23
 ??????? Root Delay: 0.000000, Root dispersion: 1.000000, Reference-ID:
(unspec)
 ????????? Reference Timestamp:? 3944713535.922032999 (2025-01-01T09:45:35Z)
 ????????? Originator Timestamp: 0.000000000
 ????????? Receive Timestamp:??? 0.000000000
 ????????? Transmit Timestamp:?? 3946187548.281043099 (2025-01-18T11:12:28Z)
 ??????????? Originator - Receive Timestamp:? 0.000000000
 ??????????? Originator - Transmit Timestamp: 3946187548.281043099
(2025-01-18T11:12:28Z)
 ??????? (72 more bytes after the header)


W dniu 18.01.2025 o 11:27, Luis Peromarta via samba pisze:
 > This works. Hopefully it?ll help you.