Friday, July 03, 2009

Tiger ntpd configuration

You cant un-ring a bell


Right after you have finished setting up your Tiger's ipfw firewall, stop by the NTPD Pool Project page, and pickup a group of those near to wherever you are.
Stop your ntpd daemon, like this:

% sudo /System/Library/StartupItems/NetworkTime/NetworkTime stop


Then, edit the file '/private/etc/ntp.conf', and add those, the file has to end like this:

server 0.south-america.pool.ntp.org prefer iburst minpoll 12 maxpoll 15
server 1.south-america.pool.ntp.org minpoll 12 maxpoll 15
server 2.south-america.pool.ntp.org minpoll 12 maxpoll 15
server 3.south-america.pool.ntp.org minpoll 12 maxpoll 15
server time.apple.com minpoll 12 maxpoll 15
server clock.via.net minpoll 12 maxpoll 15

And then, start the daemon once again, it will print a message while connecting to the remote ntpd servers:

% sudo /System/Library/StartupItems/NetworkTime/NetworkTime start
Starting network time synchronization
Looking for host 0.south-america.pool.ntp.org and service ntp
host found : imp-254.topgroup.com.ar
Looking for host 1.south-america.pool.ntp.org and service ntp
host found : c8daab2b.maxiweb.com.br
Looking for host 2.south-america.pool.ntp.org and service ntp
host found : titan.cais.rnp.br
Looking for host 3.south-america.pool.ntp.org and service ntp
host found : mail.wholenet.com.ar
Looking for host time.apple.com and service ntp
host found : time7.apple.com
Looking for host clock.via.net and service ntp
host found : clock.via.net

Let it run a couple of minutes, and then query it, like this:

% ntpq -np
remote refid st t when poll reach delay offset jitter
==============================================================================
200.218.171.44 .INIT. 16 u - 68m 0 0.000 0.000 4000.00
146.164.48.5 .GPS. 1 u 136 68m 1 324.722 -3.956 0.001
64.209.30.130 128.2.1.22 3 u 135 68m 1 239.466 9.647 0.001
200.80.32.170 91.189.94.4 3 u 134 68m 1 10.275 -12.162 0.001
17.151.16.23 17.254.0.49 2 u 133 68m 1 219.404 -6.055 0.001
209.81.9.7 .GPS. 1 u 132 68m 1 230.757 -0.375 0.001

Labels: , ,

0 Comments:

Post a Comment

<< Home