NTP users are strongly urged to take immediate action to ensure that their NTP daemons are not susceptible to being used in distributed denial-of-service (DDoS) attacks. Please also take this opportunity to defeat denial-of-service attacks by implementing Ingress and Egress filtering through BCP38.
ntp-4.2.8p15 was released on 23 June 2020. It addresses 1 medium-severity security issue in ntpd, and provides 13 non-security bugfixes over 4.2.8p13.
Are you using Autokey in production? If so, please contact Harlan - he's got some questions for you.
This page is a simple description of testing the leap-second implementation in NTP, this is part of my GSoC
project as suggested by Harlan and I got many help from Martin.
This page is not completed yet and may contains incorrect information, I'll update it in few more days and any comment about mistakes are welcomed.
Setting up a Test Server
This part is pretty much a tutorial than a documentation, I'll list all the necessary steps of setting up a test server with fake time for the following tests, all the commands are based on Ubuntu 12.04 LTS system and may differ from other distributions and/or systems.
A test server can be simply simulated by setting up a NTP server and a file from NIST that describes all leap seconds. I use a pre-build ntpd from Ubuntu's repo to simplify the commands, if a ntp-dev is needed, you have to compile it by own.
Firstly, we install a ntp daemon.
sudo apt-get install ntp
And we get file from a NIST ftp server. This file is available on all the NIST servers, I just used a random one, for more infomation on this file, check Support.ConfiguringNTP#Section_6.14
mkdir /var/ntp && cd /var/ntp
Then we need to change settings of ntpd so that it can announce a fake time.
sudo vi /etc/ntp.conf
We just comment all the `server` lines out, and set the server itself as refclock as described in Support.UndisciplinedLocalClock
fudge 127.127.1.0 stratum 10
Now we set the system time to somewhere a little before a leap second took place, e.g, Jun 29, 2012, and then restart the ntpd daemon.
sudo date -s "2012-06-29 15:00"
sudo service ntp restart
Now we just got back to 9 hours earlier than a leap-second in the past.