Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-12-2003, 05:42 PM   #1
Senior Member
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 45
synchronizing time on home network

I have smoothwall set up as my router/gateway/internet connection. I just reallized that it has a Time page for getting the time from the internet.

In order to have that time propagate through the other linux and windows pc's on my little newtork, does the smoothwall machine then have to act as an ntpd server and the other machines look to it as an ntp server or is it more normal to have each machine get the time directly from the internet. And will samba be required to pass that time on to the windows mchines?

(Seems like I had a similar question previously, but I couldn't find it in my search.)

Old 08-12-2003, 08:03 PM   #2
LQ Newbie
Registered: Aug 2003
Location: NJ
Distribution: Fedora
Posts: 17

Rep: Reputation: 0
depends on what you really want to do. at one time i ran a ntp daemon on one of my internal boxes, and it worked fine...until the day that all of the pc clocks on my network got hosed because i had to do maintainence on the ntpd box.

i settled for using Dimension 4 for my windows clients:

...and ntpdate, running as a cronjob every fifteen minutes for my linux boxes.

it's easier because now all the machines need is a net connection.
Old 08-12-2003, 09:46 PM   #3
LQ Guru
Registered: Apr 2003
Location: Maryland
Distribution: Slack 9.1,10 Mandrake 10,10.1, FedCore 2,3, Mepis 2004, Knoppix 3.6,3.7, SuSE 9.1, FreeBSD 5.2
Posts: 1,109

Rep: Reputation: 45
I use this for my windows machines, not sure how it would be on XP as I don't have or intend to have it. ATS is free and works well. It acts as either a client or server. Personally I have each box on the network get it's own time from the internet be they linux or windows, in the same way and for the same reasons as joe stated, here's the link:
Old 08-14-2003, 12:49 PM   #4
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Rep: Reputation: 31
Im using a shell script on my machines to do this. The script starts ntpd on my firewall every hour syncs the time and then stops ntpd on the firewall.

ssh firewallhost /etc/init.d/ntpd start>/dev/null
sleep 305
/usr/sbin/ntpdate >>/var/time.log 2>&1
/sbin/clock -w -u >>/var/time.log 2>&1
rm /etc/adjtime
/sbin/clock -w -u >>/var/time.log 2>&1

ssh firewallhost /etc/init.d/ntpd stop>/dev/null

Its a modified
You have to to an ssh key exchange for this to work. This way you dont have to run client and server on the same machine continously and port 123 is only intermittently open.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mandrake 9.2 network locks up from time to time Mugatu Mandriva 9 12-23-2006 04:18 PM
Synchronizing time depam Linux - Software 2 10-10-2005 06:11 AM
Time synchronizing utility jkcunningham Linux - Software 5 11-13-2004 02:17 AM
synchronizing My Documents with home - advisable? kenji1903 Linux - Networking 4 08-06-2004 02:19 AM
Newbie wanna setup up a linux network on existing home network... marvc Linux - Networking 3 03-19-2003 09:02 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:44 PM.

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