NTP (Network Time Protocol)
Cheat sheet · https://pcornel.dk/topic.php?topic=2832
Answer
NTP (Network Time Protocol, UDP 123) synchronises clocks to time servers organised in strata. Linux clients usually use chrony or systemd-timesyncd.
Remember
Use at least three or four sources (or a pool) so a bad one can be outvoted. Allow UDP 123 outbound. Internal servers should sync from a few local NTP servers that sync externally.
First checks
timedatectl— time, time zone and sync statuschronyc tracking— offset and source (chrony)chronyc sources -v— time sources and reachabilitydate -u— UTC time
Verify in this order
client queries sources on UDP 123 → measures offset and delay → selects the best → adjusts the clock gradually
Where it usually breaks
First mismatch in persistent intent → provider/parser/generator → kernel/userspace runtime → dependency/security context → logs/counters → consumer-visible read-back; preserve identity/native diagnostic/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2832