ntp.conf 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # For more information about this file, see the man pages
  2. # ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5).
  3. driftfile /var/lib/ntp/drift
  4. # Permit time synchronization with our time source, but do not
  5. # permit the source to query or modify the service on this system.
  6. restrict default kod nomodify notrap nopeer noquery
  7. restrict -6 default kod nomodify notrap nopeer noquery
  8. # Permit all access over the loopback interface. This could
  9. # be tightened as well, but to do so would effect some of
  10. # the administrative functions.
  11. restrict 127.0.0.1
  12. restrict -6 ::1
  13. # Hosts on local network are less restricted.
  14. #restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
  15. # Use public servers from the pool.ntp.org project.
  16. # Please consider joining the pool (http://www.pool.ntp.org/join.html).
  17. server 0.pool.ntp.org
  18. server 1.pool.ntp.org
  19. server 2.pool.ntp.org
  20. peer 127.127.4.76
  21. #broadcast 192.168.1.255 autokey # broadcast server
  22. #broadcastclient # broadcast client
  23. #broadcast 224.0.1.1 autokey # multicast server
  24. #multicastclient 224.0.1.1 # multicast client
  25. #manycastserver 239.255.254.254 # manycast server
  26. #manycastclient 239.255.254.254 autokey # manycast client
  27. # Undisciplined Local Clock. This is a fake driver intended for backup
  28. # and when no outside source of synchronized time is available.
  29. #server 127.127.1.0 # local clock
  30. #fudge 127.127.1.0 stratum 10
  31. # Enable public key cryptography.
  32. #crypto
  33. includefile /etc/ntp/crypto/pw
  34. # Key file containing the keys and key identifiers used when operating
  35. # with symmetric key cryptography.
  36. keys /etc/ntp/keys
  37. # Specify the key identifiers which are trusted.
  38. #trustedkey 4 8 42
  39. # Specify the key identifier to use with the ntpdc utility.
  40. #requestkey 8
  41. # Specify the key identifier to use with the ntpq utility.
  42. #controlkey 8
  43. # Enable writing of statistics records.
  44. #statistics clockstats cryptostats loopstats peerstats