Created
October 12, 2016 18:10
-
-
Save SkaTeMasTer/518dbcaba181b5e05276383ec395228e to your computer and use it in GitHub Desktop.
Raspberry Pi -- ntp server config. FROM: https://frillip.com/raspberry-pi-stratum-1-ntp-server/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help | |
# Local | |
server 127.127.1.0 | |
fudge 127.127.1.0 stratum 10 | |
# GPS with PPS enabled | |
server 127.127.20.0 mode 17 minpoll 4 maxpoll 4 iburst true prefer | |
# GPS time | |
#fudge 127.127.20.0 flag1 1 refid GPS | |
# Internet time servers for sanity | |
# server 0.pool.ntp.org iburst prefer | |
# server 1.pool.ntp.org iburst | |
# server 2.pool.ntp.org iburst | |
# server 3.pool.ntp.org iburst | |
# added by me | |
server 0.north-america.pool.ntp.org | |
server 1.north-america.pool.ntp.org | |
server 2.north-america.pool.ntp.org | |
server 3.north-america.pool.ntp.org | |
server ntp.ubuntu.com | |
server 0.ubuntu.pool.ntp.org | |
# By default, exchange time with everybody, but don't allow configuration. | |
restrict default kod nomodify notrap nopeer noquery | |
restrict -6 default kod nomodify notrap nopeer noquery | |
# Local users may interrogate the ntp server more closely. | |
restrict 127.0.0.1 | |
restrict -6 ::1 | |
# Drift file etc. | |
driftfile /var/lib/ntp/ntp.drift |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment