Advertisement
kweevuss

NTP Config

Jan 17th, 2024
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 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.  
  5. #Adding logging file
  6. logfile /var/log/ntp.log
  7.  
  8. # Leap seconds definition provided by tzdata
  9. leapfile /usr/share/zoneinfo/leap-seconds.list
  10.  
  11. # Enable this if you want statistics to be logged.
  12. #statsdir /var/log/ntpstats/
  13.  
  14. statistics loopstats peerstats clockstats
  15. filegen loopstats file loopstats type day enable
  16. filegen peerstats file peerstats type day enable
  17. filegen clockstats file clockstats type day enable
  18.  
  19. #pittsburgh super computing
  20. server 128.182.58.100 iburst
  21. server 204.235.61.9 iburst
  22. server time-west.zia.io iburst
  23. server ntp-0.cso.uiuc.edu iburst
  24. # and NTP2 is for data from normal user, NTP0 is from root
  25.  
  26. # GPS PPS reference (NTP2)
  27. server 127.127.28.2 minpoll 4 maxpoll 4 prefer
  28. fudge 127.127.28.2 refid PPS
  29.  
  30. # GPS Serial data reference (NTP0)
  31. server 127.127.28.0 minpoll 4 maxpoll 4
  32. fudge 127.127.28.0 time1 0.670 refid GPS
  33.  
  34. restrict -4 default kod notrap nomodify nopeer noquery limited
  35. restrict -6 default kod notrap nomodify nopeer noquery limited
  36.  
  37. restrict 127.0.0.1
  38. restrict ::1
  39.  
  40. restrict source notrap nomodify noquery
  41.  
  42. restrict 192.168.0.0 mask 255.255.0.0
  43.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement