Setup an NTP Server in Mac OS X 10.8

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:

Leave a Reply

Your email address will not be published. Required fields are marked *

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>

  1. Pingback: Preference setting can balk OS X Mavericks installation - Online-Central.net

  2. Hello.

    I’m a newbe, where is etc/ntp.conf ? I have not found it

    Thanks from France Pierre

    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)