ntpd / time synchronization

Chuck Swiger cswiger at mac.com
Mon Jul 27 23:26:39 UTC 2009


On Jul 27, 2009, at 4:08 PM, Zbigniew Szalbot wrote:
> OK. So removing the restrictions should cause the time to be synced?
> Thank you for your patience and help!

Yes, try it and see-- it's most likely to be the cause of problems.   
If you want to set a default restrict line, you'll want to use a setup  
like the following, with explicit restrict statements added for  
localhost and each of the remote timeservers:

server ntp.pbx.org maxpoll 11
server bonehed.lcs.mit.edu maxpoll 9
server sundial.columbia.edu maxpoll 11
server time1.apple.com maxpoll 11
peer ns1.codefab.com maxpoll 9
peer ns2.codefab.com maxpoll 9

restrict default kod nomodify notrap nopeer
restrict -6 default kod nomodify notrap nopeer noquery

# localhost is unrestricted
restrict -6 ::1
restrict ntp.pbx.org
restrict bonehed.lcs.mit.edu
restrict sundial.columbia.edu
restrict time1.apple.com
restrict ns1.codefab.com
restrict ns2.codefab.com


More information about the freebsd-questions mailing list