From: Harlan Stenn Date: Tue, 6 Oct 2015 10:25:48 +0000 (-0400) Subject: NTP_4_2_8P4_RC1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34a49b8ac9e05c2acd0b6342b5fdc8a88af72809;p=thirdparty%2Fntp.git NTP_4_2_8P4_RC1 bk: 5613a1acrQAyOyA_86xGhOHz7QTYTQ --- diff --git a/ChangeLog b/ChangeLog index 975967d7b..b022ef6f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ --- +(4.2.8p4-RC1) 2015/10/06 Released by Harlan Stenn * [Bug 2332] (reopened) Exercise thread cancellation once before dropping privileges and limiting resources in NTPD removes the need to link diff --git a/ntpd/invoke-ntp.conf.texi b/ntpd/invoke-ntp.conf.texi index c1df1693b..ff87deda9 100644 --- a/ntpd/invoke-ntp.conf.texi +++ b/ntpd/invoke-ntp.conf.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (invoke-ntp.conf.texi) # -# It has been AutoGen-ed September 23, 2015 at 10:15:09 AM by AutoGen 5.18.5 +# It has been AutoGen-ed October 6, 2015 at 06:06:51 AM by AutoGen 5.18.5 # From the definitions ntp.conf.def # and the template file agtexi-file.tpl @end ignore diff --git a/ntpd/invoke-ntp.keys.texi b/ntpd/invoke-ntp.keys.texi index 622c4ffe0..8a09ac763 100644 --- a/ntpd/invoke-ntp.keys.texi +++ b/ntpd/invoke-ntp.keys.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (invoke-ntp.keys.texi) # -# It has been AutoGen-ed June 29, 2015 at 04:30:31 PM by AutoGen 5.18.5 +# It has been AutoGen-ed October 6, 2015 at 06:06:56 AM by AutoGen 5.18.5 # From the definitions ntp.keys.def # and the template file agtexi-file.tpl @end ignore diff --git a/ntpd/invoke-ntpd.texi b/ntpd/invoke-ntpd.texi index 6936dda91..3f5d5acd5 100644 --- a/ntpd/invoke-ntpd.texi +++ b/ntpd/invoke-ntpd.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (invoke-ntpd.texi) # -# It has been AutoGen-ed June 29, 2015 at 04:30:33 PM by AutoGen 5.18.5 +# It has been AutoGen-ed October 6, 2015 at 06:07:00 AM by AutoGen 5.18.5 # From the definitions ntpd-opts.def # and the template file agtexi-cmd.tpl @end ignore @@ -142,7 +142,7 @@ with a status code of 0. @exampleindent 0 @example -ntpd - NTP daemon program - Ver. 4.2.8p3 +ntpd - NTP daemon program - Ver. 4.2.8p4-RC1 Usage: ntpd [ - [] | --[@{=| @}] ]... \ [ ... ] Flg Arg Option-Name Description diff --git a/ntpd/ntp.conf.5man b/ntpd/ntp.conf.5man index 350f09dc1..c88162010 100644 --- a/ntpd/ntp.conf.5man +++ b/ntpd/ntp.conf.5man @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH ntp.conf 5man "23 Sep 2015" "4.2.8p3" "File Formats" +.TH ntp.conf 5man "06 Oct 2015" "4.2.8p4-RC1" "File Formats" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-1Va40z/ag-GWaWZz) .\" -.\" It has been AutoGen-ed September 23, 2015 at 10:22:45 AM by AutoGen 5.18.5 +.\" It has been AutoGen-ed October 6, 2015 at 06:06:17 AM by AutoGen 5.18.5 .\" From the definitions ntp.conf.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/ntpd/ntp.conf.5mdoc b/ntpd/ntp.conf.5mdoc index a5b250d1b..0cd5294ac 100644 --- a/ntpd/ntp.conf.5mdoc +++ b/ntpd/ntp.conf.5mdoc @@ -1,9 +1,9 @@ -.Dd September 23 2015 +.Dd October 6 2015 .Dt NTP_CONF 5mdoc File Formats .Os .\" EDIT THIS FILE WITH CAUTION (ntp.mdoc) .\" -.\" It has been AutoGen-ed September 23, 2015 at 10:15:06 AM by AutoGen 5.18.5 +.\" It has been AutoGen-ed October 6, 2015 at 06:07:05 AM by AutoGen 5.18.5 .\" From the definitions ntp.conf.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/ntpd/ntp.conf.html b/ntpd/ntp.conf.html index b5fad008e..61cb4bff9 100644 --- a/ntpd/ntp.conf.html +++ b/ntpd/ntp.conf.html @@ -1,164 +1,128 @@ - - - + -NTP Configuration File User’s Manual - - - - - - - - - - - - +NTP Configuration File User's Manual + + + + + + + + +

NTP Configuration File User's Manual

+
+


+Next: , +Previous: (dir), +Up: (dir) +
+
- -

NTP Configuration File User’s Manual

- - - +

NTP's Configuration File User Manual

+

This document describes the configuration file for the NTP Project's +ntpd program. - -

-

-Next: , Previous: , Up: (dir)  

-
- -

NTP’s Configuration File User Manual

+

This document applies to version 4.2.8p4-RC1 of ntp.conf. -

This document describes the configuration file for the NTP Project’s -ntpd program. -

-

This document applies to version 4.2.8p3 of ntp.conf. -

- -

Short Table of Contents

- -
-
    -
  • 1 Description
  • + + - - - - - -
    - -
    -

    -Previous: , Up: Top  

    +
    +


    +Previous: Top, +Up: Top +
    - -

    1 Description

    + + +

    Description

    The behavior of ntpd can be changed by a configuration file, by default ntp.conf. -

    -
    + +
    +


    -
    -

    -Previous: , Up: ntp.conf Description  

    +
    - -

    1.1 Notes about ntp.conf

    - - +

    Notes about ntp.conf

    +

    -

    The +

    The ntp.conf configuration file is read at initial startup by the ntpd(1ntpdmdoc) daemon in order to specify the synchronization sources, -modes and other related information. +modes and other related information. Usually, it is installed in the -/etc +/etc directory, but could be installed elsewhere -(see the daemon’s +(see the daemon's -c command line option). -

    -

    The file format is similar to other -UNIX -configuration files. + +

    The file format is similar to other +unix +configuration files. Comments begin with a -‘#’ +# character and extend to the end of the line; -blank lines are ignored. +blank lines are ignored. Configuration commands consist of an initial keyword followed by a list of arguments, -some of which may be optional, separated by whitespace. -Commands may not be continued over multiple lines. +some of which may be optional, separated by whitespace. +Commands may not be continued over multiple lines. Arguments may be host names, host addresses written in numeric, dotted-quad form, integers, floating point numbers (when specifying times in seconds) and text strings. -

    -

    The rest of this page describes the configuration and control options. + +

    The rest of this page describes the configuration and control options. The -"Notes on Configuring NTP and Setting up an NTP Subnet" +"Notes on Configuring NTP and Setting up an NTP Subnet" page (available as part of the HTML documentation provided in -/usr/share/doc/ntp) -contains an extended discussion of these options. +/usr/share/doc/ntp) +contains an extended discussion of these options. In addition to the discussion of general -‘Configuration Options’, +Configuration Options, there are sections describing the following supported functionality and the options used to control it: -

    - -

    Following these is a section describing -Miscellaneous Options. +

    + +

    Following these is a section describing +Miscellaneous Options. While there is a rich set of options available, the only required option is one or more pool, @@ -167,132 +131,121 @@ the only required option is one or more broadcast or manycastclient -commands. -


    +commands. +
    +


    - - -

    1.1.1 Configuration Support

    + +

    Configuration Support

    +

    Following is a description of the configuration commands in -NTPv4. +NTPv4. These commands have the same basic functions as in NTPv3 and -in some cases new functions and new arguments. +in some cases new functions and new arguments. There are two classes of commands, configuration commands that configure a persistent association with a remote server or peer or reference clock, and auxiliary commands that specify environmental variables that control various related operations. -

    -

    1.1.1.1 Configuration Commands

    + +
    Configuration Commands
    +

    The various modes are determined by the command keyword and the -type of the required IP address. +type of the required IP address. Addresses are classed by type as (s) a remote server or peer (IPv4 class A, B and C), (b) the broadcast address of a local interface, (m) a multicast address (IPv4 -class D), or (r) a reference clock address (127.127.x.x). +class D), or (r) a reference clock address (127.127.x.x). Note that -only those options applicable to each command are listed below. +only those options applicable to each command are listed below. Use of options not listed may not be caught as an error, but may result in some weird and even destructive behavior. -

    -

    If the Basic Socket Interface Extensions for IPv6 (RFC-2553) + +

    If the Basic Socket Interface Extensions for IPv6 (RFC-2553) is detected, support for the IPv6 address family is generated -in addition to the default support of the IPv4 address family. +in addition to the default support of the IPv4 address family. In a few cases, including the reslist billboard generated -by ntpdc, IPv6 addresses are automatically generated. +by ntpdc, IPv6 addresses are automatically generated. IPv6 addresses can be identified by the presence of colons -“:” -in the address field. +: +in the address field. IPv6 addresses can be used almost everywhere where IPv4 addresses can be used, with the exception of reference clock addresses, which are always IPv4. -

    -

    Note that in contexts where a host name is expected, a + +

    Note that in contexts where a host name is expected, a -4 qualifier preceding the host name forces DNS resolution to the IPv4 namespace, while a -6 -qualifier forces DNS resolution to the IPv6 namespace. +qualifier forces DNS resolution to the IPv6 namespace. See IPv6 references for the equivalent classes for that address family. -

    -
    pool address [burst] [iburst] [version version] [prefer] [minpoll minpoll] [maxpoll maxpoll]
    -
    server address [key key | autokey] [burst] [iburst] [version version] [prefer] [minpoll minpoll] [maxpoll maxpoll]
    -
    peer address [key key | autokey] [version version] [prefer] [minpoll minpoll] [maxpoll maxpoll]
    -
    broadcast address [key key | autokey] [version version] [prefer] [minpoll minpoll] [ttl ttl]
    -
    manycastclient address [key key | autokey] [version version] [prefer] [minpoll minpoll] [maxpoll maxpoll] [ttl ttl]
    -
    +
    +
    pool address [burst] [iburst] [version version] [prefer] [minpoll minpoll] [maxpoll maxpoll]
    server address [key key | autokey] [burst] [iburst] [version version] [prefer] [minpoll minpoll] [maxpoll maxpoll]
    peer address [key key | autokey] [version version] [prefer] [minpoll minpoll] [maxpoll maxpoll]
    broadcast address [key key | autokey] [version version] [prefer] [minpoll minpoll] [ttl ttl]
    manycastclient address [key key | autokey] [version version] [prefer] [minpoll minpoll] [maxpoll maxpoll] [ttl ttl]
    -

    These five commands specify the time server name or address to -be used and the mode in which to operate. +

    These five commands specify the time server name or address to +be used and the mode in which to operate. The address can be -either a DNS name or an IP address in dotted-quad notation. +either a DNS name or an IP address in dotted-quad notation. Additional information on association behavior can be found in the -"Association Management" +"Association Management" page (available as part of the HTML documentation provided in -/usr/share/doc/ntp). -

    -
    pool
    -

    For type s addresses, this command mobilizes a persistent -client mode association with a number of remote servers. +/usr/share/doc/ntp). +

    +
    pool
    For type s addresses, this command mobilizes a persistent +client mode association with a number of remote servers. In this mode the local clock can synchronized to the remote server, but the remote server can never be synchronized to -the local clock. -

    -
    server
    -

    For type s and r addresses, this command mobilizes a persistent +the local clock. +

    server
    For type s and r addresses, this command mobilizes a persistent client mode association with the specified remote server or local -radio clock. +radio clock. In this mode the local clock can synchronized to the remote server, but the remote server can never be synchronized to -the local clock. +the local clock. This command should not be used for type -b or m addresses. -

    -
    peer
    -

    For type s addresses (only), this command mobilizes a +b or m addresses. +

    peer
    For type s addresses (only), this command mobilizes a persistent symmetric-active mode association with the specified -remote peer. +remote peer. In this mode the local clock can be synchronized to the remote peer or the remote peer can be synchronized to the local -clock. +clock. This is useful in a network of servers where, depending on various failure scenarios, either the local or remote peer may be -the better source of time. +the better source of time. This command should NOT be used for type -b, m or r addresses. -

    -
    broadcast
    -

    For type b and m addresses (only), this -command mobilizes a persistent broadcast mode association. +b, m or r addresses. +

    broadcast
    For type b and m addresses (only), this +command mobilizes a persistent broadcast mode association. Multiple commands can be used to specify multiple local broadcast interfaces -(subnets) and/or multiple multicast groups. +(subnets) and/or multiple multicast groups. Note that local broadcast messages go only to the interface associated with the -subnet specified, but multicast messages go to all interfaces. +subnet specified, but multicast messages go to all interfaces. In broadcast mode the local server sends periodic broadcast messages to a client population at the address specified, which is usually the broadcast address on (one of) the -local network(s) or a multicast address assigned to NTP. +local network(s) or a multicast address assigned to NTP. The IANA has assigned the multicast group address IPv4 224.0.1.1 and IPv6 ff05::101 (site local) exclusively to NTP, but other nonconflicting addresses can be used to contain the -messages within administrative boundaries. +messages within administrative boundaries. Ordinarily, this specification applies only to the local server operating as a sender; for operation as a broadcast client, see the @@ -300,69 +253,61 @@ sender; for operation as a broadcast client, see the or multicastclient commands -below. -

    -
    manycastclient
    -

    For type m addresses (only), this command mobilizes a +below. +

    manycastclient
    For type m addresses (only), this command mobilizes a manycast client mode association for the multicast address -specified. +specified. In this case a specific address must be supplied which matches the address used on the manycastserver command for -the designated manycast servers. +the designated manycast servers. The NTP multicast address 224.0.1.1 assigned by the IANA should NOT be used, unless specific means are taken to avoid spraying large areas of the Internet with these messages and causing a possibly massive implosion of replies -at the sender. +at the sender. The manycastserver command specifies that the local server is to operate in client mode with the remote servers that are -discovered as the result of broadcast/multicast messages. +discovered as the result of broadcast/multicast messages. The client broadcasts a request message to the group address associated with the specified address and specifically enabled -servers respond to these messages. +servers respond to these messages. The client selects the servers providing the best time and continues as with the server -command. +command. The remaining servers are discarded as if never -heard. -

    +heard.
    -

    Options: -

    -
    autokey
    -

    All packets sent to and received from the server or peer are to +

    Options: +

    +
    autokey
    All packets sent to and received from the server or peer are to include authentication fields encrypted using the autokey scheme described in -‘Authentication Options’. -

    -
    burst
    -

    when the server is reachable, send a burst of eight packets -instead of the usual one. +Authentication Options. +

    burst
    when the server is reachable, send a burst of eight packets +instead of the usual one. The packet spacing is normally 2 s; however, the spacing between the first and second packets can be changed with the calldelay command to allow -additional time for a modem or ISDN call to complete. +additional time for a modem or ISDN call to complete. This is designed to improve timekeeping quality with the server -command and s addresses. -

    -
    iburst
    -

    When the server is unreachable, send a burst of eight packets -instead of the usual one. +command and s addresses. +

    iburst
    When the server is unreachable, send a burst of eight packets +instead of the usual one. The packet spacing is normally 2 s; however, the spacing between the first two packets can be changed with the calldelay command to allow -additional time for a modem or ISDN call to complete. +additional time for a modem or ISDN call to complete. This is designed to speed the initial synchronization acquisition with the server @@ -370,176 +315,155 @@ command and s addresses and when ntpd(1ntpdmdoc) is started with the -q -option. -

    -
    key key
    -

    All packets sent to and received from the server or peer are to +option. +

    key key
    All packets sent to and received from the server or peer are to include authentication fields encrypted using the specified key -identifier with values from 1 to 65534, inclusive. +identifier with values from 1 to 65534, inclusive. The -default is to include no encryption field. -

    -
    minpoll minpoll
    -
    maxpoll maxpoll
    -

    These options specify the minimum and maximum poll intervals +default is to include no encryption field. +

    minpoll minpoll
    maxpoll maxpoll
    These options specify the minimum and maximum poll intervals for NTP messages, as a power of 2 in seconds The maximum poll interval defaults to 10 (1,024 s), but can be increased by the maxpoll -option to an upper limit of 17 (36.4 h). +option to an upper limit of 17 (36.4 h). The minimum poll interval defaults to 6 (64 s), but can be decreased by the minpoll -option to a lower limit of 4 (16 s). -

    -
    noselect
    -

    Marks the server as unused, except for display purposes. -The server is discarded by the selection algroithm. -

    -
    prefer
    -

    Marks the server as preferred. +option to a lower limit of 4 (16 s). +

    noselect
    Marks the server as unused, except for display purposes. +The server is discarded by the selection algroithm. +
    prefer
    Marks the server as preferred. All other things being equal, this host will be chosen for synchronization among a set of -correctly operating hosts. +correctly operating hosts. See the -"Mitigation Rules and the prefer Keyword" +"Mitigation Rules and the prefer Keyword" page (available as part of the HTML documentation provided in -/usr/share/doc/ntp) -for further information. -

    -
    ttl ttl
    -

    This option is used only with broadcast server and manycast -client modes. +/usr/share/doc/ntp) +for further information. +

    ttl ttl
    This option is used only with broadcast server and manycast +client modes. It specifies the time-to-live ttl to use on broadcast server and multicast server and the maximum ttl for the expanding ring search with manycast -client packets. +client packets. Selection of the proper value, which defaults to 127, is something of a black art and should be coordinated with the -network administrator. -

    -
    version version
    -

    Specifies the version number to be used for outgoing NTP -packets. +network administrator. +

    version version
    Specifies the version number to be used for outgoing NTP +packets. Versions 1-4 are the choices, with version 4 the -default. -

    +default.
    - -

    1.1.1.2 Auxiliary Commands

    -
    -
    broadcastclient
    -

    This command enables reception of broadcast server messages to -any local interface (type b) address. + +

    Auxiliary Commands
    + +
    +
    broadcastclient
    This command enables reception of broadcast server messages to +any local interface (type b) address. Upon receiving a message for the first time, the broadcast client measures the nominal server propagation delay using a brief client/server exchange with the server, then enters the broadcast client mode, in which it -synchronizes to succeeding broadcast messages. +synchronizes to succeeding broadcast messages. Note that, in order to avoid accidental or malicious disruption in this mode, both the server and client should operate using symmetric-key or public-key authentication as described in -‘Authentication Options’. -

    -
    manycastserver address ...
    -

    This command enables reception of manycast client messages to -the multicast group address(es) (type m) specified. +Authentication Options. +

    manycastserver address ...
    This command enables reception of manycast client messages to +the multicast group address(es) (type m) specified. At least one address is required, but the NTP multicast address 224.0.1.1 assigned by the IANA should NOT be used, unless specific means are taken to limit the span of the reply and avoid a possibly massive -implosion at the original sender. +implosion at the original sender. Note that, in order to avoid accidental or malicious disruption in this mode, both the server and client should operate using symmetric-key or public-key authentication as described in -‘Authentication Options’. -

    -
    multicastclient address ...
    -

    This command enables reception of multicast server messages to -the multicast group address(es) (type m) specified. +Authentication Options. +

    multicastclient address ...
    This command enables reception of multicast server messages to +the multicast group address(es) (type m) specified. Upon receiving a message for the first time, the multicast client measures the nominal server propagation delay using a brief client/server exchange with the server, then enters the broadcast client mode, in -which it synchronizes to succeeding multicast messages. +which it synchronizes to succeeding multicast messages. Note that, in order to avoid accidental or malicious disruption in this mode, both the server and client should operate using symmetric-key or public-key authentication as described in -‘Authentication Options’. -

    -
    mdnstries number
    -

    If we are participating in mDNS, +Authentication Options. +

    mdnstries number
    If we are participating in mDNS, after we have synched for the first time -we attempt to register with the mDNS system. +we attempt to register with the mDNS system. If that registration attempt fails, we try again at one minute intervals for up to mdnstries -times. +times. After all, ntpd -may be starting before mDNS. +may be starting before mDNS. The default value for mdnstries -is 5. -

    +is 5.
    -
    +
    +


    - - -

    1.1.2 Authentication Support

    + +

    Authentication Support

    +

    Authentication support allows the NTP client to verify that the server is in fact known and trusted and not an intruder intending -accidentally or on purpose to masquerade as that server. +accidentally or on purpose to masquerade as that server. The NTPv3 specification RFC-1305 defines a scheme which provides -cryptographic authentication of received NTP packets. +cryptographic authentication of received NTP packets. Originally, this was done using the Data Encryption Standard (DES) algorithm operating in Cipher Block Chaining (CBC) mode, commonly called -DES-CBC. +DES-CBC. Subsequently, this was replaced by the RSA Message Digest -5 (MD5) algorithm using a private key, commonly called keyed-MD5. +5 (MD5) algorithm using a private key, commonly called keyed-MD5. Either algorithm computes a message digest, or one-way hash, which can be used to verify the server has the correct private key and key identifier. -

    -

    NTPv4 retains the NTPv3 scheme, properly described as symmetric key + +

    NTPv4 retains the NTPv3 scheme, properly described as symmetric key cryptography and, in addition, provides a new Autokey scheme -based on public key cryptography. +based on public key cryptography. Public key cryptography is generally considered more secure than symmetric key cryptography, since the security is based on a private value which is generated by each server and -never revealed. +never revealed. With Autokey all key distribution and management functions involve only public values, which -considerably simplifies key distribution and storage. +considerably simplifies key distribution and storage. Public key management is based on X.509 certificates, which can be provided by commercial services or produced by utility programs in the OpenSSL software library or the NTPv4 distribution. -

    -

    While the algorithms for symmetric key cryptography are + +

    While the algorithms for symmetric key cryptography are included in the NTPv4 distribution, public key cryptography requires the OpenSSL software library to be installed -before building the NTP distribution. +before building the NTP distribution. Directions for doing that are on the Building and Installing the Distribution page. -

    -

    Authentication is configured separately for each association + +

    Authentication is configured separately for each association using the key or @@ -551,36 +475,36 @@ subcommand on the and manycastclient configuration commands as described in -‘Configuration Options’ -page. +Configuration Options +page. The authentication options described below specify the locations of the key files, if other than default, which symmetric keys are trusted and the interval between various operations, if other than default. -

    -

    Authentication is always enabled, + +

    Authentication is always enabled, although ineffective if not configured as -described below. +described below. If a NTP packet arrives including a message authentication code (MAC), it is accepted only if it -passes all cryptographic checks. +passes all cryptographic checks. The checks require correct key ID, key value -and message digest. +and message digest. If the packet has been modified in any way or replayed by an intruder, it will fail one or more -of these checks and be discarded. +of these checks and be discarded. Furthermore, the Autokey scheme requires a preliminary protocol exchange to obtain the server certificate, verify its credentials and initialize the protocol -

    -

    The + +

    The auth flag controls whether new associations or -remote configuration commands require cryptographic authentication. +remote configuration commands require cryptographic authentication. This flag can be set or reset by the enable and @@ -589,22 +513,22 @@ commands and also by remote configuration commands sent by a ntpdc(1ntpdcmdoc) program running in -another machine. +another machine. If this flag is enabled, which is the default case, new broadcast client and symmetric passive associations and remote configuration commands must be cryptographically -authenticated using either symmetric key or public key cryptography. +authenticated using either symmetric key or public key cryptography. If this flag is disabled, these operations are effective even if not cryptographic -authenticated. +authenticated. It should be understood that operating with the auth flag disabled invites a significant vulnerability where a rogue hacker can masquerade as a falseticker and seriously -disrupt system timekeeping. +disrupt system timekeeping. It is important to note that this flag has no purpose other than to allow or disallow @@ -613,41 +537,42 @@ and symmetric active messages and remote configuration commands and, in particular, the flag has no effect on the authentication process itself. -

    -

    An attractive alternative where multicast support is available + +

    An attractive alternative where multicast support is available is manycast mode, in which clients periodically troll for servers as described in the Automatic NTP Configuration Options -page. +page. Either symmetric key or public key -cryptographic authentication can be used in this mode. +cryptographic authentication can be used in this mode. The principle advantage of manycast mode is that potential servers need not be configured in advance, since the client finds them during regular operation, and the configuration files for all clients can be identical. -

    -

    The security model and protocol schemes for + +

    The security model and protocol schemes for both symmetric key and public key cryptography are summarized below; further details are in the briefings, papers and reports at the NTP project page linked from http://www.ntp.org/. -

    -

    1.1.2.1 Symmetric-Key Cryptography

    + +
    Symmetric-Key Cryptography
    +

    The original RFC-1305 specification allows any one of possibly 65,534 keys, each distinguished by a 32-bit key identifier, to -authenticate an association. +authenticate an association. The servers and clients involved must agree on the key and key identifier to -authenticate NTP packets. +authenticate NTP packets. Keys and related information are specified in a key file, usually called -ntp.keys, +ntp.keys, which must be distributed and stored using -secure means beyond the scope of the NTP protocol itself. +secure means beyond the scope of the NTP protocol itself. Besides the keys used for ordinary NTP associations, additional keys can be used as passwords for the @@ -655,25 +580,25 @@ additional keys can be used as passwords for the and ntpdc(1ntpdcmdoc) utility programs. -

    -

    When + +

    When ntpd(1ntpdmdoc) is first started, it reads the key file specified in the keys configuration command and installs the keys -in the key cache. +in the key cache. However, individual keys must be activated with the trusted -command before use. +command before use. This allows, for instance, the installation of possibly several batches of keys and then activating or deactivating each batch remotely using -ntpdc(1ntpdcmdoc). +ntpdc(1ntpdcmdoc). This also provides a revocation capability that can be used -if a key becomes compromised. +if a key becomes compromised. The requestkey command selects the key used as the password for the @@ -683,118 +608,121 @@ utility, while the command selects the key used as the password for the ntpq(1ntpqmdoc) utility. -

    -

    1.1.2.2 Public Key Cryptography

    + +
    Public Key Cryptography
    +

    NTPv4 supports the original NTPv3 symmetric key scheme described in RFC-1305 and in addition the Autokey protocol, -which is based on public key cryptography. +which is based on public key cryptography. The Autokey Version 2 protocol described on the Autokey Protocol page verifies packet integrity using MD5 message digests and verifies the source with digital signatures and any of several -digest/signature schemes. +digest/signature schemes. Optional identity schemes described on the Identity Schemes page and based on cryptographic challenge/response algorithms -are also available. +are also available. Using all of these schemes provides strong security against replay with or without modification, spoofing, masquerade and most forms of clogging attacks. -

    -

    The Autokey protocol has several modes of operation -corresponding to the various NTP modes supported. + +

    The Autokey protocol has several modes of operation +corresponding to the various NTP modes supported. Most modes use a special cookie which can be computed independently by the client and server, -but encrypted in transmission. +but encrypted in transmission. All modes use in addition a variant of the S-KEY scheme, in which a pseudo-random key list is generated and used -in reverse order. +in reverse order. These schemes are described along with an executive summary, current status, briefing slides and reading list on the -‘Autonomous Authentication’ +Autonomous Authentication page. -

    -

    The specific cryptographic environment used by Autokey servers + +

    The specific cryptographic environment used by Autokey servers and clients is determined by a set of files and soft links generated by the ntp-keygen(1ntpkeygenmdoc) -program. +program. This includes a required host key file, required certificate file and optional sign key file, -leapsecond file and identity scheme files. +leapsecond file and identity scheme files. The digest/signature scheme is specified in the X.509 certificate -along with the matching sign key. +along with the matching sign key. There are several schemes available in the OpenSSL software library, each identified by a specific string such as md5WithRSAEncryption, which stands for the MD5 message digest with RSA -encryption scheme. +encryption scheme. The current NTP distribution supports all the schemes in the OpenSSL library, including those based on RSA and DSA digital signatures. -

    -

    NTP secure groups can be used to define cryptographic compartments -and security hierarchies. + +

    NTP secure groups can be used to define cryptographic compartments +and security hierarchies. It is important that every host in the group be able to construct a certificate trail to one -or more trusted hosts in the same group. +or more trusted hosts in the same group. Each group host runs the Autokey protocol to obtain the certificates -for all hosts along the trail to one or more trusted hosts. +for all hosts along the trail to one or more trusted hosts. This requires the configuration file in all hosts to be engineered so that, even under anticipated failure conditions, the NTP subnet will form such that every group host can find a trail to at least one trusted host. -

    -

    1.1.2.3 Naming and Addressing

    + +
    Naming and Addressing
    +

    It is important to note that Autokey does not use DNS to -resolve addresses, since DNS can’t be completely trusted -until the name servers have synchronized clocks. +resolve addresses, since DNS can't be completely trusted +until the name servers have synchronized clocks. The cryptographic name used by Autokey to bind the host identity credentials and cryptographic values must be independent -of interface, network and any other naming convention. +of interface, network and any other naming convention. The name appears in the host certificate in either or both the subject and issuer fields, so protection against DNS compromise is essential. -

    -

    By convention, the name of an Autokey host is the name returned + +

    By convention, the name of an Autokey host is the name returned by the Unix gethostname(2) -system call or equivalent in other systems. +system call or equivalent in other systems. By the system design -model, there are no provisions to allow alternate names or aliases. +model, there are no provisions to allow alternate names or aliases. However, this is not to say that DNS aliases, different names for each interface, etc., are constrained in any way. -

    -

    It is also important to note that Autokey verifies authenticity + +

    It is also important to note that Autokey verifies authenticity using the host name, network address and public keys, all of which are bound together by the protocol specifically -to deflect masquerade attacks. +to deflect masquerade attacks. For this reason Autokey includes the source and destinatino IP addresses in message digest computations and so the same addresses must be available -at both the server and client. +at both the server and client. For this reason operation -with network address translation schemes is not possible. +with network address translation schemes is not possible. This reflects the intended robust security model where government and corporate NTP servers are operated outside firewall perimeters. -

    -

    1.1.2.4 Operation

    + +
    Operation
    +

    A specific combination of authentication scheme (none, symmetric key, public key) and identity scheme is called -a cryptotype, although not all combinations are compatible. +a cryptotype, although not all combinations are compatible. There may be management configurations where the clients, -servers and peers may not all support the same cryptotypes. +servers and peers may not all support the same cryptotypes. A secure NTPv4 subnet can be configured in many ways while keeping in mind the principles explained above and -in this section. +in this section. Note however that some cryptotype combinations may successfully interoperate with each other, but may not represent good security practice. -

    -

    The cryptotype of an association is determined at the time + +

    The cryptotype of an association is determined at the time of mobilization, either at configuration time or some time -later when a message of appropriate cryptotype arrives. +later when a message of appropriate cryptotype arrives. When mobilized by a server or @@ -811,610 +739,514 @@ using the symmetric key ID specified; if the autokey subcommand is present, the association is authenticated using Autokey. -

    -

    When multiple identity schemes are supported in the Autokey -protocol, the first message exchange determines which one is used. + +

    When multiple identity schemes are supported in the Autokey +protocol, the first message exchange determines which one is used. The client request message contains bits corresponding -to which schemes it has available. +to which schemes it has available. The server response message -contains bits corresponding to which schemes it has available. +contains bits corresponding to which schemes it has available. Both server and client match the received bits with their own and select a common scheme. -

    -

    Following the principle that time is a public value, + +

    Following the principle that time is a public value, a server responds to any client packet that matches -its cryptotype capabilities. +its cryptotype capabilities. Thus, a server receiving an unauthenticated packet will respond with an unauthenticated packet, while the same server receiving a packet of a cryptotype -it supports will respond with packets of that cryptotype. +it supports will respond with packets of that cryptotype. However, unconfigured broadcast or manycast client associations or symmetric passive associations will not be mobilized unless the server supports a cryptotype compatible -with the first packet received. +with the first packet received. By default, unauthenticated associations will not be mobilized unless overridden in a decidedly dangerous way. -

    -

    Some examples may help to reduce confusion. -Client Alice has no specific cryptotype selected. -Server Bob has both a symmetric key file and minimal Autokey files. -Alice’s unauthenticated messages arrive at Bob, who replies with -unauthenticated messages. -Cathy has a copy of Bob’s symmetric -key file and has selected key ID 4 in messages to Bob. -Bob verifies the message with his key ID 4. -If it’s the + +

    Some examples may help to reduce confusion. +Client Alice has no specific cryptotype selected. +Server Bob has both a symmetric key file and minimal Autokey files. +Alice's unauthenticated messages arrive at Bob, who replies with +unauthenticated messages. +Cathy has a copy of Bob's symmetric +key file and has selected key ID 4 in messages to Bob. +Bob verifies the message with his key ID 4. +If it's the same key and the message is verified, Bob sends Cathy a reply -authenticated with that key. +authenticated with that key. If verification fails, Bob sends Cathy a thing called a crypto-NAK, which tells her -something broke. +something broke. She can see the evidence using the ntpq(1ntpqmdoc) program. -

    -

    Denise has rolled her own host key and certificate. -She also uses one of the identity schemes as Bob. + +

    Denise has rolled her own host key and certificate. +She also uses one of the identity schemes as Bob. She sends the first Autokey message to Bob and they -both dance the protocol authentication and identity steps. +both dance the protocol authentication and identity steps. If all comes out okay, Denise and Bob continue as described above. -

    -

    It should be clear from the above that Bob can support + +

    It should be clear from the above that Bob can support all the girls at the same time, as long as he has compatible -authentication and identity credentials. +authentication and identity credentials. Now, Bob can act just like the girls in his own choice of servers; he can run multiple configured associations with multiple different -servers (or the same server, although that might not be useful). +servers (or the same server, although that might not be useful). But, wise security policy might preclude some cryptotype combinations; for instance, running an identity scheme with one server and no authentication with another might not be wise. -

    -

    1.1.2.5 Key Management

    + +
    Key Management
    +

    The cryptographic values used by the Autokey protocol are incorporated as a set of files generated by the ntp-keygen(1ntpkeygenmdoc) utility program, including symmetric key, host key and public certificate files, as well as sign key, identity parameters -and leapseconds files. +and leapseconds files. Alternatively, host and sign keys and certificate files can be generated by the OpenSSL utilities and certificates can be imported from public certificate -authorities. +authorities. Note that symmetric keys are necessary for the ntpq(1ntpqmdoc) and ntpdc(1ntpdcmdoc) -utility programs. +utility programs. The remaining files are necessary only for the Autokey protocol. -

    -

    Certificates imported from OpenSSL or public certificate -authorities have certian limitations. + +

    Certificates imported from OpenSSL or public certificate +authorities have certian limitations. The certificate should be in ASN.1 syntax, X.509 Version 3 format and encoded in PEM, which is the same format -used by OpenSSL. +used by OpenSSL. The overall length of the certificate encoded -in ASN.1 must not exceed 1024 bytes. +in ASN.1 must not exceed 1024 bytes. The subject distinguished name field (CN) is the fully qualified name of the host -on which it is used; the remaining subject fields are ignored. +on which it is used; the remaining subject fields are ignored. The certificate extension fields must not contain either a subject key identifier or a issuer key identifier field; however, an extended key usage field for a trusted host must contain the value -trustRoot;. +trustRoot;. Other extension fields are ignored. -

    -

    1.1.2.6 Authentication Commands

    -
    -
    autokey [logsec]
    -

    Specifies the interval between regenerations of the session key -list used with the Autokey protocol. + +

    Authentication Commands
    + +
    +
    autokey [logsec]
    Specifies the interval between regenerations of the session key +list used with the Autokey protocol. Note that the size of the key list for each association depends on this interval and the current -poll interval. -The default value is 12 (4096 s or about 1.1 hours). +poll interval. +The default value is 12 (4096 s or about 1.1 hours). For poll intervals above the specified interval, a session key list with a single entry will be regenerated for every message -sent. -

    -
    controlkey key
    -

    Specifies the key identifier to use with the +sent. +

    controlkey key
    Specifies the key identifier to use with the ntpq(1ntpqmdoc) utility, which uses the standard -protocol defined in RFC-1305. +protocol defined in RFC-1305. The key argument is the key identifier for a trusted key, where the value can be in the -range 1 to 65,534, inclusive. -

    -
    crypto [cert file] [leap file] [randfile file] [host file] [sign file] [gq file] [gqpar file] [iffpar file] [mvpar file] [pw password]
    -

    This command requires the OpenSSL library. +range 1 to 65,534, inclusive. +

    crypto [cert file] [leap file] [randfile file] [host file] [sign file] [gq file] [gqpar file] [iffpar file] [mvpar file] [pw password]
    This command requires the OpenSSL library. It activates public key cryptography, selects the message digest and signature encryption scheme and loads the required private and public -values described above. +values described above. If one or more files are left unspecified, -the default names are used as described above. +the default names are used as described above. Unless the complete path and name of the file are specified, the location of a file is relative to the keys directory specified in the keysdir command or default -/usr/local/etc. +/usr/local/etc. Following are the subcommands: -

    -
    cert file
    -

    Specifies the location of the required host public certificate file. +

    +
    cert file
    Specifies the location of the required host public certificate file. This overrides the link -ntpkey_cert_hostname -in the keys directory. -

    -
    gqpar file
    -

    Specifies the location of the optional GQ parameters file. +ntpkey_cert_hostname +in the keys directory. +

    gqpar file
    Specifies the location of the optional GQ parameters file. This overrides the link -ntpkey_gq_hostname -in the keys directory. -

    -
    host file
    -

    Specifies the location of the required host key file. +ntpkey_gq_hostname +in the keys directory. +

    host file
    Specifies the location of the required host key file. This overrides the link -ntpkey_key_hostname -in the keys directory. -

    -
    iffpar file
    -

    Specifies the location of the optional IFF parameters file.This +ntpkey_key_hostname +in the keys directory. +

    iffpar file
    Specifies the location of the optional IFF parameters file.This overrides the link -ntpkey_iff_hostname -in the keys directory. -

    -
    leap file
    -

    Specifies the location of the optional leapsecond file. +ntpkey_iff_hostname +in the keys directory. +

    leap file
    Specifies the location of the optional leapsecond file. This overrides the link -ntpkey_leap -in the keys directory. -

    -
    mvpar file
    -

    Specifies the location of the optional MV parameters file. +ntpkey_leap +in the keys directory. +

    mvpar file
    Specifies the location of the optional MV parameters file. This overrides the link -ntpkey_mv_hostname -in the keys directory. -

    -
    pw password
    -

    Specifies the password to decrypt files containing private keys and -identity parameters. +ntpkey_mv_hostname +in the keys directory. +

    pw password
    Specifies the password to decrypt files containing private keys and +identity parameters. This is required only if these files have been -encrypted. -

    -
    randfile file
    -

    Specifies the location of the random seed file used by the OpenSSL -library. -The defaults are described in the main text above. -

    -
    sign file
    -

    Specifies the location of the optional sign key file. +encrypted. +

    randfile file
    Specifies the location of the random seed file used by the OpenSSL +library. +The defaults are described in the main text above. +
    sign file
    Specifies the location of the optional sign key file. This overrides the link -ntpkey_sign_hostname -in the keys directory. +ntpkey_sign_hostname +in the keys directory. If this file is -not found, the host key is also the sign key. -

    +not found, the host key is also the sign key.
    -
    -
    keys keyfile
    -

    Specifies the complete path and location of the MD5 key file +

    keys keyfile
    Specifies the complete path and location of the MD5 key file containing the keys and key identifiers used by ntpd(1ntpdmdoc), ntpq(1ntpqmdoc) and ntpdc(1ntpdcmdoc) -when operating with symmetric key cryptography. +when operating with symmetric key cryptography. This is the same operation as the -k -command line option. -

    -
    keysdir path
    -

    This command specifies the default directory path for -cryptographic keys, parameters and certificates. +command line option. +

    keysdir path
    This command specifies the default directory path for +cryptographic keys, parameters and certificates. The default is -/usr/local/etc/. -

    -
    requestkey key
    -

    Specifies the key identifier to use with the +/usr/local/etc/. +

    requestkey key
    Specifies the key identifier to use with the ntpdc(1ntpdcmdoc) utility program, which uses a proprietary protocol specific to this implementation of -ntpd(1ntpdmdoc). +ntpd(1ntpdmdoc). The key argument is a key identifier for the trusted key, where the value can be in the range 1 to -65,534, inclusive. -

    -
    revoke logsec
    -

    Specifies the interval between re-randomization of certain +65,534, inclusive. +

    revoke logsec
    Specifies the interval between re-randomization of certain cryptographic values used by the Autokey scheme, as a power of 2 in -seconds. +seconds. These values need to be updated frequently in order to deflect brute-force attacks on the algorithms of the scheme; -however, updating some values is a relatively expensive operation. -The default interval is 16 (65,536 s or about 18 hours). +however, updating some values is a relatively expensive operation. +The default interval is 16 (65,536 s or about 18 hours). For poll intervals above the specified interval, the values will be updated -for every message sent. -

    -
    trustedkey key ...
    -

    Specifies the key identifiers which are trusted for the +for every message sent. +

    trustedkey key ...
    Specifies the key identifiers which are trusted for the purposes of authenticating peers with symmetric key cryptography, as well as keys used by the ntpq(1ntpqmdoc) and ntpdc(1ntpdcmdoc) -programs. +programs. The authentication procedures require that both the local and remote servers share the same key and key identifier for this purpose, although different keys can be used with different -servers. +servers. The key arguments are 32-bit unsigned -integers with values from 1 to 65,534. -

    +integers with values from 1 to 65,534.
    - -

    1.1.2.7 Error Codes

    + +
    Error Codes
    +

    The following error codes are reported via the NTP control and monitoring protocol trap mechanism. -

    -
    101
    -

    (bad field format or length) -The packet has invalid version, length or format. -

    -
    102
    -

    (bad timestamp) -The packet timestamp is the same or older than the most recent received. -This could be due to a replay or a server clock time step. -

    -
    103
    -

    (bad filestamp) -The packet filestamp is the same or older than the most recent received. -This could be due to a replay or a key file generation error. -

    -
    104
    -

    (bad or missing public key) -The public key is missing, has incorrect format or is an unsupported type. -

    -
    105
    -

    (unsupported digest type) -The server requires an unsupported digest/signature scheme. -

    -
    106
    -

    (mismatched digest types) -Not used. -

    -
    107
    -

    (bad signature length) -The signature length does not match the current public key. -

    -
    108
    -

    (signature not verified) -The message fails the signature check. +

    +
    101
    (bad field format or length) +The packet has invalid version, length or format. +
    102
    (bad timestamp) +The packet timestamp is the same or older than the most recent received. +This could be due to a replay or a server clock time step. +
    103
    (bad filestamp) +The packet filestamp is the same or older than the most recent received. +This could be due to a replay or a key file generation error. +
    104
    (bad or missing public key) +The public key is missing, has incorrect format or is an unsupported type. +
    105
    (unsupported digest type) +The server requires an unsupported digest/signature scheme. +
    106
    (mismatched digest types) +Not used. +
    107
    (bad signature length) +The signature length does not match the current public key. +
    108
    (signature not verified) +The message fails the signature check. It could be bogus or signed by a -different private key. -

    -
    109
    -

    (certificate not verified) -The certificate is invalid or signed with the wrong key. -

    -
    110
    -

    (certificate not verified) +different private key. +

    109
    (certificate not verified) +The certificate is invalid or signed with the wrong key. +
    110
    (certificate not verified) The certificate is not yet valid or has expired or the signature could not -be verified. -

    -
    111
    -

    (bad or missing cookie) -The cookie is missing, corrupted or bogus. -

    -
    112
    -

    (bad or missing leapseconds table) -The leapseconds table is missing, corrupted or bogus. -

    -
    113
    -

    (bad or missing certificate) -The certificate is missing, corrupted or bogus. -

    -
    114
    -

    (bad or missing identity) -The identity key is missing, corrupt or bogus. -

    +be verified. +
    111
    (bad or missing cookie) +The cookie is missing, corrupted or bogus. +
    112
    (bad or missing leapseconds table) +The leapseconds table is missing, corrupted or bogus. +
    113
    (bad or missing certificate) +The certificate is missing, corrupted or bogus. +
    114
    (bad or missing identity) +The identity key is missing, corrupt or bogus.
    -
    +
    +


    - - -

    1.1.3 Monitoring Support

    + +

    Monitoring Support

    +

    ntpd(1ntpdmdoc) includes a comprehensive monitoring facility suitable for continuous, long term recording of server and client -timekeeping performance. +timekeeping performance. See the statistics command below for a listing and example of each type of statistics currently -supported. +supported. Statistic files are managed using file generation sets and scripts in the -./scripts -directory of this distribution. +./scripts +directory of this distribution. Using these facilities and -UNIX +unix cron(8) jobs, the data can be automatically summarized and archived for retrospective analysis. -

    -

    1.1.3.1 Monitoring Commands

    -
    -
    statistics name ...
    -

    Enables writing of statistics records. + +

    Monitoring Commands
    + +
    +
    statistics name ...
    Enables writing of statistics records. Currently, eight kinds of name statistics are supported. -

    -
    clockstats
    -

    Enables recording of clock driver statistics information. +

    +
    clockstats
    Enables recording of clock driver statistics information. Each update received from a clock driver appends a line of the following form to the file generation set named clockstats: -

    49213 525.624 127.127.4.1 93 226 00:08:29.606 D
    -
    -

    The first two fields show the date (Modified Julian Day) and time -(seconds and fraction past UTC midnight). +

              
    +          49213 525.624 127.127.4.1 93 226 00:08:29.606 D
    +     
    + +

    The first two fields show the date (Modified Julian Day) and time +(seconds and fraction past UTC midnight). The next field shows the -clock address in dotted-quad notation. +clock address in dotted-quad notation. The final field shows the last timecode received from the clock in decoded ASCII format, where -meaningful. +meaningful. In some clock drivers a good deal of additional information -can be gathered and displayed as well. +can be gathered and displayed as well. See information specific to each -clock for further details. -

    -
    cryptostats
    -

    This option requires the OpenSSL cryptographic software library. +clock for further details. +

    cryptostats
    This option requires the OpenSSL cryptographic software library. It -enables recording of cryptographic public key protocol information. +enables recording of cryptographic public key protocol information. Each message received by the protocol module appends a line of the following form to the file generation set named cryptostats: -

    49213 525.624 127.127.4.1 message
    -
    -

    The first two fields show the date (Modified Julian Day) and time -(seconds and fraction past UTC midnight). +

              
    +          49213 525.624 127.127.4.1 message
    +     
    + +

    The first two fields show the date (Modified Julian Day) and time +(seconds and fraction past UTC midnight). The next field shows the peer address in dotted-quad notation, The final message field includes the -message type and certain ancillary information. +message type and certain ancillary information. See the -‘Authentication Options’ -section for further information. -

    -
    loopstats
    -

    Enables recording of loop filter statistics information. +Authentication Options +section for further information. +

    loopstats
    Enables recording of loop filter statistics information. Each update of the local clock outputs a line of the following form to the file generation set named loopstats: -

    50935 75440.031 0.000006019 13.778190 0.000351733 0.0133806
    -
    -

    The first two fields show the date (Modified Julian Day) and -time (seconds and fraction past UTC midnight). +

              
    +          50935 75440.031 0.000006019 13.778190 0.000351733 0.0133806
    +     
    + +

    The first two fields show the date (Modified Julian Day) and +time (seconds and fraction past UTC midnight). The next five fields show time offset (seconds), frequency offset (parts per million - PPM), RMS jitter (seconds), Allan deviation (PPM) and clock -discipline time constant. -

    -
    peerstats
    -

    Enables recording of peer statistics information. +discipline time constant. +

    peerstats
    Enables recording of peer statistics information. This includes statistics records of all peers of a NTP server and of special -signals, where present and configured. +signals, where present and configured. Each valid update appends a line of the following form to the current element of a file generation set named peerstats: -

    48773 10847.650 127.127.4.1 9714 -0.001605376 0.000000000 0.001424877 0.000958674
    -
    -

    The first two fields show the date (Modified Julian Day) and -time (seconds and fraction past UTC midnight). +

              
    +          48773 10847.650 127.127.4.1 9714 -0.001605376 0.000000000 0.001424877 0.000958674
    +     
    + +

    The first two fields show the date (Modified Julian Day) and +time (seconds and fraction past UTC midnight). The next two fields show the peer address in dotted-quad notation and status, -respectively. +respectively. The status field is encoded in hex in the format -described in Appendix A of the NTP specification RFC 1305. +described in Appendix A of the NTP specification RFC 1305. The final four fields show the offset, -delay, dispersion and RMS jitter, all in seconds. -

    -
    rawstats
    -

    Enables recording of raw-timestamp statistics information. +delay, dispersion and RMS jitter, all in seconds. +

    rawstats
    Enables recording of raw-timestamp statistics information. This includes statistics records of all peers of a NTP server and of -special signals, where present and configured. +special signals, where present and configured. Each NTP message received from a peer or clock driver appends a line of the following form to the file generation set named rawstats: -

    50928 2132.543 128.4.1.1 128.4.1.20 3102453281.584327000 3102453281.58622800031 02453332.540806000 3102453332.541458000
    -
    -

    The first two fields show the date (Modified Julian Day) and -time (seconds and fraction past UTC midnight). +

              
    +          50928 2132.543 128.4.1.1 128.4.1.20 3102453281.584327000 3102453281.58622800031 02453332.540806000 3102453332.541458000
    +     
    + +

    The first two fields show the date (Modified Julian Day) and +time (seconds and fraction past UTC midnight). The next two fields show the remote peer or clock address followed by the local address -in dotted-quad notation. +in dotted-quad notation. The final four fields show the originate, -receive, transmit and final NTP timestamps in order. +receive, transmit and final NTP timestamps in order. The timestamp values are as received and before processing by the various data -smoothing and mitigation algorithms. -

    -
    sysstats
    -

    Enables recording of ntpd statistics counters on a periodic basis. +smoothing and mitigation algorithms. +

    sysstats
    Enables recording of ntpd statistics counters on a periodic basis. Each hour a line of the following form is appended to the file generation set named sysstats: -

    50928 2132.543 36000 81965 0 9546 56 71793 512 540 10 147
    -
    -

    The first two fields show the date (Modified Julian Day) and time -(seconds and fraction past UTC midnight). +

              
    +          50928 2132.543 36000 81965 0 9546 56 71793 512 540 10 147
    +     
    + +

    The first two fields show the date (Modified Julian Day) and time +(seconds and fraction past UTC midnight). The remaining ten fields show the statistics counter values accumulated since the last generated line. -

    -
    Time since restart 36000
    -

    Time in hours since the system was last rebooted. -

    -
    Packets received 81965
    -

    Total number of packets received. -

    -
    Packets processed 0
    -

    Number of packets received in response to previous packets sent -

    -
    Current version 9546
    -

    Number of packets matching the current NTP version. -

    -
    Previous version 56
    -

    Number of packets matching the previous NTP version. -

    -
    Bad version 71793
    -

    Number of packets matching neither NTP version. -

    -
    Access denied 512
    -

    Number of packets denied access for any reason. -

    -
    Bad length or format 540
    -

    Number of packets with invalid length, format or port number. -

    -
    Bad authentication 10
    -

    Number of packets not verified as authentic. -

    -
    Rate exceeded 147
    -

    Number of packets discarded due to rate limitation. -

    +
    +
    Time since restart 36000
    Time in hours since the system was last rebooted. +
    Packets received 81965
    Total number of packets received. +
    Packets processed 0
    Number of packets received in response to previous packets sent +
    Current version 9546
    Number of packets matching the current NTP version. +
    Previous version 56
    Number of packets matching the previous NTP version. +
    Bad version 71793
    Number of packets matching neither NTP version. +
    Access denied 512
    Number of packets denied access for any reason. +
    Bad length or format 540
    Number of packets with invalid length, format or port number. +
    Bad authentication 10
    Number of packets not verified as authentic. +
    Rate exceeded 147
    Number of packets discarded due to rate limitation.
    -
    -
    statsdir directory_path
    -

    Indicates the full path of a directory where statistics files -should be created (see below). +

    statsdir directory_path
    Indicates the full path of a directory where statistics files +should be created (see below). This keyword allows the (otherwise constant) filegen filename prefix to be modified for file generation sets, which -is useful for handling statistics logs. -

    -
    filegen name [file filename] [type typename] [link | nolink] [enable | disable]
    -

    Configures setting of generation file set name. +is useful for handling statistics logs. +

    filegen name [file filename] [type typename] [link | nolink] [enable | disable]
    Configures setting of generation file set name. Generation file sets provide a means for handling files that are -continuously growing during the lifetime of a server. -Server statistics are a typical example for such files. +continuously growing during the lifetime of a server. +Server statistics are a typical example for such files. Generation file sets provide access to a set of files used -to store the actual data. +to store the actual data. At any time at most one element -of the set is being written to. +of the set is being written to. The type given specifies -when and how data will be directed to a new element of the set. +when and how data will be directed to a new element of the set. This way, information stored in elements of a file set that are currently unused are available for administrational -operations without the risk of disturbing the operation of ntpd. +operations without the risk of disturbing the operation of ntpd. (Most important: they can be removed to free space for new data produced.) -

    -

    Note that this command can be sent from the + +

    Note that this command can be sent from the ntpdc(1ntpdcmdoc) program running at a remote location. -

    -
    name
    -

    This is the type of the statistics records, as shown in the +

    +
    name
    This is the type of the statistics records, as shown in the statistics -command. -

    -
    file filename
    -

    This is the file name for the statistics records. +command. +

    file filename
    This is the file name for the statistics records. Filenames of set members are built from three concatenated elements prefix, filename and suffix: -

    -
    prefix
    -

    This is a constant filename path. +

    +
    prefix
    This is a constant filename path. It is not subject to modifications via the filegen -option. +option. It is defined by the -server, usually specified as a compile-time constant. +server, usually specified as a compile-time constant. It may, however, be configurable for individual file generation sets -via other commands. +via other commands. For example, the prefix used with loopstats and peerstats generation can be configured using the statsdir -option explained above. -

    -
    filename
    -

    This string is directly concatenated to the prefix mentioned +option explained above. +

    filename
    This string is directly concatenated to the prefix mentioned above (no intervening -‘/’). +/). This can be modified using the file argument to the filegen -statement. +statement. No -.. +.. elements are allowed in this component to prevent filenames referring to parts outside the filesystem hierarchy denoted by -prefix. -

    -
    suffix
    -

    This part is reflects individual elements of a file set. +prefix. +

    suffix
    This part is reflects individual elements of a file set. It is -generated according to the type of a file set. -

    +generated according to the type of a file set.
    -
    -
    type typename
    -

    A file generation set is characterized by its type. +

    type typename
    A file generation set is characterized by its type. The following types are supported: -

    -
    none
    -

    The file set is actually a single plain file. -

    -
    pid
    -

    One element of file set is used per incarnation of a ntpd -server. +

    +
    none
    The file set is actually a single plain file. +
    pid
    One element of file set is used per incarnation of a ntpd +server. This type does not perform any changes to file set members during runtime, however it provides an easy way of separating files belonging to different ntpd(1ntpdmdoc) -server incarnations. +server incarnations. The set member filename is built by appending a -‘.’ +. to concatenated prefix and @@ -1422,474 +1254,428 @@ and strings, and appending the decimal representation of the process ID of the ntpd(1ntpdmdoc) -server process. -

    -
    day
    -

    One file generation set element is created per day. +server process. +

    day
    One file generation set element is created per day. A day is -defined as the period between 00:00 and 24:00 UTC. +defined as the period between 00:00 and 24:00 UTC. The file set member suffix consists of a -‘.’ +. and a day specification in the form -YYYYMMdd. +YYYYMMdd. YYYY -is a 4-digit year number (e.g., 1992). +is a 4-digit year number (e.g., 1992). MM -is a two digit month number. +is a two digit month number. dd -is a two digit day number. +is a two digit day number. Thus, all information written at 10 December 1992 would end up in a file named prefix -filename.19921210. -

    -
    week
    -

    Any file set member contains data related to a certain week of -a year. +filename.19921210. +

    week
    Any file set member contains data related to a certain week of +a year. The term week is defined by computing day-of-year -modulo 7. +modulo 7. Elements of such a file generation set are distinguished by appending the following suffix to the file set filename base: A dot, a 4-digit year number, the letter W, -and a 2-digit week number. +and a 2-digit week number. For example, information from January, 10th 1992 would end up in a file with suffix -.No . Ns Ar 1992W1 . -

    -
    month
    -

    One generation file set element is generated per month. +.No . Ns Ar 1992W1 . +

    month
    One generation file set element is generated per month. The file name suffix consists of a dot, a 4-digit year number, and -a 2-digit month. -

    -
    year
    -

    One generation file element is generated per year. +a 2-digit month. +

    year
    One generation file element is generated per year. The filename -suffix consists of a dot and a 4 digit year number. -

    -
    age
    -

    This type of file generation sets changes to a new element of -the file set every 24 hours of server operation. +suffix consists of a dot and a 4 digit year number. +

    age
    This type of file generation sets changes to a new element of +the file set every 24 hours of server operation. The filename suffix consists of a dot, the letter a, -and an 8-digit number. +and an 8-digit number. This number is taken to be the number of seconds the server is -running at the start of the corresponding 24-hour period. +running at the start of the corresponding 24-hour period. Information is only written to a file generation by specifying enable; output is prevented by specifying -disable. -

    +disable.
    -
    -
    link | nolink
    -

    It is convenient to be able to access the current element of a file -generation set by a fixed name. +

    link | nolink
    It is convenient to be able to access the current element of a file +generation set by a fixed name. This feature is enabled by specifying link and disabled using -nolink. +nolink. If link is specified, a hard link from the current file set element to a file without -suffix is created. +suffix is created. When there is already a file with this name and the number of links of this file is one, it is renamed appending a dot, the letter C, -and the pid of the ntpd server process. +and the pid of the ntpd server process. When the -number of links is greater than one, the file is unlinked. +number of links is greater than one, the file is unlinked. This -allows the current file to be accessed by a constant name. -

    -
    enable | disable
    -

    Enables or disables the recording function. -

    +allows the current file to be accessed by a constant name. +
    enable | disable
    Enables or disables the recording function.
    -
    -
    -
    -
    -
    +
    +
    +
    +


    - - -

    1.1.4 Access Control Support

    + +

    Access Control Support

    +

    The ntpd(1ntpdmdoc) daemon implements a general purpose address/mask based restriction -list. +list. The list contains address/match entries sorted first -by increasing address values and and then by increasing mask values. +by increasing address values and and then by increasing mask values. A match occurs when the bitwise AND of the mask and the packet source address is equal to the bitwise AND of the mask and -address in the list. +address in the list. The list is searched in order with the last match found defining the restriction flags associated -with the entry. +with the entry. Additional information and examples can be found in the -"Notes on Configuring NTP and Setting up a NTP Subnet" +"Notes on Configuring NTP and Setting up a NTP Subnet" page (available as part of the HTML documentation provided in -/usr/share/doc/ntp). -

    -

    The restriction facility was implemented in conformance +/usr/share/doc/ntp). + +

    The restriction facility was implemented in conformance with the access policies for the original NSFnet backbone -time servers. +time servers. Later the facility was expanded to deflect -cryptographic and clogging attacks. +cryptographic and clogging attacks. While this facility may be useful for keeping unwanted or broken or malicious clients from congesting innocent servers, it should not be considered -an alternative to the NTP authentication facilities. +an alternative to the NTP authentication facilities. Source address based restrictions are easily circumvented by a determined cracker. -

    -

    Clients can be denied service because they are explicitly + +

    Clients can be denied service because they are explicitly included in the restrict list created by the restrict command or implicitly as the result of cryptographic or rate limit -violations. +violations. Cryptographic violations include certificate or identity verification failure; rate limit violations generally result from defective NTP implementations that send packets -at abusive rates. +at abusive rates. Some violations cause denied service only for the offending packet, others cause denied service for a timed period and others cause the denied service for -an indefinate period. +an indefinate period. When a client or network is denied access for an indefinate period, the only way at present to remove the restrictions is by restarting the server. -

    -

    1.1.4.1 The Kiss-of-Death Packet

    + +
    The Kiss-of-Death Packet
    +

    Ordinarily, packets denied service are simply dropped with no -further action except incrementing statistics counters. +further action except incrementing statistics counters. Sometimes a more proactive response is needed, such as a server message that explicitly requests the client to stop sending and leave a message -for the system operator. +for the system operator. A special packet format has been created -for this purpose called the "kiss-of-death" (KoD) packet. +for this purpose called the "kiss-of-death" (KoD) packet. KoD packets have the leap bits set unsynchronized and stratum set to zero and the reference identifier field set to a four-byte -ASCII code. +ASCII code. If the noserve or notrust flag of the matching restrict list entry is set, -the code is "DENY"; if the +the code is "DENY"; if the limited flag is set and the rate limit -is exceeded, the code is "RATE". -Finally, if a cryptographic violation occurs, the code is "CRYP". -

    -

    A client receiving a KoD performs a set of sanity checks to +is exceeded, the code is "RATE". +Finally, if a cryptographic violation occurs, the code is "CRYP". + +

    A client receiving a KoD performs a set of sanity checks to minimize security exposure, then updates the stratum and reference identifier peer variables, sets the access denied (TEST4) bit in the peer flash variable and sends -a message to the log. +a message to the log. As long as the TEST4 bit is set, -the client will send no further packets to the server. +the client will send no further packets to the server. The only way at present to recover from this condition is -to restart the protocol at both the client and server. +to restart the protocol at both the client and server. This -happens automatically at the client when the association times out. +happens automatically at the client when the association times out. It will happen at the server only if the server operator cooperates. -

    -

    1.1.4.2 Access Control Commands

    -
    -
    discard [average avg] [minimum min] [monitor prob]
    -

    Set the parameters of the + +

    Access Control Commands
    + +
    +
    discard [average avg] [minimum min] [monitor prob]
    Set the parameters of the limited facility which protects the server from -client abuse. +client abuse. The average subcommand specifies the minimum average packet spacing, while the minimum -subcommand specifies the minimum packet spacing. +subcommand specifies the minimum packet spacing. Packets that violate these minima are discarded -and a kiss-o’-death packet returned if enabled. +and a kiss-o'-death packet returned if enabled. The default -minimum average and minimum are 5 and 2, respectively. +minimum average and minimum are 5 and 2, respectively. The monitor subcommand specifies the probability of discard -for packets that overflow the rate-control window. -

    -
    restrict address [mask mask] [flag ...]
    -

    The +for packets that overflow the rate-control window. +

    restrict address [mask mask] [flag ...]
    The address argument expressed in -dotted-quad form is the address of a host or network. +dotted-quad form is the address of a host or network. Alternatively, the address -argument can be a valid host DNS name. +argument can be a valid host DNS name. The mask argument expressed in dotted-quad form defaults to 255.255.255.255, meaning that the address -is treated as the address of an individual host. +is treated as the address of an individual host. A default entry (address 0.0.0.0, mask 0.0.0.0) -is always included and is always the first entry in the list. +is always included and is always the first entry in the list. Note that text string default, with no mask option, may -be used to indicate the default entry. +be used to indicate the default entry. In the current implementation, flag always restricts access, i.e., an entry with no flags indicates that free -access to the server is to be given. +access to the server is to be given. The flags are not orthogonal, in that more restrictive flags will often make less restrictive -ones redundant. +ones redundant. The flags can generally be classed into two categories, those which restrict time service and those which restrict informational queries and attempts to do run-time -reconfiguration of the server. +reconfiguration of the server. One or more of the following flags may be specified: -

    -
    ignore
    -

    Deny packets of all kinds, including +

    +
    ignore
    Deny packets of all kinds, including ntpq(1ntpqmdoc) and ntpdc(1ntpdcmdoc) -queries. -

    -
    kod
    -

    If this flag is set when an access violation occurs, a kiss-o’-death -(KoD) packet is sent. +queries. +

    kod
    If this flag is set when an access violation occurs, a kiss-o'-death +(KoD) packet is sent. KoD packets are rate limited to no more than one -per second. +per second. If another KoD packet occurs within one second after the -last one, the packet is dropped. -

    -
    limited
    -

    Deny service if the packet spacing violates the lower limits specified -in the discard command. +last one, the packet is dropped. +

    limited
    Deny service if the packet spacing violates the lower limits specified +in the discard command. A history of clients is kept using the monitoring capability of -ntpd(1ntpdmdoc). +ntpd(1ntpdmdoc). Thus, monitoring is always active as long as there is a restriction entry with the limited -flag. -

    -
    lowpriotrap
    -

    Declare traps set by matching hosts to be low priority. +flag. +

    lowpriotrap
    Declare traps set by matching hosts to be low priority. The number of traps a server can maintain is limited (the current limit -is 3). +is 3). Traps are usually assigned on a first come, first served -basis, with later trap requestors being denied service. +basis, with later trap requestors being denied service. This flag modifies the assignment algorithm by allowing low priority traps to -be overridden by later requests for normal priority traps. -

    -
    nomodify
    -

    Deny +be overridden by later requests for normal priority traps. +

    nomodify
    Deny ntpq(1ntpqmdoc) and ntpdc(1ntpdcmdoc) queries which attempt to modify the state of the -server (i.e., run time reconfiguration). +server (i.e., run time reconfiguration). Queries which return -information are permitted. -

    -
    noquery
    -

    Deny +information are permitted. +

    noquery
    Deny ntpq(1ntpqmdoc) and ntpdc(1ntpdcmdoc) -queries. -Time service is not affected. -

    -
    nopeer
    -

    Deny packets which would result in mobilizing a new association. +queries. +Time service is not affected. +

    nopeer
    Deny packets which would result in mobilizing a new association. This includes broadcast and symmetric active packets when a configured -association does not exist. +association does not exist. It also includes pool -associations, so if you want to use servers from a +associations, so if you want to use servers from a pool directive and also want to use nopeer -by default, you’ll want a +by default, you'll want a restrict source ... line as well that does -

    -
    not
    -

    include the +

    not
    include the nopeer -directive. -

    -
    noserve
    -

    Deny all packets except +directive. +

    noserve
    Deny all packets except ntpq(1ntpqmdoc) and ntpdc(1ntpdcmdoc) -queries. -

    -
    notrap
    -

    Decline to provide mode 6 control message trap service to matching -hosts. +queries. +

    notrap
    Decline to provide mode 6 control message trap service to matching +hosts. The trap service is a subsystem of the ntpdq control message -protocol which is intended for use by remote event logging programs. -

    -
    notrust
    -

    Deny service unless the packet is cryptographically authenticated. -

    -
    ntpport
    -

    This is actually a match algorithm modifier, rather than a -restriction flag. +protocol which is intended for use by remote event logging programs. +

    notrust
    Deny service unless the packet is cryptographically authenticated. +
    ntpport
    This is actually a match algorithm modifier, rather than a +restriction flag. Its presence causes the restriction entry to be matched only if the source port in the packet is the standard NTP -UDP port (123). +UDP port (123). Both ntpport and non-ntpport may -be specified. +be specified. The ntpport is considered more specific and -is sorted later in the list. -

    -
    version
    -

    Deny packets that do not match the current NTP version. -

    +is sorted later in the list. +
    version
    Deny packets that do not match the current NTP version.
    -

    Default restriction list entries with the flags ignore, interface, -ntpport, for each of the local host’s interface addresses are +

    Default restriction list entries with the flags ignore, interface, +ntpport, for each of the local host's interface addresses are inserted into the table at startup to prevent the server -from attempting to synchronize to its own time. +from attempting to synchronize to its own time. A default entry is also always present, though if it is otherwise unconfigured; no flags are associated with the default entry (i.e., everything besides your own -NTP server is unrestricted). -

    +NTP server is unrestricted).
    -
    +
    +


    - - -

    1.1.5 Automatic NTP Configuration Options

    - -

    1.1.5.1 Manycasting

    + +

    Automatic NTP Configuration Options

    + +
    Manycasting
    +

    Manycasting is a automatic discovery and configuration paradigm -new to NTPv4. +new to NTPv4. It is intended as a means for a multicast client to troll the nearby network neighborhood to find cooperating manycast servers, validate them using cryptographic means and evaluate their time values with respect to other servers -that might be lurking in the vicinity. +that might be lurking in the vicinity. The intended result is that each manycast client mobilizes -client associations with some number of the "best" +client associations with some number of the "best" of the nearby manycast servers, yet automatically reconfigures to sustain this number of servers should one or another fail. -

    -

    Note that the manycasting paradigm does not coincide + +

    Note that the manycasting paradigm does not coincide with the anycast paradigm described in RFC-1546, which is designed to find a single server from a clique -of servers providing the same service. +of servers providing the same service. The manycast paradigm is designed to find a plurality of redundant servers satisfying defined optimality criteria. -

    -

    Manycasting can be used with either symmetric key -or public key cryptography. + +

    Manycasting can be used with either symmetric key +or public key cryptography. The public key infrastructure (PKI) offers the best protection against compromised keys and is generally considered stronger, at least with relatively -large key sizes. +large key sizes. It is implemented using the Autokey protocol and the OpenSSL cryptographic library available from -http://www.openssl.org/. +http://www.openssl.org/. The library can also be used with other NTPv4 modes as well and is highly recommended, especially for broadcast modes. -

    -

    A persistent manycast client association is configured + +

    A persistent manycast client association is configured using the manycastclient command, which is similar to the server command but with a multicast (IPv4 class D or IPv6 prefix FF) -group address. +group address. The IANA has designated IPv4 address 224.1.1.1 -and IPv6 address FF05::101 (site local) for NTP. +and IPv6 address FF05::101 (site local) for NTP. When more servers are needed, it broadcasts manycast client messages to this address at the minimum feasible rate and minimum feasible time-to-live (TTL) hops, depending -on how many servers have already been found. +on how many servers have already been found. There can be as many manycast client associations as different group address, each one serving as a template for a future ephemeral unicast client/server association. -

    -

    Manycast servers configured with the + +

    Manycast servers configured with the manycastserver command listen on the specified group address for manycast -client messages. +client messages. Note the distinction between manycast client, which actively broadcasts messages, and manycast server, -which passively responds to them. +which passively responds to them. If a manycast server is in scope of the current TTL and is itself synchronized to a valid source and operating at a stratum level equal to or lower than the manycast client, it replies to the manycast client message with an ordinary unicast server message. -

    -

    The manycast client receiving this message mobilizes + +

    The manycast client receiving this message mobilizes an ephemeral client/server association according to the matching manycast client template, but only if cryptographically authenticated and the server stratum is less than or equal -to the client stratum. +to the client stratum. Authentication is explicitly required -and either symmetric key or public key (Autokey) can be used. +and either symmetric key or public key (Autokey) can be used. Then, the client polls the server at its unicast address in burst mode in order to reliably set the host clock -and validate the source. +and validate the source. This normally results in a volley of eight client/server at 2-s intervals during which both the synchronization and cryptographic -protocols run concurrently. +protocols run concurrently. Following the volley, the client runs the NTP intersection and clustering -algorithms, which act to discard all but the "best" +algorithms, which act to discard all but the "best" associations according to stratum and synchronization -distance. +distance. The surviving associations then continue in ordinary client/server mode. -

    -

    The manycast client polling strategy is designed to reduce + +

    The manycast client polling strategy is designed to reduce as much as possible the volume of manycast client messages and the effects of implosion due to near-simultaneous -arrival of manycast server messages. +arrival of manycast server messages. The strategy is determined by the manycastclient, tos and ttl -configuration commands. +configuration commands. The manycast poll interval is normally eight times the system poll interval, which starts out at the @@ -1898,15 +1684,15 @@ value specified in the manycastclient, command and, under normal circumstances, increments to the maxpolll -value specified in this command. +value specified in this command. Initially, the TTL is -set at the minimum hops specified by the ttl command. +set at the minimum hops specified by the ttl command. At each retransmission the TTL is increased until reaching the maximum hops specified by this command or a sufficient -number client associations have been found. +number client associations have been found. Further retransmissions use the same TTL. -

    -

    The quality and reliability of the suite of associations + +

    The quality and reliability of the suite of associations discovered by the manycast client is determined by the NTP mitigation algorithms and the minclock @@ -1914,66 +1700,66 @@ and minsane values specified in the tos -configuration command. +configuration command. At least minsane candidate servers must be available and the mitigation algorithms produce at least minclock -survivors in order to synchronize the clock. +survivors in order to synchronize the clock. Byzantine agreement principles require at least four -candidates in order to correctly discard a single falseticker. +candidates in order to correctly discard a single falseticker. For legacy purposes, minsane defaults to 1 and minclock -defaults to 3. +defaults to 3. For manycast service minsane should be explicitly set to 4, assuming at least that number of servers are available. -

    -

    If at least + +

    If at least minclock servers are found, the manycast poll interval is immediately set to eight times -maxpoll. +maxpoll. If less than minclock servers are found when the TTL has reached the maximum hops, -the manycast poll interval is doubled. +the manycast poll interval is doubled. For each transmission after that, the poll interval is doubled again until reaching the maximum of eight times -maxpoll. +maxpoll. Further transmissions use the same poll interval and -TTL values. +TTL values. Note that while all this is going on, each client/server association found is operating normally it the system poll interval. -

    -

    Administratively scoped multicast boundaries are normally + +

    Administratively scoped multicast boundaries are normally specified by the network router configuration and, -in the case of IPv6, the link/site scope prefix. +in the case of IPv6, the link/site scope prefix. By default, the increment for TTL hops is 32 starting from 31; however, the ttl configuration command can be used to modify the values to match the scope rules. -

    -

    It is often useful to narrow the range of acceptable -servers which can be found by manycast client associations. + +

    It is often useful to narrow the range of acceptable +servers which can be found by manycast client associations. Because manycast servers respond only when the client stratum is equal to or greater than the server stratum, primary (stratum 1) servers fill find only primary servers -in TTL range, which is probably the most common objective. +in TTL range, which is probably the most common objective. However, unless configured otherwise, all manycast clients in TTL range will eventually find all primary servers in TTL range, which is probably not the most common -objective in large networks. +objective in large networks. The tos -command can be used to modify this behavior. +command can be used to modify this behavior. Servers with stratum below floor or above @@ -1985,265 +1771,253 @@ process; however, these servers may be temporally accepted if the number of servers within TTL range is less than minclock. -

    -

    The above actions occur for each manycast client message, -which repeats at the designated poll interval. + +

    The above actions occur for each manycast client message, +which repeats at the designated poll interval. However, once the ephemeral client association is mobilized, subsequent manycast server replies are discarded, -since that would result in a duplicate association. +since that would result in a duplicate association. If during a poll interval the number of client associations falls below minclock, all manycast client prototype associations are reset to the initial poll interval and TTL hops and operation -resumes from the beginning. +resumes from the beginning. It is important to avoid frequent manycast client messages, since each one requires -all manycast servers in TTL range to respond. +all manycast servers in TTL range to respond. The result could well be an implosion, either minor or major, -depending on the number of servers in range. +depending on the number of servers in range. The recommended value for maxpoll is 12 (4,096 s). -

    -

    It is possible and frequently useful to configure a host -as both manycast client and manycast server. + +

    It is possible and frequently useful to configure a host +as both manycast client and manycast server. A number of hosts configured this way and sharing a common group address will automatically organize themselves in an optimum configuration based on stratum and -synchronization distance. +synchronization distance. For example, consider an NTP subnet of two primary servers and a hundred or more -dependent clients. +dependent clients. With two exceptions, all servers and clients have identical configuration files including both multicastclient and multicastserver commands using, for instance, multicast group address -239.1.1.1. +239.1.1.1. The only exception is that each primary server configuration file must include commands for the primary reference source such as a GPS receiver. -

    -

    The remaining configuration files for all secondary + +

    The remaining configuration files for all secondary servers and clients have the same contents, except for the tos -command, which is specific for each stratum level. +command, which is specific for each stratum level. For stratum 1 and stratum 2 servers, that command is -not necessary. +not necessary. For stratum 3 and above servers the floor -value is set to the intended stratum number. +value is set to the intended stratum number. Thus, all stratum 3 configuration files are identical, all stratum 4 files are identical and so forth. -

    -

    Once operations have stabilized in this scenario, + +

    Once operations have stabilized in this scenario, the primary servers will find the primary reference source and each other, since they both operate at the same stratum (1), but not with any secondary server or client, -since these operate at a higher stratum. +since these operate at a higher stratum. The secondary -servers will find the servers at the same stratum level. +servers will find the servers at the same stratum level. If one of the primary servers loses its GPS receiver, it will continue to operate as a client and other clients will time out the corresponding association and re-associate accordingly. -

    -

    Some administrators prefer to avoid running + +

    Some administrators prefer to avoid running ntpd(1ntpdmdoc) continuously and run either -ntpdate(8) +sntp(1sntpmdoc) or ntpd(1ntpdmdoc) -q -as a cron job. +as a cron job. In either case the servers must be configured in advance and the program fails if none are -available when the cron job runs. +available when the cron job runs. A really slick application of manycast is with ntpd(1ntpdmdoc) --q. +-q. The program wakes up, scans the local landscape looking for the usual suspects, selects the best from among -the rascals, sets the clock and then departs. +the rascals, sets the clock and then departs. Servers do not have to be configured in advance and all clients throughout the network can have the same configuration file. -

    -

    1.1.5.2 Manycast Interactions with Autokey

    + +
    Manycast Interactions with Autokey
    +

    Each time a manycast client sends a client mode packet to a multicast group address, all manycast servers in scope generate a reply including the host name -and status word. +and status word. The manycast clients then run the Autokey protocol, which collects and verifies -all certificates involved. +all certificates involved. Following the burst interval all but three survivors are cast off, -but the certificates remain in the local cache. +but the certificates remain in the local cache. It often happens that several complete signing trails from the client to the primary servers are collected in this way. -

    -

    About once an hour or less often if the poll interval -exceeds this, the client regenerates the Autokey key list. -This is in general transparent in client/server mode. + +

    About once an hour or less often if the poll interval +exceeds this, the client regenerates the Autokey key list. +This is in general transparent in client/server mode. However, about once per day the server private value used to generate cookies is refreshed along with all -manycast client associations. +manycast client associations. In this case all -cryptographic values including certificates is refreshed. +cryptographic values including certificates is refreshed. If a new certificate has been generated since the last refresh epoch, it will automatically revoke all prior certificates that happen to be in the -certificate cache. +certificate cache. At the same time, the manycast scheme starts all over from the beginning and the expanding ring shrinks to the minimum and increments from there while collecting all servers in scope. -

    -

    1.1.5.3 Manycast Options

    -
    -
    tos [ceiling ceiling | cohort { 0 | 1 } | floor floor | minclock minclock | minsane minsane]
    -

    This command affects the clock selection and clustering -algorithms. + +

    Manycast Options
    + +
    +
    tos [ceiling ceiling | cohort { 0 | 1 } | floor floor | minclock minclock | minsane minsane]
    This command affects the clock selection and clustering +algorithms. It can be used to select the quality and quantity of peers used to synchronize the system clock -and is most useful in manycast mode. +and is most useful in manycast mode. The variables operate as follows: -

    -
    ceiling ceiling
    -

    Peers with strata above +

    +
    ceiling ceiling
    Peers with strata above ceiling will be discarded if there are at least minclock -peers remaining. +peers remaining. This value defaults to 15, but can be changed -to any number from 1 to 15. -

    -
    cohort {0 | 1}
    -

    This is a binary flag which enables (0) or disables (1) +to any number from 1 to 15. +

    cohort {0 | 1}
    This is a binary flag which enables (0) or disables (1) manycast server replies to manycast clients with the same -stratum level. +stratum level. This is useful to reduce implosions where large numbers of clients with the same stratum level -are present. -The default is to enable these replies. -

    -
    floor floor
    -

    Peers with strata below +are present. +The default is to enable these replies. +

    floor floor
    Peers with strata below floor will be discarded if there are at least minclock -peers remaining. +peers remaining. This value defaults to 1, but can be changed -to any number from 1 to 15. -

    -
    minclock minclock
    -

    The clustering algorithm repeatedly casts out outlier +to any number from 1 to 15. +

    minclock minclock
    The clustering algorithm repeatedly casts out outlier associations until no more than minclock -associations remain. +associations remain. This value defaults to 3, but can be changed to any number from 1 to the number of -configured sources. -

    -
    minsane minsane
    -

    This is the minimum number of candidates available +configured sources. +

    minsane minsane
    This is the minimum number of candidates available to the clock selection algorithm in order to produce -one or more truechimers for the clustering algorithm. +one or more truechimers for the clustering algorithm. If fewer than this number are available, the clock is -undisciplined and allowed to run free. +undisciplined and allowed to run free. The default is 1 -for legacy purposes. +for legacy purposes. However, according to principles of Byzantine agreement, minsane should be at least 4 in order to detect and discard -a single falseticker. -

    +a single falseticker.
    -
    -
    ttl hop ...
    -

    This command specifies a list of TTL values in increasing -order, up to 8 values can be specified. +

    ttl hop ...
    This command specifies a list of TTL values in increasing +order, up to 8 values can be specified. In manycast mode these values are used in turn -in an expanding-ring search. +in an expanding-ring search. The default is eight -multiples of 32 starting at 31. -

    +multiples of 32 starting at 31.
    -
    +
    +


    - - -

    1.1.6 Reference Clock Support

    + +

    Reference Clock Support

    +

    The NTP Version 4 daemon supports some three dozen different radio, satellite and modem reference clocks plus a special pseudo-clock -used for backup or when no other clock source is available. +used for backup or when no other clock source is available. Detailed descriptions of individual device drivers and options can be found in the -"Reference Clock Drivers" +"Reference Clock Drivers" page (available as part of the HTML documentation provided in -/usr/share/doc/ntp). +/usr/share/doc/ntp). Additional information can be found in the pages linked there, including the -"Debugging Hints for Reference Clock Drivers" +"Debugging Hints for Reference Clock Drivers" and -"How To Write a Reference Clock Driver" +"How To Write a Reference Clock Driver" pages (available as part of the HTML documentation provided in -/usr/share/doc/ntp). +/usr/share/doc/ntp). In addition, support for a PPS signal is available as described in the -"Pulse-per-second (PPS) Signal Interfacing" +"Pulse-per-second (PPS) Signal Interfacing" page (available as part of the HTML documentation provided in -/usr/share/doc/ntp). +/usr/share/doc/ntp). Many drivers support special line discipline/streams modules which can -significantly improve the accuracy using the driver. +significantly improve the accuracy using the driver. These are described in the -"Line Disciplines and Streams Drivers" +"Line Disciplines and Streams Drivers" page (available as part of the HTML documentation provided in -/usr/share/doc/ntp). -

    -

    A reference clock will generally (though not always) be a radio +/usr/share/doc/ntp). + +

    A reference clock will generally (though not always) be a radio timecode receiver which is synchronized to a source of standard time such as the services offered by the NRC in Canada and NIST and -USNO in the US. +USNO in the US. The interface between the computer and the timecode -receiver is device dependent, but is usually a serial port. +receiver is device dependent, but is usually a serial port. A device driver specific to each reference clock must be selected and compiled in the distribution; however, most common radio, satellite -and modem clocks are included by default. +and modem clocks are included by default. Note that an attempt to configure a reference clock when the driver has not been compiled or the hardware port has not been appropriately configured results in a scalding remark to the system log file, but is otherwise non hazardous. -

    -

    For the purposes of configuration, + +

    For the purposes of configuration, ntpd(1ntpdmdoc) treats reference clocks in a manner analogous to normal NTP peers as much -as possible. +as possible. Reference clocks are identified by a syntactically correct but invalid IP address, in order to distinguish them from -normal NTP peers. +normal NTP peers. Reference clock addresses are of the form 127.127.t.u, where @@ -2252,222 +2026,199 @@ is an integer denoting the clock type and u indicates the unit -number in the range 0-3. +number in the range 0-3. While it may seem overkill, it is in fact sometimes useful to configure multiple reference clocks of the same type, in which case the unit numbers must be unique. -

    -

    The + +

    The server command is used to configure a reference clock, where the address argument in that command -is the clock address. +is the clock address. The key, version and ttl -options are not used for reference clock support. +options are not used for reference clock support. The mode option is added for reference clock support, as -described below. +described below. The prefer option can be useful to persuade the server to cherish a reference clock with somewhat more -enthusiasm than other reference clocks or peers. +enthusiasm than other reference clocks or peers. Further information on this option can be found in the -"Mitigation Rules and the prefer Keyword" +"Mitigation Rules and the prefer Keyword" (available as part of the HTML documentation provided in -/usr/share/doc/ntp) -page. +/usr/share/doc/ntp) +page. The minpoll and maxpoll options have -meaning only for selected clock drivers. +meaning only for selected clock drivers. See the individual clock driver document pages for additional information. -

    -

    The + +

    The fudge command is used to provide additional information for individual clock drivers and normally follows immediately after the server -command. +command. The address -argument specifies the clock address. +argument specifies the clock address. The refid and stratum options can be used to -override the defaults for the device. +override the defaults for the device. There are two optional device-dependent time offsets and four flags that can be included in the fudge command as well. -

    -

    The stratum number of a reference clock is by default zero. + +

    The stratum number of a reference clock is by default zero. Since the ntpd(1ntpdmdoc) daemon adds one to the stratum of each peer, a primary server ordinarily displays an external stratum of -one. +one. In order to provide engineered backups, it is often useful to -specify the reference clock stratum as greater than zero. +specify the reference clock stratum as greater than zero. The stratum -option is used for this purpose. +option is used for this purpose. Also, in cases involving both a reference clock and a pulse-per-second (PPS) discipline signal, it is useful to specify the reference clock -identifier as other than the default, depending on the driver. +identifier as other than the default, depending on the driver. The refid -option is used for this purpose. +option is used for this purpose. Except where noted, these options apply to all clock drivers. -

    -

    1.1.6.1 Reference Clock Commands

    -
    -
    server 127.127.t.u [prefer] [mode int] [minpoll int] [maxpoll int]
    -

    This command can be used to configure reference clocks in -special ways. + +

    Reference Clock Commands
    + +
    +
    server 127.127.t.u [prefer] [mode int] [minpoll int] [maxpoll int]
    This command can be used to configure reference clocks in +special ways. The options are interpreted as follows: -

    -
    prefer
    -

    Marks the reference clock as preferred. +

    +
    prefer
    Marks the reference clock as preferred. All other things being equal, this host will be chosen for synchronization among a set of -correctly operating hosts. +correctly operating hosts. See the -"Mitigation Rules and the prefer Keyword" +"Mitigation Rules and the prefer Keyword" page (available as part of the HTML documentation provided in -/usr/share/doc/ntp) -for further information. -

    -
    mode int
    -

    Specifies a mode number which is interpreted in a -device-specific fashion. +/usr/share/doc/ntp) +for further information. +

    mode int
    Specifies a mode number which is interpreted in a +device-specific fashion. For instance, it selects a dialing protocol in the ACTS driver and a device subtype in the parse -drivers. -

    -
    minpoll int
    -
    maxpoll int
    -

    These options specify the minimum and maximum polling interval +drivers. +

    minpoll int
    maxpoll int
    These options specify the minimum and maximum polling interval for reference clock messages, as a power of 2 in seconds For most directly connected reference clocks, both minpoll and maxpoll -default to 6 (64 s). +default to 6 (64 s). For modem reference clocks, minpoll defaults to 10 (17.1 m) and maxpoll -defaults to 14 (4.5 h). -The allowable range is 4 (16 s) to 17 (36.4 h) inclusive. -

    +defaults to 14 (4.5 h). +The allowable range is 4 (16 s) to 17 (36.4 h) inclusive.
    -
    -
    fudge 127.127.t.u [time1 sec] [time2 sec] [stratum int] [refid string] [mode int] [flag1 0 | 1] [flag2 0 | 1] [flag3 0 | 1] [flag4 0 | 1]
    -

    This command can be used to configure reference clocks in -special ways. +

    fudge 127.127.t.u [time1 sec] [time2 sec] [stratum int] [refid string] [mode int] [flag1 0 | 1] [flag2 0 | 1] [flag3 0 | 1] [flag4 0 | 1]
    This command can be used to configure reference clocks in +special ways. It must immediately follow the server -command which configures the driver. +command which configures the driver. Note that the same capability is possible at run time using the ntpdc(1ntpdcmdoc) -program. +program. The options are interpreted as follows: -

    -
    time1 sec
    -

    Specifies a constant to be added to the time offset produced by -the driver, a fixed-point decimal number in seconds. +

    +
    time1 sec
    Specifies a constant to be added to the time offset produced by +the driver, a fixed-point decimal number in seconds. This is used as a calibration constant to adjust the nominal time offset of a particular clock to agree with an external standard, such as a -precision PPS signal. +precision PPS signal. It also provides a way to correct a systematic error or bias due to serial port or operating system -latencies, different cable lengths or receiver internal delay. +latencies, different cable lengths or receiver internal delay. The specified offset is in addition to the propagation delay provided -by other means, such as internal DIPswitches. +by other means, such as internal DIPswitches. Where a calibration for an individual system and driver is available, an approximate -correction is noted in the driver documentation pages. +correction is noted in the driver documentation pages. Note: in order to facilitate calibration when more than one radio clock or PPS signal is supported, a special calibration -feature is available. +feature is available. It takes the form of an argument to the enable command described in Miscellaneous Options page and operates as described in the -"Reference Clock Drivers" +"Reference Clock Drivers" page (available as part of the HTML documentation provided in -/usr/share/doc/ntp). -

    -
    time2 secs
    -

    Specifies a fixed-point decimal number in seconds, which is -interpreted in a driver-dependent way. +/usr/share/doc/ntp). +

    time2 secs
    Specifies a fixed-point decimal number in seconds, which is +interpreted in a driver-dependent way. See the descriptions of specific drivers in the -"Reference Clock Drivers" +"Reference Clock Drivers" page (available as part of the HTML documentation provided in -/usr/share/doc/ntp). -

    -
    stratum int
    -

    Specifies the stratum number assigned to the driver, an integer -between 0 and 15. +/usr/share/doc/ntp). +

    stratum int
    Specifies the stratum number assigned to the driver, an integer +between 0 and 15. This number overrides the default stratum number -ordinarily assigned by the driver itself, usually zero. -

    -
    refid string
    -

    Specifies an ASCII string of from one to four characters which -defines the reference identifier used by the driver. +ordinarily assigned by the driver itself, usually zero. +

    refid string
    Specifies an ASCII string of from one to four characters which +defines the reference identifier used by the driver. This string overrides the default identifier ordinarily assigned by the driver -itself. -

    -
    mode int
    -

    Specifies a mode number which is interpreted in a -device-specific fashion. +itself. +

    mode int
    Specifies a mode number which is interpreted in a +device-specific fashion. For instance, it selects a dialing protocol in the ACTS driver and a device subtype in the parse -drivers. -

    -
    flag1 0 | 1
    -
    flag2 0 | 1
    -
    flag3 0 | 1
    -
    flag4 0 | 1
    -

    These four flags are used for customizing the clock driver. +drivers. +

    flag1 0 | 1
    flag2 0 | 1
    flag3 0 | 1
    flag4 0 | 1
    These four flags are used for customizing the clock driver. The interpretation of these values, and whether they are used at all, -is a function of the particular clock driver. +is a function of the particular clock driver. However, by convention flag4 @@ -2476,215 +2227,181 @@ data to the clockstats file configured with the filegen -command. +command. Further information on the filegen command can be found in -‘Monitoring Options’. -

    +Monitoring Options.
    -
    -
    -
    +
    +
    +


    -
    -

    -Next: , Previous: , Up: ntp.conf Notes  

    +
    - -

    1.1.7 Miscellaneous Options

    -
    -
    broadcastdelay seconds
    -

    The broadcast and multicast modes require a special calibration + +

    Miscellaneous Options

    + +
    +
    broadcastdelay seconds
    The broadcast and multicast modes require a special calibration to determine the network delay between the local and remote -servers. +servers. Ordinarily, this is done automatically by the initial -protocol exchanges between the client and server. +protocol exchanges between the client and server. In some cases, the calibration procedure may fail due to network or server access -controls, for example. +controls, for example. This command specifies the default delay to -be used under these circumstances. +be used under these circumstances. Typically (for Ethernet), a -number between 0.003 and 0.007 seconds is appropriate. +number between 0.003 and 0.007 seconds is appropriate. The default -when this command is not used is 0.004 seconds. -

    -
    calldelay delay
    -

    This option controls the delay in seconds between the first and second +when this command is not used is 0.004 seconds. +

    calldelay delay
    This option controls the delay in seconds between the first and second packets sent in burst or iburst mode to allow additional time for a modem -or ISDN call to complete. -

    -
    driftfile driftfile
    -

    This command specifies the complete path and name of the file used to -record the frequency of the local clock oscillator. +or ISDN call to complete. +

    driftfile driftfile
    This command specifies the complete path and name of the file used to +record the frequency of the local clock oscillator. This is the same operation as the -f -command line option. +command line option. If the file exists, it is read at startup in order to set the initial frequency and then updated once per -hour with the current frequency computed by the daemon. +hour with the current frequency computed by the daemon. If the file name is specified, but the file itself does not exist, the starts with an initial -frequency of zero and creates the file when writing it for the first time. +frequency of zero and creates the file when writing it for the first time. If this command is not given, the daemon will always start with an initial frequency of zero. -

    -

    The file format consists of a single line containing a single + +

    The file format consists of a single line containing a single floating point number, which records the frequency offset measured -in parts-per-million (PPM). +in parts-per-million (PPM). The file is updated by first writing the current drift value into a temporary file and then renaming -this file to replace the old version. +this file to replace the old version. This implies that ntpd(1ntpdmdoc) must have write permission for the directory the drift file is located in, and that file system links, symbolic or -otherwise, should be avoided. -

    -
    dscp value
    -

    This option specifies the Differentiated Services Control Point (DSCP) value, -a 6-bit code. The default value is 46, signifying Expedited Forwarding. -

    -
    enable [auth | bclient | calibrate | kernel | mode7 | monitor | ntp | stats]
    -
    disable [auth | bclient | calibrate | kernel | mode7 | monitor | ntp | stats]
    -

    Provides a way to enable or disable various server options. -Flags not mentioned are unaffected. +otherwise, should be avoided. +

    dscp value
    This option specifies the Differentiated Services Control Point (DSCP) value, +a 6-bit code. The default value is 46, signifying Expedited Forwarding. +
    enable [auth | bclient | calibrate | kernel | mode7 | monitor | ntp | stats]
    disable [auth | bclient | calibrate | kernel | mode7 | monitor | ntp | stats]
    Provides a way to enable or disable various server options. +Flags not mentioned are unaffected. Note that all of these flags can be controlled remotely using the ntpdc(1ntpdcmdoc) utility program. -

    -
    auth
    -

    Enables the server to synchronize with unconfigured peers only if the +

    +
    auth
    Enables the server to synchronize with unconfigured peers only if the peer has been correctly authenticated using either public key or -private key cryptography. +private key cryptography. The default for this flag is -enable. -

    -
    bclient
    -

    Enables the server to listen for a message from a broadcast or +enable. +

    bclient
    Enables the server to listen for a message from a broadcast or multicast server, as in the multicastclient command with default -address. +address. The default for this flag is -disable. -

    -
    calibrate
    -

    Enables the calibrate feature for reference clocks. +disable. +

    calibrate
    Enables the calibrate feature for reference clocks. The default for this flag is -disable. -

    -
    kernel
    -

    Enables the kernel time discipline, if available. +disable. +

    kernel
    Enables the kernel time discipline, if available. The default for this flag is enable if support is available, otherwise -disable. -

    -
    mode7
    -

    Enables processing of NTP mode 7 implementation-specific requests +disable. +

    mode7
    Enables processing of NTP mode 7 implementation-specific requests which are used by the deprecated ntpdc(1ntpdcmdoc) -program. -The default for this flag is disable. +program. +The default for this flag is disable. This flag is excluded from runtime configuration using -ntpq(1ntpqmdoc). +ntpq(1ntpqmdoc). The ntpq(1ntpqmdoc) program provides the same capabilities as ntpdc(1ntpdcmdoc) -using standard mode 6 requests. -

    -
    monitor
    -

    Enables the monitoring facility. +using standard mode 6 requests. +

    monitor
    Enables the monitoring facility. See the ntpdc(1ntpdcmdoc) program and the monlist -command or further information. +command or further information. The default for this flag is -enable. -

    -
    ntp
    -

    Enables time and frequency discipline. +enable. +

    ntp
    Enables time and frequency discipline. In effect, this switch opens and -closes the feedback loop, which is useful for testing. +closes the feedback loop, which is useful for testing. The default for this flag is -enable. -

    -
    stats
    -

    Enables the statistics facility. +enable. +

    stats
    Enables the statistics facility. See the -‘Monitoring Options’ -section for further information. +Monitoring Options +section for further information. The default for this flag is -disable. -

    +disable.
    -
    -
    includefile includefile
    -

    This command allows additional configuration commands -to be included from a separate file. +

    includefile includefile
    This command allows additional configuration commands +to be included from a separate file. Include files may be nested to a depth of five; upon reaching the end of any include file, command processing resumes in the previous -configuration file. +configuration file. This option is useful for sites that run ntpd(1ntpdmdoc) on multiple hosts, with (mostly) common options (e.g., a -restriction list). -

    -
    leapsmearinterval seconds
    -

    This EXPERIMENTAL option is only available if +restriction list). +

    leapsmearinterval seconds
    This EXPERIMENTAL option is only available if ntpd(1ntpdmdoc) was built with the --enable-leap-smear option to the configure -script. -It specifies the interval over which a leap second correction will be applied. +script. +It specifies the interval over which a leap second correction will be applied. Recommended values for this option are between -7200 (2 hours) and 86400 (24 hours). -.Sy DO NOT USE THIS OPTION ON PUBLIC-ACCESS SERVERS! -See http://bugs.ntp.org/2855 for more information. -

    -
    logconfig configkeyword
    -

    This command controls the amount and type of output written to +7200 (2 hours) and 86400 (24 hours). +.Sy DO NOT USE THIS OPTION ON PUBLIC-ACCESS SERVERS! +See http://bugs.ntp.org/2855 for more information. +

    logconfig configkeyword
    This command controls the amount and type of output written to the system syslog(3) facility or the alternate logfile -log file. -By default, all output is turned on. +log file. +By default, all output is turned on. All configkeyword keywords can be prefixed with -‘=’, -‘+’ +=, ++ and -‘-’, +-, where -‘=’ += sets the syslog(3) priority mask, -‘+’ ++ adds and -‘-’ +- removes -messages. +messages. syslog(3) messages can be controlled in four classes -(clock, peer, sys and sync). +(clock, peer, sys and sync). Within these classes four types of messages can be controlled: informational messages (info), @@ -2695,300 +2412,255 @@ statistics messages and status messages (status). -

    -

    Configuration keywords are formed by concatenating the message class with -the event class. + +

    Configuration keywords are formed by concatenating the message class with +the event class. The all -prefix can be used instead of a message class. +prefix can be used instead of a message class. A message class may also be followed by the all keyword to enable/disable all messages of the respective message class.Thus, a minimal log configuration could look like this: -

    logconfig =syncstatus +sysevents
    +
         
    +     logconfig =syncstatus +sysevents
     
    -

    This would just list the synchronizations state of + +

    This would just list the synchronizations state of ntpd(1ntpdmdoc) -and the major system events. +and the major system events. For a simple reference server, the following minimum message configuration could be useful: -

    logconfig =syncall +clockall
    +
         
    +     logconfig =syncall +clockall
     
    -

    This configuration will list all clock information and -synchronization information. + +

    This configuration will list all clock information and +synchronization information. All other events and messages about -peers, system events and so on is suppressed. -

    -
    logfile logfile
    -

    This command specifies the location of an alternate log file to +peers, system events and so on is suppressed. +

    logfile logfile
    This command specifies the location of an alternate log file to be used instead of the default system syslog(3) -facility. -This is the same operation as the -l command line option. -

    -
    setvar variable [default]
    -

    This command adds an additional system variable. +facility. +This is the same operation as the -l command line option. +

    setvar variable [default]
    This command adds an additional system variable. These variables can be used to distribute additional information such as -the access policy. +the access policy. If the variable of the form name=value is followed by the default keyword, the variable will be listed as part of the default system variables -(rv command)). +(rv command)). These additional variables serve -informational purposes only. +informational purposes only. They are not related to the protocol -other that they can be listed. +other that they can be listed. The known protocol variables will always override any variables defined via the setvar -mechanism. +mechanism. There are three special variables that contain the names -of all variable of the same group. +of all variable of the same group. The sys_var_list holds -the names of all system variables. +the names of all system variables. The peer_var_list holds the names of all peer variables and the clock_var_list -holds the names of the reference clock variables. -

    -
    tinker [allan allan | dispersion dispersion | freq freq | huffpuff huffpuff | panic panic | step step | stepback stepback | stepfwd stepfwd | stepout stepout]
    -

    This command can be used to alter several system variables in -very exceptional circumstances. +holds the names of the reference clock variables. +

    tinker [allan allan | dispersion dispersion | freq freq | huffpuff huffpuff | panic panic | step step | stepback stepback | stepfwd stepfwd | stepout stepout]
    This command can be used to alter several system variables in +very exceptional circumstances. It should occur in the -configuration file before any other configuration options. +configuration file before any other configuration options. The default values of these variables have been carefully optimized for -a wide range of network speeds and reliability expectations. +a wide range of network speeds and reliability expectations. In general, they interact in intricate ways that are hard to predict -and some combinations can result in some very nasty behavior. +and some combinations can result in some very nasty behavior. Very rarely is it necessary to change the default values; but, some folks cannot resist twisting the knobs anyway and this command is -for them. +for them. Emphasis added: twisters are on their own and can expect no help from the support group. -

    -

    The variables operate as follows: -

    -
    allan allan
    -

    The argument becomes the new value for the minimum Allan + +

    The variables operate as follows: +

    +
    allan allan
    The argument becomes the new value for the minimum Allan intercept, which is a parameter of the PLL/FLL clock discipline -algorithm. +algorithm. The value in log2 seconds defaults to 7 (1024 s), which is also the lower -limit. -

    -
    dispersion dispersion
    -

    The argument becomes the new value for the dispersion increase rate, -normally .000015 s/s. -

    -
    freq freq
    -

    The argument becomes the initial value of the frequency offset in -parts-per-million. +limit. +

    dispersion dispersion
    The argument becomes the new value for the dispersion increase rate, +normally .000015 s/s. +
    freq freq
    The argument becomes the initial value of the frequency offset in +parts-per-million. This overrides the value in the frequency file, if -present, and avoids the initial training state if it is not. -

    -
    huffpuff huffpuff
    -

    The argument becomes the new value for the experimental -huff-n’-puff filter span, which determines the most recent interval -the algorithm will search for a minimum delay. +present, and avoids the initial training state if it is not. +

    huffpuff huffpuff
    The argument becomes the new value for the experimental +huff-n'-puff filter span, which determines the most recent interval +the algorithm will search for a minimum delay. The lower limit is -900 s (15 m), but a more reasonable value is 7200 (2 hours). +900 s (15 m), but a more reasonable value is 7200 (2 hours). There is no default, since the filter is not enabled unless this command -is given. -

    -
    panic panic
    -

    The argument is the panic threshold, normally 1000 s. +is given. +

    panic panic
    The argument is the panic threshold, normally 1000 s. If set to zero, the panic sanity check is disabled and a clock offset of any value will -be accepted. -

    -
    step step
    -

    The argument is the step threshold, which by default is 0.128 s. +be accepted. +

    step step
    The argument is the step threshold, which by default is 0.128 s. It can -be set to any positive number in seconds. +be set to any positive number in seconds. If set to zero, step -adjustments will never occur. +adjustments will never occur. Note: The kernel time discipline is disabled if the step threshold is set to zero or greater than the -default. -

    -
    stepback stepback
    -

    The argument is the step threshold for the backward direction, -which by default is 0.128 s. +default. +

    stepback stepback
    The argument is the step threshold for the backward direction, +which by default is 0.128 s. It can -be set to any positive number in seconds. +be set to any positive number in seconds. If both the forward and backward step thresholds are set to zero, step -adjustments will never occur. +adjustments will never occur. Note: The kernel time discipline is disabled if each direction of step threshold are either -set to zero or greater than .5 second. -

    -
    stepfwd stepfwd
    -

    As for stepback, but for the forward direction. -

    -
    stepout stepout
    -

    The argument is the stepout timeout, which by default is 900 s. +set to zero or greater than .5 second. +

    stepfwd stepfwd
    As for stepback, but for the forward direction. +
    stepout stepout
    The argument is the stepout timeout, which by default is 900 s. It can -be set to any positive number in seconds. +be set to any positive number in seconds. If set to zero, the stepout -pulses will not be suppressed. -

    +pulses will not be suppressed.
    -
    -
    rlimit [memlock Nmegabytes | stacksize N4kPages filenum Nfiledescriptors]
    -
    -
    memlock Nmegabytes
    -

    Specify the number of megabytes of memory that can be allocated. -Probably only available under Linux, this option is useful +

    rlimit [memlock Nmegabytes | stacksize N4kPages filenum Nfiledescriptors]
    +
    +
    memlock Nmegabytes
    Specify the number of megabytes of memory that should be +allocated and locked. +Probably only available under Linux, this option may be useful when dropping root (the -i -option). -The default is 32 megabytes. Setting this to zero will prevent any attemp to lock memory. -

    -
    stacksize N4kPages
    -

    Specifies the maximum size of the process stack on systems with the +option). +The default is 32 megabytes on non-Linux machines, and -1 under Linux. +-1 means "do not lock the process into memory". +0 means "lock whatever memory the process wants into memory". +

    stacksize N4kPages
    Specifies the maximum size of the process stack on systems with the mlockall() -function. -Defaults to 50 4k pages (200 4k pages in OpenBSD). -

    -
    filenum Nfiledescriptors
    -

    Specifies the maximum number of file descriptors ntpd may have open at once. Defaults to the system default. -

    +function. +Defaults to 50 4k pages (200 4k pages in OpenBSD). +
    filenum Nfiledescriptors
    Specifies the maximum number of file descriptors ntpd may have open at once. Defaults to the system default.
    -
    -
    trap host_address [port port_number] [interface interface_address]
    -

    This command configures a trap receiver at the given host +

    trap host_address [port port_number] [interface interface_address]
    This command configures a trap receiver at the given host address and port number for sending messages with the specified -local interface address. +local interface address. If the port number is unspecified, a value -of 18447 is used. +of 18447 is used. If the interface address is not specified, the message is sent with a source address of the local interface the -message is sent through. +message is sent through. Note that on a multihomed host the interface used may vary from time to time with routing changes. -

    -

    The trap receiver will generally log event messages and other -information from the server in a log file. + +

    The trap receiver will generally log event messages and other +information from the server in a log file. While such monitor programs may also request their own trap dynamically, configuring a trap receiver will ensure that no messages are lost when the server -is started. -

    -
    hop ...
    -

    This command specifies a list of TTL values in increasing order, up to 8 -values can be specified. +is started. +

    hop ...
    This command specifies a list of TTL values in increasing order, up to 8 +values can be specified. In manycast mode these values are used in turn in -an expanding-ring search. +an expanding-ring search. The default is eight multiples of 32 starting at -31. -

    +31.
    -

    This section was generated by AutoGen, -using the agtexi-cmd template and the option descriptions for the ntp.conf program. +

    This section was generated by AutoGen, +using the agtexi-cmd template and the option descriptions for the ntp.conf program. This software is released under the NTP license, <http://ntp.org/license>. -

    - - - - - - - -
    + + + +
    +


    - - -

    1.1.8 ntp.conf Files

    -
    -
    /etc/ntp.conf
    -

    the default name of the configuration file -

    -
    ntp.keys
    -

    private MD5 keys -

    -
    ntpkey
    -

    RSA private key -

    -
    ntpkey_host
    -

    RSA public key -

    -
    ntp_dh
    -

    Diffie-Hellman agreement parameters -

    + +

    ntp.conf Files

    + +
    +
    /etc/ntp.conf
    the default name of the configuration file +
    ntp.keys
    private MD5 keys +
    ntpkey
    RSA private key +
    ntpkey_host
    RSA public key +
    ntp_dh
    Diffie-Hellman agreement parameters
    -
    +
    +


    -
    -

    -Next: , Previous: , Up: ntp.conf Notes  

    +
    - -

    1.1.9 ntp.conf See Also

    + +

    ntp.conf See Also

    +

    ntpd(1ntpdmdoc), ntpdc(1ntpdcmdoc), ntpq(1ntpqmdoc) -

    -

    In addition to the manual pages provided, + +

    In addition to the manual pages provided, comprehensive documentation is available on the world wide web at -http://www.ntp.org/. +http://www.ntp.org/. A snapshot of this documentation is available in HTML format in -/usr/share/doc/ntp. -
    -

    +/usr/share/doc/ntp.
    -

    David L. Mills, Network Time Protocol (Version 4), RFC5905 -


    + +


    +David L. Mills, Network Time Protocol (Version 4), RFC5905 +

    +


    -
    -

    -Next: , Previous: , Up: ntp.conf Notes  

    +
    - -

    1.1.10 ntp.conf Bugs

    + +

    ntp.conf Bugs

    +

    The syntax checking is not picky; some combinations of ridiculous and even hilarious options and modes may not be detected. -

    -

    The -ntpkey_host + +

    The +ntpkey_host files are really digital -certificates. +certificates. These should be obtained via secure directory -services when they become universally available. -


    -
    -

    -  

    +services when they become universally available. +
    +


    + +
    - -

    1.1.11 ntp.conf Notes

    -

    This document was derived from FreeBSD. -


    +

    ntp.conf Notes

    + +

    This document was derived from FreeBSD. + - - diff --git a/ntpd/ntp.conf.man.in b/ntpd/ntp.conf.man.in index b9468e344..c1a0d8fe8 100644 --- a/ntpd/ntp.conf.man.in +++ b/ntpd/ntp.conf.man.in @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH ntp.conf 5 "23 Sep 2015" "4.2.8p3" "File Formats" +.TH ntp.conf 5 "06 Oct 2015" "4.2.8p4-RC1" "File Formats" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-1Va40z/ag-GWaWZz) .\" -.\" It has been AutoGen-ed September 23, 2015 at 10:22:45 AM by AutoGen 5.18.5 +.\" It has been AutoGen-ed October 6, 2015 at 06:06:17 AM by AutoGen 5.18.5 .\" From the definitions ntp.conf.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/ntpd/ntp.conf.mdoc.in b/ntpd/ntp.conf.mdoc.in index b6f648fb8..35042a555 100644 --- a/ntpd/ntp.conf.mdoc.in +++ b/ntpd/ntp.conf.mdoc.in @@ -1,9 +1,9 @@ -.Dd September 23 2015 +.Dd October 6 2015 .Dt NTP_CONF 5 File Formats .Os .\" EDIT THIS FILE WITH CAUTION (ntp.mdoc) .\" -.\" It has been AutoGen-ed September 23, 2015 at 10:15:06 AM by AutoGen 5.18.5 +.\" It has been AutoGen-ed October 6, 2015 at 06:07:05 AM by AutoGen 5.18.5 .\" From the definitions ntp.conf.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/ntpd/ntp.keys.5man b/ntpd/ntp.keys.5man index 63d455385..fca3df456 100644 --- a/ntpd/ntp.keys.5man +++ b/ntpd/ntp.keys.5man @@ -1,8 +1,8 @@ -.TH ntp.keys 5man "29 Jun 2015" "4.2.8p3" "File Formats" +.TH ntp.keys 5man "06 Oct 2015" "4.2.8p4-RC1" "File Formats" .\" .\" EDIT THIS FILE WITH CAUTION (ntp.man) .\" -.\" It has been AutoGen-ed June 29, 2015 at 04:30:21 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed October 6, 2015 at 06:06:26 AM by AutoGen 5.18.5 .\" From the definitions ntp.keys.def .\" and the template file agman-file.tpl .Sh NAME diff --git a/ntpd/ntp.keys.5mdoc b/ntpd/ntp.keys.5mdoc index 47e5f81d2..a88f4d469 100644 --- a/ntpd/ntp.keys.5mdoc +++ b/ntpd/ntp.keys.5mdoc @@ -1,9 +1,9 @@ -.Dd June 29 2015 +.Dd October 6 2015 .Dt NTP_KEYS 5mdoc File Formats .Os SunOS 5.10 .\" EDIT THIS FILE WITH CAUTION (ntp.mdoc) .\" -.\" It has been AutoGen-ed June 29, 2015 at 04:30:39 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed October 6, 2015 at 06:07:10 AM by AutoGen 5.18.5 .\" From the definitions ntp.keys.def .\" and the template file agmdoc-file.tpl .Sh NAME diff --git a/ntpd/ntp.keys.html b/ntpd/ntp.keys.html index f096f63fc..97e910716 100644 --- a/ntpd/ntp.keys.html +++ b/ntpd/ntp.keys.html @@ -33,7 +33,7 @@ Up: (dir)

    This document describes the symmetric key file for the NTP Project's ntpd program. -

    This document applies to version 4.2.8p3 of ntp.keys. +

    This document applies to version 4.2.8p4-RC1 of ntp.keys.

    Short Contents

    diff --git a/ntpd/ntp.keys.man.in b/ntpd/ntp.keys.man.in index 1080b91bf..b234e18dc 100644 --- a/ntpd/ntp.keys.man.in +++ b/ntpd/ntp.keys.man.in @@ -1,8 +1,8 @@ -.TH ntp.keys 5 "29 Jun 2015" "4.2.8p3" "File Formats" +.TH ntp.keys 5 "06 Oct 2015" "4.2.8p4-RC1" "File Formats" .\" .\" EDIT THIS FILE WITH CAUTION (ntp.man) .\" -.\" It has been AutoGen-ed June 29, 2015 at 04:30:21 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed October 6, 2015 at 06:06:26 AM by AutoGen 5.18.5 .\" From the definitions ntp.keys.def .\" and the template file agman-file.tpl .Sh NAME diff --git a/ntpd/ntp.keys.mdoc.in b/ntpd/ntp.keys.mdoc.in index 6bd1c0987..77cbb2f3d 100644 --- a/ntpd/ntp.keys.mdoc.in +++ b/ntpd/ntp.keys.mdoc.in @@ -1,9 +1,9 @@ -.Dd June 29 2015 +.Dd October 6 2015 .Dt NTP_KEYS 5 File Formats .Os SunOS 5.10 .\" EDIT THIS FILE WITH CAUTION (ntp.mdoc) .\" -.\" It has been AutoGen-ed June 29, 2015 at 04:30:39 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed October 6, 2015 at 06:07:10 AM by AutoGen 5.18.5 .\" From the definitions ntp.keys.def .\" and the template file agmdoc-file.tpl .Sh NAME diff --git a/ntpd/ntpd-opts.c b/ntpd/ntpd-opts.c index 2d547a18d..0bfacd4a0 100644 --- a/ntpd/ntpd-opts.c +++ b/ntpd/ntpd-opts.c @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (ntpd-opts.c) * - * It has been AutoGen-ed June 29, 2015 at 04:28:19 PM by AutoGen 5.18.5 + * It has been AutoGen-ed October 6, 2015 at 06:02:27 AM by AutoGen 5.18.5 * From the definitions ntpd-opts.def * and the template file options * @@ -50,7 +50,7 @@ extern "C" { #endif extern FILE * option_usage_fp; #define zCopyright (ntpd_opt_strs+0) -#define zLicenseDescrip (ntpd_opt_strs+340) +#define zLicenseDescrip (ntpd_opt_strs+344) /* * global included definitions @@ -74,15 +74,15 @@ extern FILE * option_usage_fp; /** * static const strings for ntpd options */ -static char const ntpd_opt_strs[3129] = -/* 0 */ "ntpd 4.2.8p3\n" +static char const ntpd_opt_strs[3141] = +/* 0 */ "ntpd 4.2.8p4-RC1\n" "Copyright (C) 1992-2015 The University of Delaware and Network Time Foundation, all rights reserved.\n" "This is free software. It is licensed for use, modification and\n" "redistribution under the terms of the NTP License, copies of which\n" "can be seen at:\n" " \n" " \n\0" -/* 340 */ "Permission to use, copy, modify, and distribute this software and its\n" +/* 344 */ "Permission to use, copy, modify, and distribute this software and its\n" "documentation for any purpose with or without fee is hereby granted,\n" "provided that the above copyright notice appears in all copies and that\n" "both the copyright notice and this permission notice appear in supporting\n" @@ -92,136 +92,136 @@ static char const ntpd_opt_strs[3129] = "Time Foundation makes no representations about the suitability this\n" "software for any purpose. It is provided \"as is\" without express or\n" "implied warranty.\n\0" -/* 1008 */ "Force IPv4 DNS name resolution\0" -/* 1039 */ "IPV4\0" -/* 1044 */ "ipv4\0" -/* 1049 */ "Force IPv6 DNS name resolution\0" -/* 1080 */ "IPV6\0" -/* 1085 */ "ipv6\0" -/* 1090 */ "Require crypto authentication\0" -/* 1120 */ "AUTHREQ\0" -/* 1128 */ "authreq\0" -/* 1136 */ "Do not require crypto authentication\0" -/* 1173 */ "AUTHNOREQ\0" -/* 1183 */ "authnoreq\0" -/* 1193 */ "Allow us to sync to broadcast servers\0" -/* 1231 */ "BCASTSYNC\0" -/* 1241 */ "bcastsync\0" -/* 1251 */ "configuration file name\0" -/* 1275 */ "CONFIGFILE\0" -/* 1286 */ "configfile\0" -/* 1297 */ "Increase debug verbosity level\0" -/* 1328 */ "DEBUG_LEVEL\0" -/* 1340 */ "debug-level\0" -/* 1352 */ "Set the debug verbosity level\0" -/* 1382 */ "SET_DEBUG_LEVEL\0" -/* 1398 */ "set-debug-level\0" -/* 1414 */ "frequency drift file name\0" -/* 1440 */ "DRIFTFILE\0" -/* 1450 */ "driftfile\0" -/* 1460 */ "Allow the first adjustment to be Big\0" -/* 1497 */ "PANICGATE\0" -/* 1507 */ "panicgate\0" -/* 1517 */ "Step any initial offset correction.\0" -/* 1553 */ "FORCE_STEP_ONCE\0" -/* 1569 */ "force-step-once\0" -/* 1585 */ "Jail directory\0" -/* 1600 */ "JAILDIR\0" -/* 1608 */ "jaildir\0" -/* 1616 */ "built without --enable-clockctl or --enable-linuxcaps or --enable-solarisprivs\0" -/* 1695 */ "Listen on an interface name or address\0" -/* 1734 */ "INTERFACE\0" -/* 1744 */ "interface\0" -/* 1754 */ "path to symmetric keys\0" -/* 1777 */ "KEYFILE\0" -/* 1785 */ "keyfile\0" -/* 1793 */ "path to the log file\0" -/* 1814 */ "LOGFILE\0" -/* 1822 */ "logfile\0" -/* 1830 */ "Do not listen to virtual interfaces\0" -/* 1866 */ "NOVIRTUALIPS\0" -/* 1879 */ "novirtualips\0" -/* 1892 */ "Modify Multimedia Timer (Windows only)\0" -/* 1931 */ "MODIFYMMTIMER\0" -/* 1945 */ "modifymmtimer\0" -/* 1959 */ "Do not fork\0" -/* 1971 */ "NOFORK\0" -/* 1978 */ "nofork\0" -/* 1985 */ "Run at high priority\0" -/* 2006 */ "NICE\0" -/* 2011 */ "nice\0" -/* 2016 */ "path to the PID file\0" -/* 2037 */ "PIDFILE\0" -/* 2045 */ "pidfile\0" -/* 2053 */ "Process priority\0" -/* 2070 */ "PRIORITY\0" -/* 2079 */ "priority\0" -/* 2088 */ "Set the time and quit\0" -/* 2110 */ "QUIT\0" -/* 2115 */ "quit\0" -/* 2120 */ "Broadcast/propagation delay\0" -/* 2148 */ "PROPAGATIONDELAY\0" -/* 2165 */ "propagationdelay\0" -/* 2182 */ "Save parsed configuration and quit\0" -/* 2217 */ "SAVECONFIGQUIT\0" -/* 2232 */ "saveconfigquit\0" -/* 2247 */ "Statistics file location\0" -/* 2272 */ "STATSDIR\0" -/* 2281 */ "statsdir\0" -/* 2290 */ "Trusted key number\0" -/* 2309 */ "TRUSTEDKEY\0" -/* 2320 */ "trustedkey\0" -/* 2331 */ "Run as userid (or userid:groupid)\0" -/* 2365 */ "USER\0" -/* 2370 */ "user\0" -/* 2375 */ "interval in seconds between scans for new or dropped interfaces\0" -/* 2439 */ "UPDATEINTERVAL\0" -/* 2454 */ "updateinterval\0" -/* 2469 */ "make ARG an ntp variable (RW)\0" -/* 2499 */ "VAR\0" -/* 2503 */ "var\0" -/* 2507 */ "make ARG an ntp variable (RW|DEF)\0" -/* 2541 */ "DVAR\0" -/* 2546 */ "dvar\0" -/* 2551 */ "Seconds to wait for first clock sync\0" -/* 2588 */ "WAIT_SYNC\0" -/* 2598 */ "wait-sync\0" -/* 2608 */ "Slew up to 600 seconds\0" -/* 2631 */ "SLEW\0" -/* 2636 */ "slew\0" -/* 2641 */ "Use CPU cycle counter (Windows only)\0" -/* 2678 */ "USEPCC\0" -/* 2685 */ "usepcc\0" -/* 2692 */ "Force CPU cycle counter use (Windows only)\0" -/* 2735 */ "PCCFREQ\0" -/* 2743 */ "pccfreq\0" -/* 2751 */ "Register with mDNS as a NTP server\0" -/* 2786 */ "MDNS\0" -/* 2791 */ "mdns\0" -/* 2796 */ "display extended usage information and exit\0" -/* 2840 */ "help\0" -/* 2845 */ "extended usage information passed thru pager\0" -/* 2890 */ "more-help\0" -/* 2900 */ "output version information and exit\0" -/* 2936 */ "version\0" -/* 2944 */ "NTPD\0" -/* 2949 */ "ntpd - NTP daemon program - Ver. 4.2.8p3\n" +/* 1012 */ "Force IPv4 DNS name resolution\0" +/* 1043 */ "IPV4\0" +/* 1048 */ "ipv4\0" +/* 1053 */ "Force IPv6 DNS name resolution\0" +/* 1084 */ "IPV6\0" +/* 1089 */ "ipv6\0" +/* 1094 */ "Require crypto authentication\0" +/* 1124 */ "AUTHREQ\0" +/* 1132 */ "authreq\0" +/* 1140 */ "Do not require crypto authentication\0" +/* 1177 */ "AUTHNOREQ\0" +/* 1187 */ "authnoreq\0" +/* 1197 */ "Allow us to sync to broadcast servers\0" +/* 1235 */ "BCASTSYNC\0" +/* 1245 */ "bcastsync\0" +/* 1255 */ "configuration file name\0" +/* 1279 */ "CONFIGFILE\0" +/* 1290 */ "configfile\0" +/* 1301 */ "Increase debug verbosity level\0" +/* 1332 */ "DEBUG_LEVEL\0" +/* 1344 */ "debug-level\0" +/* 1356 */ "Set the debug verbosity level\0" +/* 1386 */ "SET_DEBUG_LEVEL\0" +/* 1402 */ "set-debug-level\0" +/* 1418 */ "frequency drift file name\0" +/* 1444 */ "DRIFTFILE\0" +/* 1454 */ "driftfile\0" +/* 1464 */ "Allow the first adjustment to be Big\0" +/* 1501 */ "PANICGATE\0" +/* 1511 */ "panicgate\0" +/* 1521 */ "Step any initial offset correction.\0" +/* 1557 */ "FORCE_STEP_ONCE\0" +/* 1573 */ "force-step-once\0" +/* 1589 */ "Jail directory\0" +/* 1604 */ "JAILDIR\0" +/* 1612 */ "jaildir\0" +/* 1620 */ "built without --enable-clockctl or --enable-linuxcaps or --enable-solarisprivs\0" +/* 1699 */ "Listen on an interface name or address\0" +/* 1738 */ "INTERFACE\0" +/* 1748 */ "interface\0" +/* 1758 */ "path to symmetric keys\0" +/* 1781 */ "KEYFILE\0" +/* 1789 */ "keyfile\0" +/* 1797 */ "path to the log file\0" +/* 1818 */ "LOGFILE\0" +/* 1826 */ "logfile\0" +/* 1834 */ "Do not listen to virtual interfaces\0" +/* 1870 */ "NOVIRTUALIPS\0" +/* 1883 */ "novirtualips\0" +/* 1896 */ "Modify Multimedia Timer (Windows only)\0" +/* 1935 */ "MODIFYMMTIMER\0" +/* 1949 */ "modifymmtimer\0" +/* 1963 */ "Do not fork\0" +/* 1975 */ "NOFORK\0" +/* 1982 */ "nofork\0" +/* 1989 */ "Run at high priority\0" +/* 2010 */ "NICE\0" +/* 2015 */ "nice\0" +/* 2020 */ "path to the PID file\0" +/* 2041 */ "PIDFILE\0" +/* 2049 */ "pidfile\0" +/* 2057 */ "Process priority\0" +/* 2074 */ "PRIORITY\0" +/* 2083 */ "priority\0" +/* 2092 */ "Set the time and quit\0" +/* 2114 */ "QUIT\0" +/* 2119 */ "quit\0" +/* 2124 */ "Broadcast/propagation delay\0" +/* 2152 */ "PROPAGATIONDELAY\0" +/* 2169 */ "propagationdelay\0" +/* 2186 */ "Save parsed configuration and quit\0" +/* 2221 */ "SAVECONFIGQUIT\0" +/* 2236 */ "saveconfigquit\0" +/* 2251 */ "Statistics file location\0" +/* 2276 */ "STATSDIR\0" +/* 2285 */ "statsdir\0" +/* 2294 */ "Trusted key number\0" +/* 2313 */ "TRUSTEDKEY\0" +/* 2324 */ "trustedkey\0" +/* 2335 */ "Run as userid (or userid:groupid)\0" +/* 2369 */ "USER\0" +/* 2374 */ "user\0" +/* 2379 */ "interval in seconds between scans for new or dropped interfaces\0" +/* 2443 */ "UPDATEINTERVAL\0" +/* 2458 */ "updateinterval\0" +/* 2473 */ "make ARG an ntp variable (RW)\0" +/* 2503 */ "VAR\0" +/* 2507 */ "var\0" +/* 2511 */ "make ARG an ntp variable (RW|DEF)\0" +/* 2545 */ "DVAR\0" +/* 2550 */ "dvar\0" +/* 2555 */ "Seconds to wait for first clock sync\0" +/* 2592 */ "WAIT_SYNC\0" +/* 2602 */ "wait-sync\0" +/* 2612 */ "Slew up to 600 seconds\0" +/* 2635 */ "SLEW\0" +/* 2640 */ "slew\0" +/* 2645 */ "Use CPU cycle counter (Windows only)\0" +/* 2682 */ "USEPCC\0" +/* 2689 */ "usepcc\0" +/* 2696 */ "Force CPU cycle counter use (Windows only)\0" +/* 2739 */ "PCCFREQ\0" +/* 2747 */ "pccfreq\0" +/* 2755 */ "Register with mDNS as a NTP server\0" +/* 2790 */ "MDNS\0" +/* 2795 */ "mdns\0" +/* 2800 */ "display extended usage information and exit\0" +/* 2844 */ "help\0" +/* 2849 */ "extended usage information passed thru pager\0" +/* 2894 */ "more-help\0" +/* 2904 */ "output version information and exit\0" +/* 2940 */ "version\0" +/* 2948 */ "NTPD\0" +/* 2953 */ "ntpd - NTP daemon program - Ver. 4.2.8p4-RC1\n" "Usage: %s [ - [] | --[{=| }] ]... \\\n" "\t\t[ ... ]\n\0" -/* 3080 */ "http://bugs.ntp.org, bugs@ntp.org\0" -/* 3114 */ "\n\0" -/* 3116 */ "ntpd 4.2.8p3"; +/* 3088 */ "http://bugs.ntp.org, bugs@ntp.org\0" +/* 3122 */ "\n\0" +/* 3124 */ "ntpd 4.2.8p4-RC1"; /** * ipv4 option description with * "Must also have options" and "Incompatible options": */ /** Descriptive text for the ipv4 option */ -#define IPV4_DESC (ntpd_opt_strs+1008) +#define IPV4_DESC (ntpd_opt_strs+1012) /** Upper-cased name for the ipv4 option */ -#define IPV4_NAME (ntpd_opt_strs+1039) +#define IPV4_NAME (ntpd_opt_strs+1043) /** Name string for the ipv4 option */ -#define IPV4_name (ntpd_opt_strs+1044) +#define IPV4_name (ntpd_opt_strs+1048) /** Other options that appear in conjunction with the ipv4 option */ static int const aIpv4CantList[] = { INDEX_OPT_IPV6, NO_EQUIVALENT }; @@ -233,11 +233,11 @@ static int const aIpv4CantList[] = { * "Must also have options" and "Incompatible options": */ /** Descriptive text for the ipv6 option */ -#define IPV6_DESC (ntpd_opt_strs+1049) +#define IPV6_DESC (ntpd_opt_strs+1053) /** Upper-cased name for the ipv6 option */ -#define IPV6_NAME (ntpd_opt_strs+1080) +#define IPV6_NAME (ntpd_opt_strs+1084) /** Name string for the ipv6 option */ -#define IPV6_name (ntpd_opt_strs+1085) +#define IPV6_name (ntpd_opt_strs+1089) /** Other options that appear in conjunction with the ipv6 option */ static int const aIpv6CantList[] = { INDEX_OPT_IPV4, NO_EQUIVALENT }; @@ -249,11 +249,11 @@ static int const aIpv6CantList[] = { * "Must also have options" and "Incompatible options": */ /** Descriptive text for the authreq option */ -#define AUTHREQ_DESC (ntpd_opt_strs+1090) +#define AUTHREQ_DESC (ntpd_opt_strs+1094) /** Upper-cased name for the authreq option */ -#define AUTHREQ_NAME (ntpd_opt_strs+1120) +#define AUTHREQ_NAME (ntpd_opt_strs+1124) /** Name string for the authreq option */ -#define AUTHREQ_name (ntpd_opt_strs+1128) +#define AUTHREQ_name (ntpd_opt_strs+1132) /** Other options that appear in conjunction with the authreq option */ static int const aAuthreqCantList[] = { INDEX_OPT_AUTHNOREQ, NO_EQUIVALENT }; @@ -265,11 +265,11 @@ static int const aAuthreqCantList[] = { * "Must also have options" and "Incompatible options": */ /** Descriptive text for the authnoreq option */ -#define AUTHNOREQ_DESC (ntpd_opt_strs+1136) +#define AUTHNOREQ_DESC (ntpd_opt_strs+1140) /** Upper-cased name for the authnoreq option */ -#define AUTHNOREQ_NAME (ntpd_opt_strs+1173) +#define AUTHNOREQ_NAME (ntpd_opt_strs+1177) /** Name string for the authnoreq option */ -#define AUTHNOREQ_name (ntpd_opt_strs+1183) +#define AUTHNOREQ_name (ntpd_opt_strs+1187) /** Other options that appear in conjunction with the authnoreq option */ static int const aAuthnoreqCantList[] = { INDEX_OPT_AUTHREQ, NO_EQUIVALENT }; @@ -280,11 +280,11 @@ static int const aAuthnoreqCantList[] = { * bcastsync option description: */ /** Descriptive text for the bcastsync option */ -#define BCASTSYNC_DESC (ntpd_opt_strs+1193) +#define BCASTSYNC_DESC (ntpd_opt_strs+1197) /** Upper-cased name for the bcastsync option */ -#define BCASTSYNC_NAME (ntpd_opt_strs+1231) +#define BCASTSYNC_NAME (ntpd_opt_strs+1235) /** Name string for the bcastsync option */ -#define BCASTSYNC_name (ntpd_opt_strs+1241) +#define BCASTSYNC_name (ntpd_opt_strs+1245) /** Compiled in flag settings for the bcastsync option */ #define BCASTSYNC_FLAGS (OPTST_DISABLED) @@ -292,11 +292,11 @@ static int const aAuthnoreqCantList[] = { * configfile option description: */ /** Descriptive text for the configfile option */ -#define CONFIGFILE_DESC (ntpd_opt_strs+1251) +#define CONFIGFILE_DESC (ntpd_opt_strs+1255) /** Upper-cased name for the configfile option */ -#define CONFIGFILE_NAME (ntpd_opt_strs+1275) +#define CONFIGFILE_NAME (ntpd_opt_strs+1279) /** Name string for the configfile option */ -#define CONFIGFILE_name (ntpd_opt_strs+1286) +#define CONFIGFILE_name (ntpd_opt_strs+1290) /** Compiled in flag settings for the configfile option */ #define CONFIGFILE_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -305,11 +305,11 @@ static int const aAuthnoreqCantList[] = { * debug-level option description: */ /** Descriptive text for the debug-level option */ -#define DEBUG_LEVEL_DESC (ntpd_opt_strs+1297) +#define DEBUG_LEVEL_DESC (ntpd_opt_strs+1301) /** Upper-cased name for the debug-level option */ -#define DEBUG_LEVEL_NAME (ntpd_opt_strs+1328) +#define DEBUG_LEVEL_NAME (ntpd_opt_strs+1332) /** Name string for the debug-level option */ -#define DEBUG_LEVEL_name (ntpd_opt_strs+1340) +#define DEBUG_LEVEL_name (ntpd_opt_strs+1344) /** Compiled in flag settings for the debug-level option */ #define DEBUG_LEVEL_FLAGS (OPTST_DISABLED) @@ -317,11 +317,11 @@ static int const aAuthnoreqCantList[] = { * set-debug-level option description: */ /** Descriptive text for the set-debug-level option */ -#define SET_DEBUG_LEVEL_DESC (ntpd_opt_strs+1352) +#define SET_DEBUG_LEVEL_DESC (ntpd_opt_strs+1356) /** Upper-cased name for the set-debug-level option */ -#define SET_DEBUG_LEVEL_NAME (ntpd_opt_strs+1382) +#define SET_DEBUG_LEVEL_NAME (ntpd_opt_strs+1386) /** Name string for the set-debug-level option */ -#define SET_DEBUG_LEVEL_name (ntpd_opt_strs+1398) +#define SET_DEBUG_LEVEL_name (ntpd_opt_strs+1402) /** Compiled in flag settings for the set-debug-level option */ #define SET_DEBUG_LEVEL_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC)) @@ -330,11 +330,11 @@ static int const aAuthnoreqCantList[] = { * driftfile option description: */ /** Descriptive text for the driftfile option */ -#define DRIFTFILE_DESC (ntpd_opt_strs+1414) +#define DRIFTFILE_DESC (ntpd_opt_strs+1418) /** Upper-cased name for the driftfile option */ -#define DRIFTFILE_NAME (ntpd_opt_strs+1440) +#define DRIFTFILE_NAME (ntpd_opt_strs+1444) /** Name string for the driftfile option */ -#define DRIFTFILE_name (ntpd_opt_strs+1450) +#define DRIFTFILE_name (ntpd_opt_strs+1454) /** Compiled in flag settings for the driftfile option */ #define DRIFTFILE_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -343,11 +343,11 @@ static int const aAuthnoreqCantList[] = { * panicgate option description: */ /** Descriptive text for the panicgate option */ -#define PANICGATE_DESC (ntpd_opt_strs+1460) +#define PANICGATE_DESC (ntpd_opt_strs+1464) /** Upper-cased name for the panicgate option */ -#define PANICGATE_NAME (ntpd_opt_strs+1497) +#define PANICGATE_NAME (ntpd_opt_strs+1501) /** Name string for the panicgate option */ -#define PANICGATE_name (ntpd_opt_strs+1507) +#define PANICGATE_name (ntpd_opt_strs+1511) /** Compiled in flag settings for the panicgate option */ #define PANICGATE_FLAGS (OPTST_DISABLED) @@ -355,11 +355,11 @@ static int const aAuthnoreqCantList[] = { * force_step_once option description: */ /** Descriptive text for the force_step_once option */ -#define FORCE_STEP_ONCE_DESC (ntpd_opt_strs+1517) +#define FORCE_STEP_ONCE_DESC (ntpd_opt_strs+1521) /** Upper-cased name for the force_step_once option */ -#define FORCE_STEP_ONCE_NAME (ntpd_opt_strs+1553) +#define FORCE_STEP_ONCE_NAME (ntpd_opt_strs+1557) /** Name string for the force_step_once option */ -#define FORCE_STEP_ONCE_name (ntpd_opt_strs+1569) +#define FORCE_STEP_ONCE_name (ntpd_opt_strs+1573) /** Compiled in flag settings for the force_step_once option */ #define FORCE_STEP_ONCE_FLAGS (OPTST_DISABLED) @@ -368,11 +368,11 @@ static int const aAuthnoreqCantList[] = { */ #ifdef HAVE_DROPROOT /** Descriptive text for the jaildir option */ -#define JAILDIR_DESC (ntpd_opt_strs+1585) +#define JAILDIR_DESC (ntpd_opt_strs+1589) /** Upper-cased name for the jaildir option */ -#define JAILDIR_NAME (ntpd_opt_strs+1600) +#define JAILDIR_NAME (ntpd_opt_strs+1604) /** Name string for the jaildir option */ -#define JAILDIR_name (ntpd_opt_strs+1608) +#define JAILDIR_name (ntpd_opt_strs+1612) /** Compiled in flag settings for the jaildir option */ #define JAILDIR_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -381,19 +381,19 @@ static int const aAuthnoreqCantList[] = { #define JAILDIR_FLAGS (OPTST_OMITTED | OPTST_NO_INIT) #define JAILDIR_NAME NULL /** Descriptive text for the jaildir option */ -#define JAILDIR_DESC (ntpd_opt_strs+1616) -#define JAILDIR_name (ntpd_opt_strs+1608) +#define JAILDIR_DESC (ntpd_opt_strs+1620) +#define JAILDIR_name (ntpd_opt_strs+1612) #endif /* HAVE_DROPROOT */ /** * interface option description: */ /** Descriptive text for the interface option */ -#define INTERFACE_DESC (ntpd_opt_strs+1695) +#define INTERFACE_DESC (ntpd_opt_strs+1699) /** Upper-cased name for the interface option */ -#define INTERFACE_NAME (ntpd_opt_strs+1734) +#define INTERFACE_NAME (ntpd_opt_strs+1738) /** Name string for the interface option */ -#define INTERFACE_name (ntpd_opt_strs+1744) +#define INTERFACE_name (ntpd_opt_strs+1748) /** Compiled in flag settings for the interface option */ #define INTERFACE_FLAGS (OPTST_DISABLED | OPTST_STACKED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -402,11 +402,11 @@ static int const aAuthnoreqCantList[] = { * keyfile option description: */ /** Descriptive text for the keyfile option */ -#define KEYFILE_DESC (ntpd_opt_strs+1754) +#define KEYFILE_DESC (ntpd_opt_strs+1758) /** Upper-cased name for the keyfile option */ -#define KEYFILE_NAME (ntpd_opt_strs+1777) +#define KEYFILE_NAME (ntpd_opt_strs+1781) /** Name string for the keyfile option */ -#define KEYFILE_name (ntpd_opt_strs+1785) +#define KEYFILE_name (ntpd_opt_strs+1789) /** Compiled in flag settings for the keyfile option */ #define KEYFILE_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -415,11 +415,11 @@ static int const aAuthnoreqCantList[] = { * logfile option description: */ /** Descriptive text for the logfile option */ -#define LOGFILE_DESC (ntpd_opt_strs+1793) +#define LOGFILE_DESC (ntpd_opt_strs+1797) /** Upper-cased name for the logfile option */ -#define LOGFILE_NAME (ntpd_opt_strs+1814) +#define LOGFILE_NAME (ntpd_opt_strs+1818) /** Name string for the logfile option */ -#define LOGFILE_name (ntpd_opt_strs+1822) +#define LOGFILE_name (ntpd_opt_strs+1826) /** Compiled in flag settings for the logfile option */ #define LOGFILE_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -428,11 +428,11 @@ static int const aAuthnoreqCantList[] = { * novirtualips option description: */ /** Descriptive text for the novirtualips option */ -#define NOVIRTUALIPS_DESC (ntpd_opt_strs+1830) +#define NOVIRTUALIPS_DESC (ntpd_opt_strs+1834) /** Upper-cased name for the novirtualips option */ -#define NOVIRTUALIPS_NAME (ntpd_opt_strs+1866) +#define NOVIRTUALIPS_NAME (ntpd_opt_strs+1870) /** Name string for the novirtualips option */ -#define NOVIRTUALIPS_name (ntpd_opt_strs+1879) +#define NOVIRTUALIPS_name (ntpd_opt_strs+1883) /** Compiled in flag settings for the novirtualips option */ #define NOVIRTUALIPS_FLAGS (OPTST_DISABLED) @@ -441,11 +441,11 @@ static int const aAuthnoreqCantList[] = { */ #ifdef SYS_WINNT /** Descriptive text for the modifymmtimer option */ -#define MODIFYMMTIMER_DESC (ntpd_opt_strs+1892) +#define MODIFYMMTIMER_DESC (ntpd_opt_strs+1896) /** Upper-cased name for the modifymmtimer option */ -#define MODIFYMMTIMER_NAME (ntpd_opt_strs+1931) +#define MODIFYMMTIMER_NAME (ntpd_opt_strs+1935) /** Name string for the modifymmtimer option */ -#define MODIFYMMTIMER_name (ntpd_opt_strs+1945) +#define MODIFYMMTIMER_name (ntpd_opt_strs+1949) /** Compiled in flag settings for the modifymmtimer option */ #define MODIFYMMTIMER_FLAGS (OPTST_DISABLED) @@ -461,11 +461,11 @@ static int const aAuthnoreqCantList[] = { * "Must also have options" and "Incompatible options": */ /** Descriptive text for the nofork option */ -#define NOFORK_DESC (ntpd_opt_strs+1959) +#define NOFORK_DESC (ntpd_opt_strs+1963) /** Upper-cased name for the nofork option */ -#define NOFORK_NAME (ntpd_opt_strs+1971) +#define NOFORK_NAME (ntpd_opt_strs+1975) /** Name string for the nofork option */ -#define NOFORK_name (ntpd_opt_strs+1978) +#define NOFORK_name (ntpd_opt_strs+1982) /** Other options that appear in conjunction with the nofork option */ static int const aNoforkCantList[] = { INDEX_OPT_WAIT_SYNC, NO_EQUIVALENT }; @@ -476,11 +476,11 @@ static int const aNoforkCantList[] = { * nice option description: */ /** Descriptive text for the nice option */ -#define NICE_DESC (ntpd_opt_strs+1985) +#define NICE_DESC (ntpd_opt_strs+1989) /** Upper-cased name for the nice option */ -#define NICE_NAME (ntpd_opt_strs+2006) +#define NICE_NAME (ntpd_opt_strs+2010) /** Name string for the nice option */ -#define NICE_name (ntpd_opt_strs+2011) +#define NICE_name (ntpd_opt_strs+2015) /** Compiled in flag settings for the nice option */ #define NICE_FLAGS (OPTST_DISABLED) @@ -488,11 +488,11 @@ static int const aNoforkCantList[] = { * pidfile option description: */ /** Descriptive text for the pidfile option */ -#define PIDFILE_DESC (ntpd_opt_strs+2016) +#define PIDFILE_DESC (ntpd_opt_strs+2020) /** Upper-cased name for the pidfile option */ -#define PIDFILE_NAME (ntpd_opt_strs+2037) +#define PIDFILE_NAME (ntpd_opt_strs+2041) /** Name string for the pidfile option */ -#define PIDFILE_name (ntpd_opt_strs+2045) +#define PIDFILE_name (ntpd_opt_strs+2049) /** Compiled in flag settings for the pidfile option */ #define PIDFILE_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -501,11 +501,11 @@ static int const aNoforkCantList[] = { * priority option description: */ /** Descriptive text for the priority option */ -#define PRIORITY_DESC (ntpd_opt_strs+2053) +#define PRIORITY_DESC (ntpd_opt_strs+2057) /** Upper-cased name for the priority option */ -#define PRIORITY_NAME (ntpd_opt_strs+2070) +#define PRIORITY_NAME (ntpd_opt_strs+2074) /** Name string for the priority option */ -#define PRIORITY_name (ntpd_opt_strs+2079) +#define PRIORITY_name (ntpd_opt_strs+2083) /** Compiled in flag settings for the priority option */ #define PRIORITY_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC)) @@ -515,11 +515,11 @@ static int const aNoforkCantList[] = { * "Must also have options" and "Incompatible options": */ /** Descriptive text for the quit option */ -#define QUIT_DESC (ntpd_opt_strs+2088) +#define QUIT_DESC (ntpd_opt_strs+2092) /** Upper-cased name for the quit option */ -#define QUIT_NAME (ntpd_opt_strs+2110) +#define QUIT_NAME (ntpd_opt_strs+2114) /** Name string for the quit option */ -#define QUIT_name (ntpd_opt_strs+2115) +#define QUIT_name (ntpd_opt_strs+2119) /** Other options that appear in conjunction with the quit option */ static int const aQuitCantList[] = { INDEX_OPT_SAVECONFIGQUIT, @@ -531,11 +531,11 @@ static int const aQuitCantList[] = { * propagationdelay option description: */ /** Descriptive text for the propagationdelay option */ -#define PROPAGATIONDELAY_DESC (ntpd_opt_strs+2120) +#define PROPAGATIONDELAY_DESC (ntpd_opt_strs+2124) /** Upper-cased name for the propagationdelay option */ -#define PROPAGATIONDELAY_NAME (ntpd_opt_strs+2148) +#define PROPAGATIONDELAY_NAME (ntpd_opt_strs+2152) /** Name string for the propagationdelay option */ -#define PROPAGATIONDELAY_name (ntpd_opt_strs+2165) +#define PROPAGATIONDELAY_name (ntpd_opt_strs+2169) /** Compiled in flag settings for the propagationdelay option */ #define PROPAGATIONDELAY_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -546,11 +546,11 @@ static int const aQuitCantList[] = { */ #ifdef SAVECONFIG /** Descriptive text for the saveconfigquit option */ -#define SAVECONFIGQUIT_DESC (ntpd_opt_strs+2182) +#define SAVECONFIGQUIT_DESC (ntpd_opt_strs+2186) /** Upper-cased name for the saveconfigquit option */ -#define SAVECONFIGQUIT_NAME (ntpd_opt_strs+2217) +#define SAVECONFIGQUIT_NAME (ntpd_opt_strs+2221) /** Name string for the saveconfigquit option */ -#define SAVECONFIGQUIT_name (ntpd_opt_strs+2232) +#define SAVECONFIGQUIT_name (ntpd_opt_strs+2236) /** Other options that appear in conjunction with the saveconfigquit option */ static int const aSaveconfigquitCantList[] = { INDEX_OPT_QUIT, @@ -571,11 +571,11 @@ static int const aSaveconfigquitCantList[] = { * statsdir option description: */ /** Descriptive text for the statsdir option */ -#define STATSDIR_DESC (ntpd_opt_strs+2247) +#define STATSDIR_DESC (ntpd_opt_strs+2251) /** Upper-cased name for the statsdir option */ -#define STATSDIR_NAME (ntpd_opt_strs+2272) +#define STATSDIR_NAME (ntpd_opt_strs+2276) /** Name string for the statsdir option */ -#define STATSDIR_name (ntpd_opt_strs+2281) +#define STATSDIR_name (ntpd_opt_strs+2285) /** Compiled in flag settings for the statsdir option */ #define STATSDIR_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -584,11 +584,11 @@ static int const aSaveconfigquitCantList[] = { * trustedkey option description: */ /** Descriptive text for the trustedkey option */ -#define TRUSTEDKEY_DESC (ntpd_opt_strs+2290) +#define TRUSTEDKEY_DESC (ntpd_opt_strs+2294) /** Upper-cased name for the trustedkey option */ -#define TRUSTEDKEY_NAME (ntpd_opt_strs+2309) +#define TRUSTEDKEY_NAME (ntpd_opt_strs+2313) /** Name string for the trustedkey option */ -#define TRUSTEDKEY_name (ntpd_opt_strs+2320) +#define TRUSTEDKEY_name (ntpd_opt_strs+2324) /** Compiled in flag settings for the trustedkey option */ #define TRUSTEDKEY_FLAGS (OPTST_DISABLED | OPTST_STACKED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -598,11 +598,11 @@ static int const aSaveconfigquitCantList[] = { */ #ifdef HAVE_DROPROOT /** Descriptive text for the user option */ -#define USER_DESC (ntpd_opt_strs+2331) +#define USER_DESC (ntpd_opt_strs+2335) /** Upper-cased name for the user option */ -#define USER_NAME (ntpd_opt_strs+2365) +#define USER_NAME (ntpd_opt_strs+2369) /** Name string for the user option */ -#define USER_name (ntpd_opt_strs+2370) +#define USER_name (ntpd_opt_strs+2374) /** Compiled in flag settings for the user option */ #define USER_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -611,19 +611,19 @@ static int const aSaveconfigquitCantList[] = { #define USER_FLAGS (OPTST_OMITTED | OPTST_NO_INIT) #define USER_NAME NULL /** Descriptive text for the user option */ -#define USER_DESC (ntpd_opt_strs+1616) -#define USER_name (ntpd_opt_strs+2370) +#define USER_DESC (ntpd_opt_strs+1620) +#define USER_name (ntpd_opt_strs+2374) #endif /* HAVE_DROPROOT */ /** * updateinterval option description: */ /** Descriptive text for the updateinterval option */ -#define UPDATEINTERVAL_DESC (ntpd_opt_strs+2375) +#define UPDATEINTERVAL_DESC (ntpd_opt_strs+2379) /** Upper-cased name for the updateinterval option */ -#define UPDATEINTERVAL_NAME (ntpd_opt_strs+2439) +#define UPDATEINTERVAL_NAME (ntpd_opt_strs+2443) /** Name string for the updateinterval option */ -#define UPDATEINTERVAL_name (ntpd_opt_strs+2454) +#define UPDATEINTERVAL_name (ntpd_opt_strs+2458) /** Compiled in flag settings for the updateinterval option */ #define UPDATEINTERVAL_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC)) @@ -632,11 +632,11 @@ static int const aSaveconfigquitCantList[] = { * var option description: */ /** Descriptive text for the var option */ -#define VAR_DESC (ntpd_opt_strs+2469) +#define VAR_DESC (ntpd_opt_strs+2473) /** Upper-cased name for the var option */ -#define VAR_NAME (ntpd_opt_strs+2499) +#define VAR_NAME (ntpd_opt_strs+2503) /** Name string for the var option */ -#define VAR_name (ntpd_opt_strs+2503) +#define VAR_name (ntpd_opt_strs+2507) /** Compiled in flag settings for the var option */ #define VAR_FLAGS (OPTST_DISABLED | OPTST_STACKED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -645,11 +645,11 @@ static int const aSaveconfigquitCantList[] = { * dvar option description: */ /** Descriptive text for the dvar option */ -#define DVAR_DESC (ntpd_opt_strs+2507) +#define DVAR_DESC (ntpd_opt_strs+2511) /** Upper-cased name for the dvar option */ -#define DVAR_NAME (ntpd_opt_strs+2541) +#define DVAR_NAME (ntpd_opt_strs+2545) /** Name string for the dvar option */ -#define DVAR_name (ntpd_opt_strs+2546) +#define DVAR_name (ntpd_opt_strs+2550) /** Compiled in flag settings for the dvar option */ #define DVAR_FLAGS (OPTST_DISABLED | OPTST_STACKED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -660,11 +660,11 @@ static int const aSaveconfigquitCantList[] = { */ #ifdef HAVE_WORKING_FORK /** Descriptive text for the wait-sync option */ -#define WAIT_SYNC_DESC (ntpd_opt_strs+2551) +#define WAIT_SYNC_DESC (ntpd_opt_strs+2555) /** Upper-cased name for the wait-sync option */ -#define WAIT_SYNC_NAME (ntpd_opt_strs+2588) +#define WAIT_SYNC_NAME (ntpd_opt_strs+2592) /** Name string for the wait-sync option */ -#define WAIT_SYNC_name (ntpd_opt_strs+2598) +#define WAIT_SYNC_name (ntpd_opt_strs+2602) /** Other options that appear in conjunction with the wait-sync option */ static int const aWait_SyncCantList[] = { INDEX_OPT_NOFORK, @@ -686,11 +686,11 @@ static int const aWait_SyncCantList[] = { * slew option description: */ /** Descriptive text for the slew option */ -#define SLEW_DESC (ntpd_opt_strs+2608) +#define SLEW_DESC (ntpd_opt_strs+2612) /** Upper-cased name for the slew option */ -#define SLEW_NAME (ntpd_opt_strs+2631) +#define SLEW_NAME (ntpd_opt_strs+2635) /** Name string for the slew option */ -#define SLEW_name (ntpd_opt_strs+2636) +#define SLEW_name (ntpd_opt_strs+2640) /** Compiled in flag settings for the slew option */ #define SLEW_FLAGS (OPTST_DISABLED) @@ -699,11 +699,11 @@ static int const aWait_SyncCantList[] = { */ #ifdef SYS_WINNT /** Descriptive text for the usepcc option */ -#define USEPCC_DESC (ntpd_opt_strs+2641) +#define USEPCC_DESC (ntpd_opt_strs+2645) /** Upper-cased name for the usepcc option */ -#define USEPCC_NAME (ntpd_opt_strs+2678) +#define USEPCC_NAME (ntpd_opt_strs+2682) /** Name string for the usepcc option */ -#define USEPCC_name (ntpd_opt_strs+2685) +#define USEPCC_name (ntpd_opt_strs+2689) /** Compiled in flag settings for the usepcc option */ #define USEPCC_FLAGS (OPTST_DISABLED) @@ -719,11 +719,11 @@ static int const aWait_SyncCantList[] = { */ #ifdef SYS_WINNT /** Descriptive text for the pccfreq option */ -#define PCCFREQ_DESC (ntpd_opt_strs+2692) +#define PCCFREQ_DESC (ntpd_opt_strs+2696) /** Upper-cased name for the pccfreq option */ -#define PCCFREQ_NAME (ntpd_opt_strs+2735) +#define PCCFREQ_NAME (ntpd_opt_strs+2739) /** Name string for the pccfreq option */ -#define PCCFREQ_name (ntpd_opt_strs+2743) +#define PCCFREQ_name (ntpd_opt_strs+2747) /** Compiled in flag settings for the pccfreq option */ #define PCCFREQ_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) @@ -740,11 +740,11 @@ static int const aWait_SyncCantList[] = { */ #ifdef HAVE_DNSREGISTRATION /** Descriptive text for the mdns option */ -#define MDNS_DESC (ntpd_opt_strs+2751) +#define MDNS_DESC (ntpd_opt_strs+2755) /** Upper-cased name for the mdns option */ -#define MDNS_NAME (ntpd_opt_strs+2786) +#define MDNS_NAME (ntpd_opt_strs+2790) /** Name string for the mdns option */ -#define MDNS_name (ntpd_opt_strs+2791) +#define MDNS_name (ntpd_opt_strs+2795) /** Compiled in flag settings for the mdns option */ #define MDNS_FLAGS (OPTST_DISABLED) @@ -758,11 +758,11 @@ static int const aWait_SyncCantList[] = { /* * Help/More_Help/Version option descriptions: */ -#define HELP_DESC (ntpd_opt_strs+2796) -#define HELP_name (ntpd_opt_strs+2840) +#define HELP_DESC (ntpd_opt_strs+2800) +#define HELP_name (ntpd_opt_strs+2844) #ifdef HAVE_WORKING_FORK -#define MORE_HELP_DESC (ntpd_opt_strs+2845) -#define MORE_HELP_name (ntpd_opt_strs+2890) +#define MORE_HELP_DESC (ntpd_opt_strs+2849) +#define MORE_HELP_name (ntpd_opt_strs+2894) #define MORE_HELP_FLAGS (OPTST_IMM | OPTST_NO_INIT) #else #define MORE_HELP_DESC HELP_DESC @@ -775,8 +775,8 @@ static int const aWait_SyncCantList[] = { # define VER_FLAGS (OPTST_SET_ARGTYPE(OPARG_TYPE_STRING) | \ OPTST_ARG_OPTIONAL | OPTST_IMM | OPTST_NO_INIT) #endif -#define VER_DESC (ntpd_opt_strs+2900) -#define VER_name (ntpd_opt_strs+2936) +#define VER_DESC (ntpd_opt_strs+2904) +#define VER_name (ntpd_opt_strs+2940) /** * Declare option callback procedures */ @@ -1258,21 +1258,21 @@ static tOptDesc optDesc[OPTION_CT] = { /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** Reference to the upper cased version of ntpd. */ -#define zPROGNAME (ntpd_opt_strs+2944) +#define zPROGNAME (ntpd_opt_strs+2948) /** Reference to the title line for ntpd usage. */ -#define zUsageTitle (ntpd_opt_strs+2949) +#define zUsageTitle (ntpd_opt_strs+2953) /** There is no ntpd configuration file. */ #define zRcName NULL /** There are no directories to search for ntpd config files. */ #define apzHomeList NULL /** The ntpd program bug email address. */ -#define zBugsAddr (ntpd_opt_strs+3080) +#define zBugsAddr (ntpd_opt_strs+3088) /** Clarification/explanation of what ntpd does. */ -#define zExplain (ntpd_opt_strs+3114) +#define zExplain (ntpd_opt_strs+3122) /** Extra detail explaining what ntpd does. */ #define zDetail (NULL) /** The full version string for ntpd. */ -#define zFullVersion (ntpd_opt_strs+3116) +#define zFullVersion (ntpd_opt_strs+3124) /* extracted from optcode.tlib near line 364 */ #if defined(ENABLE_NLS) @@ -1529,7 +1529,7 @@ static void bogus_function(void) { translate option names. */ /* referenced via ntpdOptions.pzCopyright */ - puts(_("ntpd 4.2.8p3\n\ + puts(_("ntpd 4.2.8p4-RC1\n\ Copyright (C) 1992-2015 The University of Delaware and Network Time Foundation, all rights reserved.\n\ This is free software. It is licensed for use, modification and\n\ redistribution under the terms of the NTP License, copies of which\n\ @@ -1670,7 +1670,7 @@ implied warranty.\n")); puts(_("output version information and exit")); /* referenced via ntpdOptions.pzUsageTitle */ - puts(_("ntpd - NTP daemon program - Ver. 4.2.8p3\n\ + puts(_("ntpd - NTP daemon program - Ver. 4.2.8p4-RC1\n\ Usage: %s [ - [] | --[{=| }] ]... \\\n\ \t\t[ ... ]\n")); @@ -1678,7 +1678,7 @@ Usage: %s [ - [] | --[{=| }] ]... \\\n\ puts(_("\n")); /* referenced via ntpdOptions.pzFullVersion */ - puts(_("ntpd 4.2.8p3")); + puts(_("ntpd 4.2.8p4-RC1")); /* referenced via ntpdOptions.pzFullUsage */ puts(_("<<>>")); diff --git a/ntpd/ntpd-opts.h b/ntpd/ntpd-opts.h index 21142d8c4..46422497d 100644 --- a/ntpd/ntpd-opts.h +++ b/ntpd/ntpd-opts.h @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (ntpd-opts.h) * - * It has been AutoGen-ed June 29, 2015 at 04:28:18 PM by AutoGen 5.18.5 + * It has been AutoGen-ed October 6, 2015 at 06:02:26 AM by AutoGen 5.18.5 * From the definitions ntpd-opts.def * and the template file options * @@ -106,9 +106,9 @@ typedef enum { /** count of all options for ntpd */ #define OPTION_CT 38 /** ntpd version */ -#define NTPD_VERSION "4.2.8p3" +#define NTPD_VERSION "4.2.8p4-RC1" /** Full ntpd version text */ -#define NTPD_FULL_VERSION "ntpd 4.2.8p3" +#define NTPD_FULL_VERSION "ntpd 4.2.8p4-RC1" /** * Interface defines for all options. Replace "n" with the UPPER_CASED diff --git a/ntpd/ntpd.1ntpdman b/ntpd/ntpd.1ntpdman index c231b7fd8..4a1393e43 100644 --- a/ntpd/ntpd.1ntpdman +++ b/ntpd/ntpd.1ntpdman @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH ntpd 1ntpdman "29 Jun 2015" "4.2.8p3" "User Commands" +.TH ntpd 1ntpdman "06 Oct 2015" "4.2.8p4-RC1" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-LZaapD/ag-XZa4nD) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-XGaqiB/ag-sHaihB) .\" -.\" It has been AutoGen-ed June 29, 2015 at 04:30:24 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed October 6, 2015 at 06:06:33 AM by AutoGen 5.18.5 .\" From the definitions ntpd-opts.def .\" and the template file agman-cmd.tpl .SH NAME @@ -602,6 +602,8 @@ when you have permission to do so from the owner of the target host. Finally, in the past many startup scripts would run \fCntpdate\f[]\fR(1ntpdatemdoc)\f[] +or +\fCsntp\f[]\fR(1sntpmdoc)\f[] to get the system clock close to correct before starting \fCntpd\f[]\fR(1ntpdmdoc)\f[], but this was never more than a mediocre hack and is no longer needed. @@ -611,7 +613,9 @@ and you still need to set the system time before starting \f\*[B-Font]ntpd\fP, please open a bug report and document what is going on, and then look at using -\fCsntp\f[]\fR(1sntpmdoc)\f[]. +\fCsntp\f[]\fR(1sntpmdoc)\f[] +if you really need to set the clock before starting +\f\*[B-Font]ntpd\fP. .sp \n(Ppu .ne 2 diff --git a/ntpd/ntpd.1ntpdmdoc b/ntpd/ntpd.1ntpdmdoc index 08d7655df..1a85795cd 100644 --- a/ntpd/ntpd.1ntpdmdoc +++ b/ntpd/ntpd.1ntpdmdoc @@ -1,9 +1,9 @@ -.Dd June 29 2015 +.Dd October 6 2015 .Dt NTPD 1ntpdmdoc User Commands .Os .\" EDIT THIS FILE WITH CAUTION (ntpd-opts.mdoc) .\" -.\" It has been AutoGen-ed June 29, 2015 at 04:30:41 PM by AutoGen 5.18.5 +.\" It has been AutoGen-ed October 6, 2015 at 06:07:13 AM by AutoGen 5.18.5 .\" From the definitions ntpd-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME @@ -532,6 +532,8 @@ when you have permission to do so from the owner of the target host. Finally, in the past many startup scripts would run .Xr ntpdate 1ntpdatemdoc +or +.Xr sntp 1sntpmdoc to get the system clock close to correct before starting .Xr ntpd 1ntpdmdoc , but this was never more than a mediocre hack and is no longer needed. @@ -541,7 +543,9 @@ and you still need to set the system time before starting .Nm , please open a bug report and document what is going on, and then look at using -.Xr sntp 1sntpmdoc . +.Xr sntp 1sntpmdoc +if you really need to set the clock before starting +.Nm . .Pp There is a way to start .Xr ntpd 1ntpdmdoc diff --git a/ntpd/ntpd.html b/ntpd/ntpd.html index 7af6d9859..000ba4dae 100644 --- a/ntpd/ntpd.html +++ b/ntpd/ntpd.html @@ -39,7 +39,7 @@ The program can operate in any of several modes, including client/server, symmetric and broadcast modes, and with both symmetric-key and public-key cryptography. -

    This document applies to version 4.2.8p3 of ntpd. +

    This document applies to version 4.2.8p4-RC1 of ntpd.