• Books
  • Movies
  • Sports
    • Football
    • Hockey
  • Tech
    • Apps
    • Networking
    • Virtualization
    • Linux
      • CentOS
      • Ubuntu
    • MacOS
    • Microsoft
  • Recipes
  • Family
  • About
  • Home.Lab Project
    • Home.Lab Hardware
      • Storage CentOS Server (Phoenix)
      • Centos Hypervisor (Cyclops)
      • CentOS Hypervisor (Wolverine)
      • Homegrown SuperMicro ESXi Hypervisor (Deadpool)
    • Networking
      • Hypervisor Network
      • Juniper SSG5 Configuration
      • Security Zone Configuration
    • Virtual Machines
      • Black Widow (RHEL 6.4)
    • Hypervisor Technologies
    • Tutorials
      • Creating an iSCSI Target in CentOS 6.4
      • Managing Linux Hypervisors through Windows
Home » Tech » MacOS » Configure MacOS to act as NTP Time Server

Configure MacOS to act as NTP Time Server

Posted on August 7, 2013 by Vitaly Posted in MacOS, Networking, Tech

Here is a simple guide in setting up an NTP Server in your Mac OS X. Although it does look trivial, it took me a while to figure it out (and find solutions out there). Steps 1 & 2 are important, as it does the trick.

    • Disable the synchronizing of the local clock to ntp. Uncheck “Set date & time automatically.”
    • If you find NTP in the services offered in Server Admin, stop it also.
    • Open the Terminal. Create or edit /etc/ntp.conf and add the ntp servers from where you will synch.
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 or check /etc/ntp-restrict.conf. Add the allowed ip address range to synch with your server.
restrict 10.0.0.0 mask 255.0.0.0 nomodify notrap
restrict 202.92.128.0 mask 255.255.224.0 nomodify notrap
  • Edit /etc/hostconfig.
    TIMESYNC=-NO-
    TIMESERV=-YES-
  • Reboot server.
  • Check if process is running: ps ax| grep ntp
  • Check if it is synching with external ntp servers: ntpq -p

Blatantly stolen from the Tinkering Irrishai! Muchas gracias!

« Tutorials
How to detect duplicate IPs in linux »

Leave a comment Cancel reply

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

Around the Way

August 2013
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Jul   Jan »

Recent Posts

  • Getting spice client console working in Virt-Manager for Mint 19
  • Using RealVNC in Windows to connect to a KVM session
  • Switching the default user when using SSH
  • X-Men Apocalypse Movie Review
  • Getting Virt-Manager working in Ubuntu 16.04 LTS bypassing openssh-askpass

Old School

  • September 2018
  • August 2016
  • July 2016
  • June 2016
  • April 2016
  • February 2016
  • January 2016
  • August 2013
  • July 2013
  • April 2013
  • February 2013
  • December 2012
  • November 2012

Archives

  • September 2018
  • August 2016
  • July 2016
  • June 2016
  • April 2016
  • February 2016
  • January 2016
  • August 2013
  • July 2013
  • April 2013
  • February 2013
  • December 2012
  • November 2012

Recent Posts

  • Getting spice client console working in Virt-Manager for Mint 19
  • Using RealVNC in Windows to connect to a KVM session
  • Switching the default user when using SSH
  • X-Men Apocalypse Movie Review
  • Getting Virt-Manager working in Ubuntu 16.04 LTS bypassing openssh-askpass
© Chubby Apple