Nov 262012
 

The How-To: Setup an NTP Server in Mac OS X still works for OS X 10.8. Here are the steps once again:

Here is how to set up an NTP Server in Mac OS X

Open the “Date & Time” system preferences. Disable “Set date & time automatically”.

Edit the file /etc/ntp.conf and add the ntp servers to sync your local time with. For example add:

server 0.asia.pool.ntp.org minpoll 12 maxpoll 17
server 1.asia.pool.ntp.org minpoll 12 maxpoll 17
server 2.asia.pool.ntp.org minpoll 12 maxpoll 17
server 3.asia.pool.ntp.org minpoll 12 maxpoll 17
server 0.jp.pool.ntp.org minpoll 12 maxpoll 17

Edit /etc/ntp-restrict.conf. Adjust the IP address ranges that are allowed to sync with your NTP server. For example to allow the networks 10.0.0.0/8 and 193.149.0.0/16, add:

restrict 10.0.0.0 mask 255.0.0.0 nomodify notrap
restrict 193.149.0.0 mask 255.255.0.0 nomodify notrap

Edit /etc/hostconfig and

# change
TIMESYNC=-NO-
# to
TIMESERV=-YES-

Run ps ax | grep ntpd to find the currently running ntpd service and kill it using sudo killall ntpd. The system should restart the service automatically (or you can start it again using sudo /usr/sbin/ntpd -c /private/etc/ntp-restrict.conf -n -g -p /var/run/ntpd.pid -f /var/db/ntp.drift).

You can check if it is synching with external ntp servers: ntpq -p

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)

Related Posts:

  One Response to “Setup an NTP Server in Mac OS X 10.8”

  1. […] may be interested in setting up a local NTP (Network Time Protocol) servers. On his computing blog, Philipp Klaus, a physics student at the University of Frankfurt/Main, Germany, recently posted a how-to article […]

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>