From 0e776f414b408c60e7f24c6c7c1a31d9f2c72e58 Mon Sep 17 00:00:00 2001 From: Vladimir Vitkov Date: Sun, 6 Oct 2019 11:35:55 +0300 Subject: [PATCH] ntpd config --- misc/ntp.conf | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 misc/ntp.conf diff --git a/misc/ntp.conf b/misc/ntp.conf new file mode 100644 index 0000000..976d715 --- /dev/null +++ b/misc/ntp.conf @@ -0,0 +1,41 @@ +# +# Ansible managed +# + +# /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 + + +pool 0.bg.pool.ntp.org minpoll 4 maxpoll 10 iburst burst +server marla.ludost.net minpoll 4 maxpoll 10 iburst burst + +# hard backup +pool 2.bg.pool.ntp.org minpoll 4 maxpoll 10 iburst burst + +# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for +# details. The web page +# 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. + +# By default, exchange time with everybody, but don't allow configuration. +restrict -4 default kod notrap nomodify nopeer noquery limited +restrict -6 default kod notrap nomodify nopeer noquery limited + +# Local users may interrogate the ntp server more closely. +restrict 127.0.0.1 +restrict ::1 + +# Needed for adding pool entries +restrict source notrap nomodify noquery