Example NTP configuration file

Example NTP configuration file

This is an Example NTP configuration file for NTP on Windows. This shows use of the pool directive to find suitable time servers on the internet and configuration for a local GPS with PPS. It also shows how to use a local NTP server on your own subnet.

# NTP Network Time Protocol
# **** ATTENTION ****: *You have to restart the NTP service when you change this file to activate the changes*
# PLEASE CHECK THIS FILE CAREFULLY AND MODIFY IT IF REQUIRED
# Configuration File created by Windows Binary Distribution Installer Rev.: 1.28 mbg
# please check http://www.ntp.org for additional documentation and background information

# The following restrict statements prevent that someone can abuse NTP as a traffic amplification tool by
# ignoring mode 6 and mode 7 packets. Especially the monlist feature has a big potential to be abused for this.
# See http://news.meinberg.de/244 for further information.
restrict default nomodify notrap nopeer noquery
# But allow local tools like ntpq full access:
restrict 127.0.0.1
# if you are not using IPv6 on this machine, please comment out the following line:
restrict -6 ::1
# Allow local subnet to receive time service and query server stats
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

# Use drift file
driftfile "C:\Program Files (x86)\NTP\etc\ntp.drift"

# Use a NTP server from the ntp pool project (see http://www.pool.ntp.org)
# Please note that you need at least four different servers to be at least protected against
# one falseticker. If you only rely on internet time, it is highly recommended to add
# additional servers here.
# The 'iburst' keyword speeds up initial synchronization, please check the documentation for more details!
pool us.pool.ntp.org iburst

# Use specific NTP servers
server ntp1.ucsb.edu iburst prefer
server ntp-01.caltech.edu iburst

# Path to leap second file
leapfile "C:\Program Files (x86)\NTP\etc\leap-seconds.list"

# Add Sure Electronics MG1613S GPS clock
server 127.127.20.1 minpoll 4 mode 18
fudge 127.127.20.1 refid SURE time2 0.450
# Add PPS driver
server 127.127.22.1 minpoll 4
# Add local Raspberry Pi NTP server
server 192.168.1.17 minpoll 5 maxpoll 5
###########################################################
#Section insert by NTP Time Server Monitor 1/23/2015
enable stats
statsdir "C:\Program Files (x86)\NTP\etc\"
statistics loopstats
###########################################################