2007-01-12 08:23:22 +01:00
|
|
|
#
|
|
|
|
# /etc/ntp/ntp.conf: ntp configuration
|
|
|
|
#
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Default paths
|
|
|
|
|
2013-11-28 16:40:27 +01:00
|
|
|
logfile /var/log/ntp.log
|
|
|
|
pidfile /var/run/ntp/ntpd.pid
|
|
|
|
driftfile /var/lib/ntp/ntp.drift
|
|
|
|
#statsdir /var/lib/ntp/stats/
|
|
|
|
|
|
|
|
# Associate to public NTP pool servers
|
|
|
|
server 0.pool.ntp.org
|
|
|
|
server 1.pool.ntp.org
|
|
|
|
server 2.pool.ntp.org
|
|
|
|
|
|
|
|
# Only allow read-only access from localhost
|
|
|
|
restrict default noquery nopeer
|
2007-01-12 08:23:22 +01:00
|
|
|
restrict 127.0.0.1
|
2013-11-28 16:40:27 +01:00
|
|
|
restrict ::1
|
2007-01-12 08:23:22 +01:00
|
|
|
|
2014-01-17 18:04:42 +01:00
|
|
|
# avoid udp spoofed ddos attacks
|
|
|
|
disable monitor
|
|
|
|
|
2007-01-12 08:23:22 +01:00
|
|
|
# Now list the NTP clients on our home network which should be able to query
|
|
|
|
# our server for the time (notice that the noquery has been removed)
|
2013-11-28 16:40:27 +01:00
|
|
|
#
|
2007-01-12 08:23:22 +01:00
|
|
|
#restrict 192.168.0.0 mask 255.255.255.0
|
|
|
|
|
|
|
|
# End of file
|