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.
Starting NTP Development Discussion
This is where we discuss and debate what goes in StartingNTP
Setting the clock before starting.
It has been suggested that
ntpd -gq ; ntpd
is not the best way to start
. Since the
option allows a single step operation and requires that ntp halt rather than do another step if another is needed, it seems to me that quitting after setting the clock and restarting without restrictions is a good, if not the best, way to do it.
- 16 Sep 2004
ntp will not halt if another step is needed, unless the step is greater than SANITY (1000, by default) seconds.
The only reason to separate into the two steps you describe is if you want to use a different configuration file for startup and runtime.
Otherwise, there is no functional difference between
ntpd -gq ; ntpd
(And remember about
, at least. But those are described in the main topic.)
- 16 Sep 2004
It seems to me that what we want is to quickly poll all the configured servers using iburst, but not necessarily set the clock when the first server gets within maxdist. This is the intention of the minclock parameter, but since we do not know how many servers will be available at startup, Dave has set the default to 1, since anything else might be dangerous.
So, the truth is that minclock really needs to be adaptive, at least during the startup phase before the first clock set.
We want the effective minclock to be the minimum of minclock, or the number of reachable servers, and then make the default
be 4 (or 3? Does minclock specify the minimum before or after falseticker detection?)
Another possiblity would be to have maxdist have an additional "fudge factor" during the startup phase. With this scheme, we would defer the first clock selection until minclock servers reach maxdist (minclock defaulting to 1), but accepting any server that is within maxdist+fudge. After the first clock set, fudge becomes 0.
The actual problem is that we want to quickly set the clock to the closest approximation to the real time that we can determine, with an unknown number of reachable servers. Since we cannot know how many servers will be available at
startup time, we cannot use static values at compile or configuration time, although a sysadmin might be able to make
some plausible guesses at configuation time.
- 16 Feb 2005