Advertisement
xrobau

ntp.conf

Aug 25th, 2019
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
  2.  
  3. driftfile /var/lib/ntp/ntp.drift
  4. enable pps stats
  5.  
  6. # Enable this if you want statistics to be logged.
  7. statsdir /var/log/ntpstats/
  8.  
  9. statistics loopstats peerstats clockstats
  10. filegen loopstats file loopstats type day enable
  11. filegen peerstats file peerstats type day enable
  12. filegen clockstats file clockstats type day enable
  13.  
  14.  
  15. # GPS PPS reference, accurate to 50usec
  16. # The last octect refers to /dev/pps(n) - in this case, /dev/pps0
  17. server 127.127.22.0 minpoll 4 maxpoll 4
  18. fudge 127.127.22.0 refid PPS
  19.  
  20. # GPS time, which is only accurate to about 10msec
  21. server 127.127.28.0 minpoll 4 maxpoll 4 prefer
  22. fudge 127.127.28.0 time1 0.135 refid GPS
  23.  
  24. # If you want to rely on any other servers, add them here...
  25. # server 121.0.0.41
  26. # server 180.150.12.46
  27.  
  28. # Always use a pool!
  29. pool au.pool.ntp.org iburst
  30.  
  31. # By default, exchange time with everybody, but don't allow configuration.
  32. restrict -4 default kod notrap nomodify nopeer noquery limited
  33. restrict -6 default kod notrap nomodify nopeer noquery limited
  34.  
  35. # Local users may interrogate the ntp server more closely.
  36. restrict 127.0.0.1
  37. restrict ::1
  38.  
  39. # Needed for adding pool entries
  40. restrict source notrap nomodify noquery
  41.  
  42. leapfile /usr/share/zoneinfo/leap-seconds.list
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement