/etc/ntp.conf (2)

From RaySoft
#-------------------------------------------------------------------------------
# ntp.conf
# ========
#
# Project   Gentoo 4 Shuttle DS57Ux (Active)
# Scope     Native
# Copyright (C) 2022 by RaySoft, Zurich, Switzerland
# License   GNU General Public License (GPL) 2.0
#           https://www.gnu.org/licenses/gpl2.txt
#
#-------------------------------------------------------------------------------

# This command normally mobilizes a persistent client mode association with the
# specified remote server or local reference clock. If the preempt flag is
# specified, a preemptable association is mobilized instead. In client mode the
# client clock can synchronize to the remote server or local reference clock,
# but the remote server can never be synchronized to the client clock.
# - local reference clock
server 127.127.1.0
fudge 127.127.1.0 stratum 10
# - remote server
server 0.ch.pool.ntp.org
server 1.ch.pool.ntp.org
server 2.ch.pool.ntp.org

# Restrict the accessibility
# - ignore
#   Deny packets of all kinds, including ntpq and ntpdc queries.
# - nomodify
#   Deny ntpq and ntpdc queries which attempt to modify the state of the server
#   (i.e., run time reconfiguration). Queries which return information are
#   permitted.
# - notrap
#   Decline to provide mode 6 control message trap service to matching hosts.
#   The trap service is a subsystem of the ntpq control message protocol which
#   is intended for use by remote event logging programs.
# - noquery
#   Deny ntpq and ntpdc queries. Time service is not affected.
restrict default ignore

restrict 0.ch.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
restrict 1.ch.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
restrict 2.ch.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery

restrict 127.0.0.1
restrict 10.0.0.0 mask 255.255.255.0 nomodify notrap

# This command specifies the complete path and name of the file used to record
# the frequency of the local clock oscillator.
driftfile /var/lib/ntp/drift

# Specifies the complete path and location of the MD5 key file containing the
# keys and key identifiers used by ntpd, ntpq and ntpdc when operating with
# symmetric key cryptography.
keys /var/lib/ntp/keys

# The broadcast and multicast modes require a special calibration to determine
# the network delay between the local and remote servers.
broadcastdelay 0.008