Configure Network Time Security with chrony on RHEL
Network Time Security (NTS) authenticates time synchronisation on Red Hat Enterprise Linux. chrony performs an NTS-KE handshake over UDP 4460, receives session cookies, then uses authenticated Network Time Protocol (NTP) over UDP 123 rather than trusting an ordinary pool.
This guide covers modern RHEL releases, including RHEL 8 and 9, with systemd, chronyd and chronyc. It includes the certificate and firewall checks that commonly explain failures in Australian datacentres, cloud instances and regional offices.
Prepare the RHEL host
Install chrony and the CA trust store, then set the correct IANA time zone. NTS synchronises UTC; it does not select AEST, AEDT or another local display.
sudo dnf install chrony ca-certificates
sudo timedatectl set-timezone Australia/Sydney
timedatectl status
Replace Australia/Sydney with the matching zone, such as Australia/Brisbane, Australia/Perth, Australia/Adelaide or Australia/Lord_Howe. Lord Howe uses a 30-minute daylight-saving shift; Queensland, Western Australia and the Northern Territory do not change their UTC offset seasonally.
Select NTS-capable time sources
An NTS server must support NTS-KE and present a valid TLS certificate. chrony checks that certificate against the RHEL trust store before using the returned cookies. Adding nts to a hostname offering only ordinary NTP cannot create NTS support.
Use at least two independent operators so one failed handshake or maintenance window does not remove every usable source. Cloudflare, Google and the NTP Pool provide public NTS services suitable for testing.
Australian administrators often use the Australian section of the NTP Pool. Keep it only as a deliberate fallback: plain NTP weakens the requirement, and a source configured with nts never silently downgrades to unauthenticated NTP.
Configure authenticated time in chrony
Back up the packaged configuration before editing it:
sudo cp /etc/chrony.conf /etc/chrony.conf.bak.$(date +%F-%H%M%S)
sudoedit /etc/chrony.conf
Remove the default pool line unless you intentionally want an unauthenticated fallback. Then add NTS servers, RTC synchronisation and the initial-step rule:
server time.cloudflare.com iburst nts
server time.google.com iburst nts
server nts.pool.org iburst nts
ntsdumpfile /var/lib/chrony/nts-keys
rtcsync
makestep 1.0 3
ntsdumpfile stores session cookies under /var/lib/chrony for faster restarts; keep that file private. makestep 1.0 3 allows a step larger than one second only during the first three updates. Compare the directives with chrony.conf(5) and the chrony configuration reference.
Allow NTS through the firewall
Two UDP paths matter: 4460 carries NTS-KE, while 123 carries NTP. A client needs outbound access plus stateful replies. An RHEL host acting as its own NTS-KE server must also accept both ports from authorised peers.
With firewalld, allow the ports explicitly:
sudo firewall-cmd --permanent --add-port=123/udp
sudo firewall-cmd --permanent --add-port=4460/udp
sudo firewall-cmd --reload
sudo firewall-cmd --list-all
Cloud security groups need egress for both ports. AWS regions around Sydney and Azure Australia East, West and Southeast normally admit stateful return traffic, but an instance serving time to other systems also needs source-restricted ingress. Check both provider policy and the RHEL firewall.
Start chronyd and confirm synchronisation
Enable and restart the daemon, then check for competing time clients:
sudo systemctl enable chronyd
sudo systemctl restart chronyd
systemctl is-active chronyd systemd-timesyncd ntpd
Use chronyc tracking for leap status and stratum, chronyc sources -v for the selected server, and chronyc ntpdata for offset and jitter. A healthy source begins with ^*; ? means unreachable.
chronyc tracking
chronyc sources -v
chronyc ntpdata
For an arvo (afternoon) sanity check, inspect the log and synchronisation flag. The Linux commands guide explains the surrounding RHEL syntax. A successful NTS-KE message and yes from timedatectl provide independent checks.
sudo journalctl -u chronyd -b --no-pager | grep -Ei 'NTS|KE|certificate|error|fail'
timedatectl show -p NTPSynchronized --value
Diagnose common NTS failures
When every source shows ?, check routing and UDP 123 first. If sources appear but selection fails, inspect NTS-KE errors for blocked UDP 4460, DNS failures or a rejected certificate. A local firewall and an upstream cloud security group can each block a different port.
Certificate errors can mean an incomplete trust store, an expired chain or a badly wrong system clock. Verify DNS and the installed trust package. If TLS validation fails because the clock is years out, set a rough time manually or correct the hypervisor clock, then restart chronyd.
rpm -q ca-certificates
getent ahosts time.cloudflare.com
Also ensure ntpd or systemd-timesyncd is not running beside chronyd. Multiple clients can overwrite each other’s corrections. Use makestep only at startup; ongoing corrections should slew to avoid disruptive jumps in logs, certificates and databases.
Maintain a reliable NTS service
Monitor chronyd through systemd and keep the package current. After an update, restart the service and verify the clock rather than assuming every runtime setting survived. Review /etc/chrony.conf after major RHEL releases because package defaults can change.
sudo dnf upgrade chrony
sudo systemctl restart chronyd
chronyc tracking
Confirm the service starts after reboot, keep the ntsdumpfile on protected storage and preserve reliable DNS because each NTS server is selected by name. Restrict administrative access to chronyc, since it can change synchronisation state.
After daylight-saving changes in New South Wales, Victoria, South Australia, Tasmania and the ACT, check the time-zone display separately; NTS still delivers UTC. The practical takeaway is to verify both layers: a successful NTS-KE exchange and a selected chrony source marked ^*, with UDP 4460 and 123 reachable to the chosen service.