Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NTP clients
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dirtboy
Apprentice
Apprentice


Joined: 12 Dec 2002
Posts: 263
Location: Pascagoula, MS

PostPosted: Mon Mar 15, 2004 10:00 pm    Post subject: NTP clients Reply with quote

I have been through several of the the mini faqs I found on the boards, but none of them are helping me in this situation. I have one machine running ntpd just fine. I now want to have the other machines in this network sync to this machine. How do you configure machine 1 to be a server, and consequently how do you configure the clients to use it?

Every time I try to connect from the clients to the server using ntptrace or ntpq -p I get
Code:
ntpq: read: Connection refused
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2527
Location: Denmark

PostPosted: Mon Mar 15, 2004 10:48 pm    Post subject: Reply with quote

good old google:
http://networking.earthweb.com/netsysm/article.php/10954_3302411_3
_________________
linux: #232767
Back to top
View user's profile Send private message
dirtboy
Apprentice
Apprentice


Joined: 12 Dec 2002
Posts: 263
Location: Pascagoula, MS

PostPosted: Mon Mar 15, 2004 11:07 pm    Post subject: Reply with quote

Thanks, but that doesn't work. The server is running fine and get updates from the public servers, but the clients still cannot connect to my server. Here is my client's ntp.conf file:

Code:
restrict default noquery notrust nomodify
restrict 127.0.0.1
restrict 192.168.123.0 mask 255.255.255.0
fudge 127.127.1.0 stratum 3
server 192.168.123.168
driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp.log


192.168.123.168 is the server running ntpd that I want to sync to.
Back to top
View user's profile Send private message
dirtboy
Apprentice
Apprentice


Joined: 12 Dec 2002
Posts: 263
Location: Pascagoula, MS

PostPosted: Mon Mar 15, 2004 11:12 pm    Post subject: Reply with quote

Here is my server's ntp.conf (with comments removed for brevity):

Code:

server          ntp.shorty.com
server          ntp-2.mcs.anl.gov
server          gilbreth.ecn.purdue.edu

logfile         /var/log/ntpd.log
driftfile       /var/lib/ntp/ntp.drift

restrict 192.168.123.0 mask 255.255.255.0 notrust nomodify notrap
Back to top
View user's profile Send private message
evanduser
n00b
n00b


Joined: 09 Apr 2003
Posts: 22

PostPosted: Mon Mar 15, 2004 11:22 pm    Post subject: Reply with quote

Here are working settings (excluding external servers and LOCAL)
Code:
restrict default ignore

# allow all on localhost
restrict 127.0.0.1

#allow clients on LAN to query server
restrict 192.168.1.0 mask 255.255.255.0 notrust nomodify notrap
Back to top
View user's profile Send private message
Telamon
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2003
Posts: 129

PostPosted: Mon Mar 15, 2004 11:32 pm    Post subject: Reply with quote

Not really a fix for ntpd, but you might want to check out rdate. Seems to work fine for me, I just have an entry "rdate -s timeserver" setup in root's cron.
Back to top
View user's profile Send private message
dirtboy
Apprentice
Apprentice


Joined: 12 Dec 2002
Posts: 263
Location: Pascagoula, MS

PostPosted: Tue Mar 16, 2004 4:37 am    Post subject: Reply with quote

I figured it out. I wasn't setting the server in the /etc/conf.d/ntp-client script. I was setting it in /etc/conf.d/ntpd. Works fine now. Thanks for the suggestions.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum