View previous topic :: View next topic |
Author |
Message |
dirtboy Apprentice
Joined: 12 Dec 2002 Posts: 263 Location: Pascagoula, MS
|
Posted: Mon Mar 15, 2004 10:00 pm Post subject: NTP clients |
|
|
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 |
|
|
ikaro Advocate
Joined: 14 Jul 2003 Posts: 2527 Location: Denmark
|
|
Back to top |
|
|
dirtboy Apprentice
Joined: 12 Dec 2002 Posts: 263 Location: Pascagoula, MS
|
Posted: Mon Mar 15, 2004 11:07 pm Post subject: |
|
|
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 |
|
|
dirtboy Apprentice
Joined: 12 Dec 2002 Posts: 263 Location: Pascagoula, MS
|
Posted: Mon Mar 15, 2004 11:12 pm Post subject: |
|
|
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 |
|
|
evanduser n00b
Joined: 09 Apr 2003 Posts: 22
|
Posted: Mon Mar 15, 2004 11:22 pm Post subject: |
|
|
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 |
|
|
Telamon Tux's lil' helper
Joined: 29 Dec 2003 Posts: 129
|
Posted: Mon Mar 15, 2004 11:32 pm Post subject: |
|
|
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 |
|
|
dirtboy Apprentice
Joined: 12 Dec 2002 Posts: 263 Location: Pascagoula, MS
|
Posted: Tue Mar 16, 2004 4:37 am Post subject: |
|
|
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 |
|
|
|