ansible-playbooks/roles/core/files/ntp.conf

42 lines
1.4 KiB
Plaintext

# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
driftfile /var/lib/ntp/ntp.drift
# Enable this if you want statistics to be logged.
#statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
# NTP Server
#server ntp.csclub.uwaterloo.ca
server 129.97.167.12
#server ntp.student.cs.uwaterloo.ca
server 129.97.167.4
#server ntp.cs.uwaterloo.ca
server 129.97.15.14
#server ntp.cscf.uwaterloo.ca
server 129.97.15.15
# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
# details. The web page
# <http://support.ntp.org/bin/view/Support/AccessRestrictions>
# might also be helpful.
#
# Note that "restrict" applies to both servers and clients, so a configuration
# that might be intended to block requests from certain clients could also end
# up blocking replies from your own upstream servers.
# Disable the monitoring facility.
# see https://isc.sans.edu/forums/diary/NTP+reflection+attack/17300
disable monitor
# By default, exchange time with everybody, but don't allow configuration
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::1