Remember Me
forgot your password?

How to Use Authentication When Synchronizing to a Ntp Server

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.

David Evans

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 NTP and SNTP Server solutions.

Rate this Article: 0 / 5 stars - 0 vote(s)
Print Email Re-Publish

Add new Comment



Captcha

  • Latest Security Articles
  • More from David Evans

How to Delete Antispyware Shield Pro, Quickly and Easily. Uninstall this Spyware Before Certain Destruction!

By: Bob Walker | 31/12/2009
One of the top concerns I have while browsing the internet is what files are secretly being transferred via websites of questionable content. Antispyware Shield Pro is an example of a virus that can be installed in this stealth manner through a Trojan. Once installed, this malware will attempt to trick you into purchasing a "full version", which will do nothing but sap you of your money.

Uninstall Malware Defense Easily - How To Remove Malware Defense Quickly

By: Bob Walker | 31/12/2009
What's the deal with Malware Defense? Is it legitimate or is it a scam? If you're familiar with viruses, then you know that this software is malicious. It's the kind that will try to corrupt your entire system, block your programs, and scare you into purchasing what it claims as "full protection". It provides nothing of the sort. Its cousins are FakeAlert and AntiMalware spyware. You will want to get rid of this spyware immediately, because if you do not, you will be harrassed with fake warnings

Get In Touch With Norton Antivirus

By: James | 31/12/2009
Antivirus has become one of the most essential software these days. Norton antivirus is considered as the most reliable antivirus software. There are many people who want to contact Norton antivirus before buying one. It can be quite easy to get in touch with them either through website or via phone.

Rising demand for Investigating services

By: Sleuth India | 30/12/2009
The changing life style reveal the secret. Life today has gained such a tremendous pace that people rarely have time for themselves. This ultra-busy lifestyle coupled with extremely tense job requirements make people very impatient and intolerant. No wonder smallest of issues today lead to major differences.

Advice On Protecting Your Netbook

By: Mark Walters | 30/12/2009
Useful information and advice on netbooks. Find out how to make a netbook as safe and secure as possible.

Tutorial to Unlock Windows XP Administrator Password!

By: Fiona | 30/12/2009
The Windows XP administrator passwordis the password used to access the "Administrator" account. This account usually doesn't show up on the logon screen and most people don't know it exists. Usually that's okay because you won't need to use your computer under this account very often. There are a few times when you will need this password! When you're accessing the Windows XP Recovery Console or you're trying to boot into Windows XP Safe Mode, you'll need this password before you can contin

Lost or Forgot Computer Password? Reset Windows XP password!

By: Fiona | 30/12/2009
If you have lost or forgotten your password for logging in to a computer running the Windows XP operating system, there are a few different options

Tutorial to Unlock Windows Vista Administrator Password!

By: Fiona | 30/12/2009
Windows Vista administrator password is the password to an account configured with administrator level access in Windows Vista. There doesn't actually have to be an "Administrator" user account. What you need is the password to any account that can act as an administrator. You may need an administrator password in Windows Vista if you're trying to run certain types of programs or access certain Windows Vista password recovery tools.

How To Sync A Network Using NTP

By: David Evans | 29/09/2009 | Computers
This article describes how easy it is to synchronise servers, workstations and network infrastructure to a precise time reference.

Using GPS For NTP Server Time Synchronisation

By: David Evans | 16/04/2009 | Computers
This article attempts to describe simply, how network time servers can obtain accurate timing information to provide a precise reference for computer time synchronisation. It also discusses how NTP servers can utilise the atomic time generated by GPS to provide a timing reference for computer networks

How To Synchronise a Network

By: David Evans | 03/04/2009 | Computers
Computers are notorious for providing inaccurate time and can drift by several minutes each day. This has serious consequences for networked computer systems and applications. Each computer can have wildly differing system times, which can be totally unacceptable for transaction processing applications.

Configuring a Simple Ntp Time Server

By: David Evans | 03/01/2009 | Computers
This article attempts to simplify the installation and configuration of the Linux NTP server application. It describes a simple NTP installation and goes through step-by-step the configuration procedure required to provide a NTP server on a Linux machine.

Lf Radio Ntp Servers: How to Decode the Dcf-77 Time Broadcast

By: David Evans | 23/11/2008 | Computers
This article describes how the DCF-77 signal can be decoded to provide an accurate time reference for NTP servers and other computer timing applications.

Ntp Server Reference Clocks: What's Best Radio or GPS ?

By: David Evans | 24/09/2008 | Computers
This article describes the external time references that are available to synchronise NTP servers and discusses the merits of each.

Use a Ntp Server to Keep Precise Network Time

By: David Evans | 18/07/2008 | Computers
It is quite simple to synchronise every device on your network to an accurate time reference - a NTP time server.

Keeping Accurate Time on Your Computer Using Ntp Servers

By: David Evans | 21/05/2008 | Computers
This article discusses ways in which you can maintain continuously accurate system time on your computer system. It looks at how Internet time references and NTP servers can be utilised for computer time synchronisation.

Submit Your Articles Free: Signup
Article Categories




Use of this web site constitutes acceptance of the Terms Of Use and Privacy Policy | User published content is licensed under a Creative Commons License.
Copyright © 2005-2008 Free Articles by ArticlesBase.com, All rights reserved. (0.23, 5, w3)