LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 01-28-2006, 03:24 AM   #1
noir911
Member
 
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
OpenNTPD


I am running OpenNTPD in OpenBSD 3.8 and /var/log/daemon shows it is working fine -

Code:
peer <IP> now valid
adjusting local clock by -0.434343
clock is now synced
But if I run ntpq -p (as root) it says

Code:
ntpp:read:Connection refused
lsof -i | grep ntpd shows ntpd is listening on local IP port 4345 to remote IP <IP> port NTP and UDP. Both on IPv4 and IPv6.

I have configured 2 files

[1] /etc/ntpd.conf

here I bind ntp to local IP address
and connect to the NTP server that is enarest to me.

[2] /etc/rc.conf

here I set the flag to "" for ntp to start during boot time.

TIA.
 
Old 02-27-2006, 12:18 PM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
i'm probably wrong, but doesnt one have to edit /etc/host.allow on openbsd to allow any incomming connections.

e.g in my netbsd /etc/hosts.allow

rpcbind: 192.168.0.4


this allows NFS to one host...
 
Old 03-04-2006, 02:05 AM   #3
noir911
Member
 
Registered: Apr 2004
Posts: 682

Original Poster
Rep: Reputation: Disabled
I don't have a hosts.allow but I have had issues with hosts.deny where it was block every sorts of connections.

But OpenNTPD has been working fine as I can do lsof -i and see I am connected to all these NTP server that keep me sync'd.

OBSD NTP just doesn't have commands like "ntpq -p". Guess it's still in beta or something.
 
Old 03-04-2006, 04:20 AM   #4
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
maybe you can use xntpdc or ntpdc - a kind of interactive mode.... works on hp unix...
 
  


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



LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 03:29 PM.

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