Advertisement
synthnassizer

halki_ntp

Mar 12th, 2015
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. # Sample /etc/ntp.conf: Configuration file for ntpd.
  2. #
  3. interface ignore wildcard
  4. interface listen 127.0.0.1
  5. interface listen eth0
  6. interface listen eth1
  7. #
  8. # NTP server (list one or more) to synchronize with:
  9. #server pool.ntp.org iburst
  10. #server 0.pool.ntp.org iburst
  11. #server 1.pool.ntp.org iburst
  12. #server 2.pool.ntp.org iburst
  13. server 3.gr.pool.ntp.org iburst
  14. server 1.europe.pool.ntp.org iburst
  15. server 0.europe.pool.ntp.org iburst
  16. #
  17. # Undisciplined Local Clock. This is a fake driver intended for backup
  18. # and when no outside source of synchronized time is available. The
  19. # default stratum is usually 3, but in this case we elect to use stratum
  20. # 0. Since the server line does not have the prefer keyword, this driver
  21. # is never used for synchronization, unless no other other
  22. # synchronization source is available. In case the local host is
  23. # controlled by some external source, such as an external oscillator or
  24. # another protocol, the prefer keyword would cause the local host to
  25. # disregard all other synchronization sources, unless the kernel
  26. # modifications are in use and declare an unsynchronized condition.
  27. #
  28. server 127.127.1.0 # local clock
  29. fudge 127.127.1.0 stratum 10
  30. #
  31. # Drift file. Put this in a directory which the daemon can write to.
  32. # No symbolic links allowed, either, since the daemon updates the file
  33. # by creating a temporary in the same directory and then rename()'ing
  34. # it to the file.
  35. #
  36. driftfile /etc/ntp/drift
  37. #
  38. # Uncomment to use a multicast NTP server on the local subnet:
  39. multicastclient 224.0.1.1 # listen on default 224.0.1.1
  40. # Set an optional compensation for broadcast packet delay:
  41. broadcastdelay 0.008
  42. #
  43. # Keys file. If you want to diddle your server at run time, make a
  44. # keys file (mode 600 for sure) and define the key number to be
  45. # used for making requests.
  46. # PLEASE DO NOT USE THE DEFAULT VALUES HERE. Pick your own, or remote
  47. # systems might be able to reset your clock at will.
  48. #
  49. #keys /etc/ntp/keys
  50. #trustedkey 65535
  51. #requestkey 65535
  52. #controlkey 65535
  53. #
  54. # Don't serve time or stats to anyone else by default (more secure)
  55. #restrict default noquery nomodify
  56. restrict default kod nomodify notrap noquery nopeer
  57. restrict pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
  58. restrict 0.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
  59. restrict 1.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
  60. restrict 2.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
  61. #allow the localnet to query us (ie allow incoming sync requests)
  62. restrict 192.168.18.0 mask 255.255.255.0 nomodify notrap
  63. #
  64. # Trust ourselves. :-)
  65. restrict 127.0.0.1
  66. #logconfig = syncstatus + sysevents
  67. logfile /var/log/ntp.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement