Becoming an NTP server for pool.ntp.org

So you have:

  1. Some 2 hours to set it up.
  2. Some bandwidth to share.
  3. A fixed IP address.
  4. Some knowledge of Linux.

Good, you can help the pool.ntp.org project by becoming a member of the NTP pool. Internet connected users will connect to you host to get the correct time from your machine.

It's quite straight forward. Start by reading the how to join pool.ntp.org documentation.

Change /etc/ntp.conf, these parameters:

# Add this line to allow anybody (default) limited access.
restrict default kod limited nomodify nopeer noquery notrap

# Comment out the pool NTP servers:
#server 0.amazon.pool.ntp.org iburst
#server 1.amazon.pool.ntp.org iburst
#server 2.amazon.pool.ntp.org iburst
#server 3.amazon.pool.ntp.org iburst

# Add server from http://support.ntp.org/bin/view/Servers/StratumTwoTimeServers
# Choose machines that are physically close.
server hostname1.domain.tld
server hostname2.domain.tld
server hostname3.domain.tld
server hostname4.domain.tld
server hostname5.domain.tld
server hostname6.domain.tld

Check if NTP is working:

ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
-1.2.3.4     2.3.4.5      2 u  107  512  377    9.694    1.765   1.152
-hostname1.domain.tld.   3.4.5.6     2 u  125  512  377   18.407    3.662   0.998
-hostname1.domain.tld.   4.5.6.7    2 u  126  512  377   31.769   -1.389   0.218
-hostname1.domain.tld. 5.6.7.8    2 u  144  512  377   19.508    1.260   0.531
+hostname1.domain.tld. 6.7.8.9   3 u  117  512  377   24.559    0.928   0.779
+hostname1.domain.tld.     7.8.9.10   2 u  203  512  377   14.287   -0.134   0.133
*hostname1.domain.tld. .GPS.            1 u  211  512  377   67.740    0.268   0.308

Hint, it takes some 6 minutes to get the minuses (-), plusses (+) and asterisks (*).

Now go back to the join page and register your server. It takes a couple of hours to prove that your NTP server is stable before you will receive traffic.

The internet thanks you!

About Consultancy Articles Contact




References Red Hat Certified Architect By Robert de Bock Robert de Bock
Curriculum Vitae By Fred Clausen +31 6 14 39 58 72
By Nelson Manning robert@meinit.nl