Skip to main content

Client

  • Setting up a timezone
timedatectl list-timezones
timedatectl set-timezone Australia/Victoria
  • Checking the packages (getting rid of systemd-timesyncd, adding ntp/ntpsec)
apt list ntp systemd-timesyncd

systemctl status ntp
  • Configuring NTP
nano -w /etc/ntpsec/ntp.conf
# pool.ntp.org maps to about 1000 low-stratum NTP servers.  Your server will
# pick a different set every time it starts up.  Please consider joining the
# pool: <https://www.pool.ntp.org/join.html>
pool 0.debian.pool.ntp.org iburst
pool 1.debian.pool.ntp.org iburst
pool 2.debian.pool.ntp.org iburst
pool 3.debian.pool.ntp.org iburst

# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::1
#server 1.time.constant.com iburst
#server 2.time.constant.com iburst
#server 3.time.constant.com iburst
systemctl restart ntp 
  • Checking
ntpq -p