Article Directory :: Computers & Technology Articles

Using NTP Authentication

By David Evans

Subscribe to David Evans's RSS feed using any feed reader!

Republish: EasyPublish
Published: 16Mar2007
Word count: 581
Viewed: 431 time(s)
Bookmark this article using any bookmark manager!
Get Free Content For Your Site

NTP or Network Time Protocol to give it its full name is an internet protocol designed to distribute precise time around a network. NTP is a UDP based protocol used to synchronize system time on network infrastructure, such as servers, workstations and network equipment .
This article describes how to utilise the Network Time Protocol authentication features to authenticate time references when synchronizing clients to a NTP server.

NTP Server Security

Network Time Protocol is used to provide a precise time reference for time critical applications. Therefore, NTP can pose a security risk if malicious users attempt to corrupt a NTP timestamp to create a false time on network equipment.

NTP provides increased security in the form of authentication. Authentication is intended to overcome security risks by ensuring that any response received from an NTP time server has come from the intended reference. The client sends a request for time to a NTP server. The server then responds to the client with a precise timestamp along with one of a number of agreed encrypted keys. On receipt of the timestamp, the client un-encrypts the key and verifies it against a list of trusted keys. The client can then be sure that the received timestamp was indeed transmitted from the intended time reference. NTP utilises MD5 encryption (Message Digest Encryption 5), which is a 128-bit cryptographic hash function, which outputs a fingerprint of the key. MD5 is a highly secure encryption algorithm, widely used on the internet for authentication and security purposes.

NTP Authentication Keys

NTP authentication keys are codes that are encrypted on both the server and client that are used to identify the NTP time server. NTP authentication keys are stored in a file usually called ‘ntp.keys'. Each authentication key consists of a key number, an encryption code and the key itself.

E.g. NTP server keys:

2 M VisioN
5 M SeRvEr
7 M TiMeLy
10 M MYKEY
12 M TiDy
14 M MaGic

The authenication key number acts as a reference to the specified authentication key. The encryption code specifies the type of encryption to be utilised, e.g. ‘M' for MD5 encryption. The actual keys must be identical on both the client and the NTP time server. The client may utilise a sub-set of the authentication keys specified on the NTP Server. The keys are case sensitive.

E.g. client keys:

5 M SeRvEr
7 M TiMeLy
10 M MYKEY
14 M MaGic

Trusted Authentication Keys

Trusted authentication keys are specified in the NTP server configuration file, ‘ntp.conf'. Trusted keys specify which subset of keys are currently activeand can be used by the NTP server. This allows a sub-set of trusted keys to be selected from a potentially large keys file. The trusted keys specifier allows key references to be changed easily without editing the keys file. Trusted keys are selected using the ‘trusted-keys' configuration command.

E.g.

trusted-keys 7 10 14

This specifies that authentication keys with the key references of 7, 10 and 14 are trusted and can be used by the NTP installation.

NTP Security Summary

Essentially, authentication is used by the client to authenticate that the NTP server is who he says he is, and that no rogue server intervenes. The key is encrypted and sent to the client by the server where it is unencrypted and checked against the client keys to ensure a match. Authenication provides NTP with a high level of security to prevent malicous tampering of timestamp information.

The author, David Evans, develops SNTP and NTP server time synchronization solutions that ensure accurate time on computers and computer networks. Dave has been heavily involved in the development of dedicated time server systems, Ethernet NTP digital wall clock systems and atomic clock products. Click here to find out more about SNTP and Linux NTP Server solutions.

Bookmark this article using any bookmark manager! Subscribe to David Evans's RSS feed using any feed reader!

EasyPublish™ this article - publishers click here

More articles by David Evans

Free Report!
Ten Essential Secrets Of Article Marketing ... Grab Your Free
Copy
Now:




We respect your privacy.


Need Content?
Regular Top Quality Content for your Blog, Ezine or Website ...
Delivered Direct,
For Free!

Click For Details



Arts & Entertainment
Automotive
Business - General
Computers & Technology
Finance & Investment
Food & Drink
Health & Fitness
Home & Family
Internet Marketing/Online Business
Legal
Pets & Animals
Politics & Government
Reference & Education
Religion & Faith
Self-Improvement/Motivation
Social
Sports & Recreation
Travel & Leisure
Writing & Speaking

More computing articles:

  • Advantages Of Using An International Sim Card (Stacy Robinson)
    A sim card is one of the vital components of a mobile phone. It is charged with the storage of important information including contacts and messages that must be activated to ensure that the phone operates efficiently and meets the needs of the user. A sim card can be either post paid or pre paid depending on the vendor of the card that one uses. However, today, technology has seen the advent of international sim cards.

  • History Of Linux And Unix (Eddison Sherry)
    Linux is a reimplementation and elaboration of UNIX. it conforms to the POSIX standard, runs on several hardware platforms and is compatible with most existing Unix software.

  • Using An International SIM Card Will Get You Lower Mobile Phone Charges (Stacy Robinson)
    Any regular traveler will agree that international calling rates can appear baffling, pricey and very daunting. The reason for this is that the rates and terms will differ from provider to provider and from one location to the other. While taking some time to research may sound like an credible idea, it may turn out to be quite nerve wrecking. The simple solution is to make use of an international sim card to make the rates more affordable.

  • What The Superior SDSL Companies Might Give To Your Company (Dirik Hameed)
    SDSL services are extremely helpful with a variety of broadband queries

  • Why You Should Be Using Tool Management Software (A. Noton)
    Tool management software offers several benefits to those who are trying to construct or even repair a business. Tools happen to play a vital role in both the production and manufacturing aspects of a business or company. They essentially serve the same purpose in both huge enterprises as well as small businesses.

We Automatically Distribute Articles
To Thousands Of Publishers And Web Sites:

Submit Article
All content is viewed and used by you at your own risk and we do not warrant the accuracy or reliability of any of the information. The views expressed are those of the individual contributing authors and not necessarily those of this web site, or its owner, Takanomi Limited.
 
Copyright © 2012 Takanomi Ltd. Company no. 5629683. All rights reserved. | Privacy | Legal | Contact Information