LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-19-2012, 08:37 PM   #1
anon079
Member
 
Registered: Apr 2012
Location: Alexandria, VA
Distribution: Fedora
Posts: 46

Rep: Reputation: 1
Question NTP Error


When I run ntpq -p from my web server I get

10.0.0.22 .INIT. 16u -1024 0 0.000 0.00 0.00




When I look on my NTP server I see this in the logs:

NTP packet received from unauthorised host 10.0.0.26 port 123

The NTP ports are open on both machines.




Here is the config on the NTP server:


driftfile /var/lib/ntp/drift


restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery

restrict 127.0.0.1
restrict -6 ::1


restrict 10.0.0.0 mask 255.255.255.0


server 0.fedora.pool.ntp.org iburst
server 1.fedora.pool.ntp.org iburst
server 2.fedora.pool.ntp.org iburst
server 3.fedora.pool.ntp.org iburst


restrict 0.fedora.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
restrict 1.fedora.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
restrict 2.fedora.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
restrict 3.fedora.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery


# Enable public key cryptography.
#crypto

includefile /etc/ntp/crypto/pw

# Key file containing the keys and key identifiers used when operating
# with symmetric key cryptography.
keys /etc/ntp/keys
# Specify the key identifiers which are trusted.
#trustedkey 4 8 42

# Specify the key identifier to use with the ntpdc utility.
#requestkey 8

# Specify the key identifier to use with the ntpq utility.
#controlkey 8

# Enable writing of statistics records.
#statistics clockstats cryptostats loopstats peerstats
 
Old 08-20-2012, 12:44 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,694

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Are these physical or virtual machines?
On the client machine stop ntp and run the command ntpdate -du 10.0.0.22

Is the server time synched? From the posted results of ntpq it only appears to be a stratum 16 which is not good enough for the client to use. Please post the client's ntp.conf. Try changing the server confuration from

restrict 10.0.0.0 mask 255.255.255.0
to
restrict 10.0.0.0 mask 255.255.255.0 nomodify notrap
 
Old 08-20-2012, 01:00 PM   #3
anon079
Member
 
Registered: Apr 2012
Location: Alexandria, VA
Distribution: Fedora
Posts: 46

Original Poster
Rep: Reputation: 1
The ntp server is a physical server the client seeking ntp sync is a Xen domu. I used to have the "nomodify notrap" on that line but when I first tried to fix this I saw in an old post that some fedora builds wont accept that. I'll go ahead and try adding that back and see what happens. Ill reply here when I try.
 
Old 08-20-2012, 01:11 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,694

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Is the server synched to the outside world? Post the output of ntpq -p from it. I have not played with Xen but is the host synced to NTP?

Last edited by michaelk; 08-20-2012 at 01:44 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] NTP error at boot up. Think it might be a permissions problem omitchell Linux - Newbie 2 02-13-2012 02:07 PM
NTP frequency error luca_ Linux - Networking 0 08-03-2011 06:55 AM
ntp Error msivadass Linux - Server 4 04-05-2011 12:13 AM
NTP Error. Peter Tan Linux - Newbie 9 04-04-2011 08:04 AM
ntp drift file in /etc/ntp instead of /var/lib/ntp - suggestion for a patch in Slack niels.horn Slackware 16 05-07-2009 07:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration