The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
connecting my server to comcast mcraul UNIX for Dummies Questions & Answers 0 04-29-2008 08:19 AM
connecting UNIX/Linux to NTP server learn82 UNIX for Advanced & Expert Users 1 04-10-2008 06:00 AM
Connecting to SUN server from PC zam UNIX for Dummies Questions & Answers 33 09-02-2007 10:04 PM
How To Provide Time Sync Using Nts-150 Time Server On Unix Network? pesty UNIX for Advanced & Expert Users 2 03-21-2007 10:20 PM
Connecting to an Exchange Server camerja1 Windows & DOS: Issues & Discussions 2 08-05-2002 08:31 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-29-2005
Registered User
 

Join Date: Feb 2004
Posts: 13
Connecting to time server

Hi there,

My unix box is behind a firewall and I have no access to the firewall, it is currently having time problems so I want to point it at a time server outside of the firewall to keep it's time accurate.

Can anyone think of a way to test connectivity to the time server over port 123 for NTP. I've tried telnet <timeserver> 123 although not understanding NTP I'm not sure of a way to check.

Anyone have any suggestions?

Cheers,
H.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 11-30-2005
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 923
telnet ought to work if the time server allows TCP/IP connections. If it says 'connection refused', the server's either not allowing connections or your firewall blocks it.
Reply With Quote
  #3 (permalink)  
Old 11-30-2005
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,510
telnet doesn't support the ntp protocol, AFAIK.

You need ntpd which is a freebie -
http://www.pool.ntp.org/

Read the how to use page first.
Reply With Quote
  #4 (permalink)  
Old 11-30-2005
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 923
Quote:
Originally Posted by jim mcnamara
telnet doesn't support the ntp protocol, AFAIK.
All we need to check for is the ability to connect at all, it doesn't need to understand it. So yeah, if it connects it could print garbage. It's a quick-and-dirty way of testing for a connection.
Reply With Quote
  #5 (permalink)  
Old 11-30-2005
Registered User
 

Join Date: Feb 2004
Posts: 13
Thanks for that - it turns out that it didn't have access.Will have to get someone to change the firewall settings. Another way I was told by a networking guy is to run ntpdate -d (in debugging mode)

from the man page:-

-d Enable the debugging mode, in which ntpdate will go through all the steps, but not adjust the local clock. Information useful for general debugging will also be printed.

Many thanks!

H.
Reply With Quote
  #6 (permalink)  
Old 12-02-2005
infierno's Avatar
Registered User
 

Join Date: Jul 2005
Location: Asuncion, Paraguay
Posts: 79
ntpd uses udp for time sync with another timeserver
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:47 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0