Няма описание
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
  2. driftfile /var/lib/ntp/ntp.drift
  3. # Enable this if you want statistics to be logged.
  4. #statsdir /var/log/ntpstats/
  5. statistics loopstats peerstats clockstats
  6. filegen loopstats file loopstats type day enable
  7. filegen peerstats file peerstats type day enable
  8. filegen clockstats file clockstats type day enable
  9. # Use servers configured via Ansible
  10. {% for server in ntp_servers %}
  11. server {{ server }}
  12. {% endfor %}
  13. # fallback
  14. server tick.usno.navy.mil
  15. # Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
  16. # details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
  17. # might also be helpful.
  18. #
  19. # Note that "restrict" applies to both servers and clients, so a configuration
  20. # that might be intended to block requests from certain clients could also end
  21. # up blocking replies from your own upstream servers.
  22. # By default, exchange time with everybody, but don't allow configuration.
  23. restrict -4 default kod notrap nomodify nopeer noquery
  24. restrict -6 default kod notrap nomodify nopeer noquery
  25. # Local users may interrogate the ntp server more closely.
  26. restrict 127.0.0.1
  27. restrict ::1
  28. # Clients from this (example!) subnet have unlimited access, but only if
  29. # cryptographically authenticated.
  30. #restrict 192.168.123.0 mask 255.255.255.0 notrust
  31. # If you want to provide time to your local subnet, change the next line.
  32. # (Again, the address is an example only.)
  33. #broadcast 192.168.123.255
  34. # If you want to listen to time broadcasts on your local subnet, de-comment the
  35. # next lines. Please do this only if you trust everybody on the network!
  36. #disable auth
  37. #broadcastclient