Sortix cross-volatile manual
This manual documents Sortix cross-volatile. You can instead view this document in the latest official manual.
NAME
ntpd.conf — Network Time Protocol daemon configuration fileDESCRIPTION
This manual page describes the format of the ntpd(8) configuration file.- listen on address [rtable table-id]
-
ntpd(8) has the ability to sync the local clock to remote NTP servers and, if this directive is specified, can act as NTP server itself, redistributing the local clock.
listen on *
listen on 127.0.0.1 listen on ::1 listen on 127.0.0.1 rtable 4
- query from sourceaddr
-
Specify a local IP address the ntpd(8) daemon should use for outgoing queries to subsequently specified servers, which is useful on machines with multiple interfaces. For example:
query from 192.0.2.1 query from 2001:db8::1
- sensor device [correction microseconds] [refid ID-string] [stratum stratum-value] [trusted] [weight weight-value]
-
Specify a timedelta sensor device ntpd(8) should use, if the operating system supports sensors. The sensor can be specified multiple times: ntpd(8) will use each given sensor that actually exists. Non-existent sensors are ignored. If ‘*’ is given as device name, ntpd(8) will use all timedelta sensors it finds. ntpd(8) does not use any timedelta sensor by default. For example:
sensor * sensor nmea0
sensor udcf0 correction 70000
sensor nmea0 refid GPS
- server address [trusted] [weight weight-value]
-
Specify the IP address or the hostname of an NTP server to synchronize to. If it appears multiple times, ntpd(8) will try to synchronize to all of the servers specified. If a hostname resolves to multiple IPv4 and/or IPv6 addresses, ntpd(8) uses the first address. If it does not get a reply, ntpd(8) retries with the next address and continues to do so until a working address is found. For example:
server 10.0.0.2 weight 5 server ntp.example.org weight 1
- servers address [trusted] [weight weight-value]
-
As with server, specify the IP address or hostname of an NTP server to synchronize to. If it appears multiple times, ntpd(8) will try to synchronize to all of the servers specified. Should the hostname resolve to multiple IP addresses, ntpd(8) will try to synchronize to all of them. For example:
servers pool.ntp.org servers pool.ntp.org weight 5
CONSTRAINTS
ntpd(8) can be configured to query the ‘Date’ from trusted HTTPS servers via TLS. This time information is not used for precision but acts as an authenticated constraint, thereby reducing the impact of unauthenticated NTP man-in-the-middle attacks. Received NTP packets with time information falling outside of a range near the constraint will be discarded and such NTP servers will be marked as invalid.- constraint from url [ip...]
-
Specify the URL, IP address or the hostname of an HTTPS server to provide a constraint. If the url is followed by one or more addresses the url and addresses will be tried until a working one is found. The url path and expected certificate name is always taken from the url specified. If constraint from is used more than once, ntpd(8) will calculate a median constraint from all the servers specified.
server ntp.example.org constraint from www.example.com constraint from "https://9.9.9.9" "2620:fe::9"
- constraints from url
-
As with constraint from, specify the URL, IP address or the hostname of an HTTPS server to provide a constraint. Should the hostname resolve to multiple IP addresses, ntpd(8) will calculate a median constraint from all of them. For example:
servers pool.ntp.org constraints from "https://www.google.com/"
FILES
- /etc/ntpd.conf
- Default ntpd(8) configuration file.
- /etc/examples/ntpd.conf
- Example configuration file.