LinuxQuestions.org
Help answer threads with 0 replies.
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 10-27-2016, 11:19 PM   #1
SophiaL
LQ Newbie
 
Registered: Oct 2016
Posts: 5

Rep: Reputation: Disabled
How do I time synchronize servers without using an external NTP server?


Dear All,

Our server are not connected with Internet due to office security policy. But we want to run linux ntp server to synchronize all our devices including Firewall,Router,Switches,Servers. Please help me to setup the ntp server with using external public NTP server update. Does anyone have a working configuration?
 
Old 10-28-2016, 02:45 AM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Plenty of hits on google. However, bear in mind that unless you have a server with a proper real time clock installed your machines will drift from the correct time possibly by a significant amount depending upon the server designated as the time source. You could get around that by having one machine allowed to pick up the time from an internet source and have all others take their time from that.
 
Old 10-28-2016, 02:51 AM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,307
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Which distro and which version of NTPd are you using?

If it's ntpd from ntp.org then there is a configuration file, /etc/ntp.conf, which contains a list of servers. In that you can on the clients comment out the existing list and replace the list with your local NTP server. Then all machines pointing at that one server will at least be in sync. You can see more information in the manual page for ntp.conf

Code:
man ntp.conf
In order to turn one machine into an NTP server, you need to open port 123 in the machines's own firewall on the machine that will serve. You also need to tell ntpd to serve time, but many default configurations do that for you by default. If you want the NTP server and clients to authenticate when checking time, that will have to be set up.

Also, there are some peripherals you can buy to have your server be a stratum 1 time server.
 
Old 10-28-2016, 10:00 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940
It's actually quite common, within a corporate network, to create a corporate time-server within that network. Then, only this one machine needs to reach out to an external source to set its own clock. Every other machine synchronizes to that machine's clock, and the messages are simply passing back-and-forth within the company network.
 
1 members found this post helpful.
Old 10-28-2016, 03:03 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
If you want an external time source then you will have to connect some machine to the web. That machine could be a number of devices from soho routers to virtual machine to dedicated hardware.

Almost every major distro has ntp ability and they have help pages on those topics. Here is one example. http://www.thegeekstuff.com/2014/06/...-server-client

If you want to get wild then they make time sources that sync over LF or public TV channel times or GPS.
 
  


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 configuration in client to synchronize with NTP server. antnish Linux - General 12 04-01-2013 01:49 PM
[SOLVED] How to synchronize time on 2 server CentOS (do not use NTP) huydq_bk Linux - Server 5 02-14-2012 12:07 PM
Synchronize time on several AIX servers ? Vilius AIX 1 12-15-2008 07:34 AM
Need a script to synchronize with public time servers basis1980 Linux - Newbie 3 11-28-2007 09:34 AM
Time Synchronize or NTP Management gurl4sh25 Linux - Software 5 06-04-2007 03:39 PM

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

All times are GMT -5. The time now is 11:21 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