<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Date Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/date/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 14 Dec 2018 23:41:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to set up a NTP server on CentOS 7?</title>
		<link>https://www.osradar.com/how-to-set-up-a-ntp-server-centos-7/</link>
					<comments>https://www.osradar.com/how-to-set-up-a-ntp-server-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 15 Dec 2018 02:33:20 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Date]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=8396</guid>

					<description><![CDATA[<p>In an organization, there are many administrative processes that need the registry to be correct. An essential field of the records is the date and time they are made. Therefore, it is necessary that all computers have synchronized the date and time. So, to do this it is necessary to configure an NTP server. NTP [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-set-up-a-ntp-server-centos-7/">How to set up a NTP server on CentOS 7?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In an organization, there are many administrative processes that need the registry to be correct. An essential field of the records is the date and time they are made. Therefore, it is necessary that all computers have synchronized the date and time. So, to do this it is necessary to configure an NTP server.</p>
<p><a href="http://www.ntp.org/" rel="noopener">NTP</a> (Network Time Protocol) is an Internet protocol for synchronizing the time and date of computer devices on a computer network. In addition, it uses port 123 of the UDP transport layer.</p>
<p>So, let&#8217;s set up an NTP server on <a href="https://www.osradar.com/centos-7-1810-available/" rel="noopener">CentOS 7</a>.</p>
<h1>1. Upgrade the system</h1>
<p>The first step in this tutorial is to update the system. This ensures that the security patches are properly installed on your system.</p>
<p>Access your server and run.</p>
<pre class="">:~$ su
:~# yum update</pre>
<figure id="attachment_8398" aria-describedby="caption-attachment-8398" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8398" src="https://www.osradar.com/wp-content/uploads/2018/12/1-9.png" alt="1.- Upgrade the system" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/1-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/1-9-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/1-9-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/1-9-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/1-9-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/1-9-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8398" class="wp-caption-text">1.- Upgrade the system</figcaption></figure>
<p>So, that&#8217;s it. You can continue.</p>
<h1>2. Install NTP server</h1>
<p>Now it is necessary to install the NTP package. It is simple as it is available in the official repositories.</p>
<pre class="">:~# yum install ntp</pre>
<figure id="attachment_8399" aria-describedby="caption-attachment-8399" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8399" src="https://www.osradar.com/wp-content/uploads/2018/12/2-9.png" alt="2.- Install NTP" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/2-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/2-9-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/2-9-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/2-9-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/2-9-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/2-9-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8399" class="wp-caption-text">2.- Install NTP</figcaption></figure>
<p>Once the installation process is completed, it is necessary to edit the<code> /etc/ntp.con</code>f file, which is where the NTP server configuration is hosted.</p>
<p>First, go to the page where the official NTP servers are hosted. Here you locate the server closest to where the server is physically located.</p>
<figure id="attachment_8400" aria-describedby="caption-attachment-8400" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8400" src="https://www.osradar.com/wp-content/uploads/2018/12/3-9.png" alt="3.- Finding the best NTP pool for the server" width="1366" height="671" srcset="https://www.osradar.com/wp-content/uploads/2018/12/3-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/3-9-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/3-9-768x377.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/3-9-1024x503.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/3-9-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2018/12/3-9-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/3-9-855x420.png 855w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8400" class="wp-caption-text">3.- Finding the best NTP pool for the server</figcaption></figure>
<p>Find a server in the same country and add those lines to the configuration file. As I show you in the image.</p>
<pre class="">:~# nano /etc/ntp.conf</pre>
<figure id="attachment_8401" aria-describedby="caption-attachment-8401" style="width: 665px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8401" src="https://www.osradar.com/wp-content/uploads/2018/12/4-9.png" alt="4.- Adding the NTP servers to config file" width="665" height="221" srcset="https://www.osradar.com/wp-content/uploads/2018/12/4-9.png 665w, https://www.osradar.com/wp-content/uploads/2018/12/4-9-300x100.png 300w" sizes="(max-width: 665px) 100vw, 665px" /><figcaption id="caption-attachment-8401" class="wp-caption-text">4.- Adding the NTP servers to the config file</figcaption></figure>
<p>Of course, now we have to allow network members to synchronize with the server we are configuring. In addition, it is advisable to restrict clients who cannot modify NTP server settings.</p>
<figure id="attachment_8402" aria-describedby="caption-attachment-8402" style="width: 673px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8402" src="https://www.osradar.com/wp-content/uploads/2018/12/5-9.png" alt="5.- Allow synchronization with the server" width="673" height="159" srcset="https://www.osradar.com/wp-content/uploads/2018/12/5-9.png 673w, https://www.osradar.com/wp-content/uploads/2018/12/5-9-300x71.png 300w" sizes="(max-width: 673px) 100vw, 673px" /><figcaption id="caption-attachment-8402" class="wp-caption-text">5.- Allow synchronization with the server</figcaption></figure>
<p>Finally, you can include a log file to find out what&#8217;s going on with the NTP server. So, it is advisable to do this because if there is a problem viewing that file you can fix it.</p>
<figure id="attachment_8403" aria-describedby="caption-attachment-8403" style="width: 731px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8403" src="https://www.osradar.com/wp-content/uploads/2018/12/6-9.png" alt="6.- Adding a log file for NTP" width="731" height="151" srcset="https://www.osradar.com/wp-content/uploads/2018/12/6-9.png 731w, https://www.osradar.com/wp-content/uploads/2018/12/6-9-300x62.png 300w" sizes="(max-width: 731px) 100vw, 731px" /><figcaption id="caption-attachment-8403" class="wp-caption-text">6.- Adding a log file for NTP</figcaption></figure>
<h1>3. Set the Firewall rule and start the service</h1>
<p>For the NTP server to work, it is necessary to set the standard in the Firewall so that it can have access.</p>
<pre class="">:~# firewall-cmd --add-service=ntp --permanent
:~# firewall-cmd --reload</pre>
<figure id="attachment_8404" aria-describedby="caption-attachment-8404" style="width: 843px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8404" src="https://www.osradar.com/wp-content/uploads/2018/12/7-9.png" alt="7.- Setting the Firewall rule" width="843" height="190" srcset="https://www.osradar.com/wp-content/uploads/2018/12/7-9.png 843w, https://www.osradar.com/wp-content/uploads/2018/12/7-9-300x68.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/7-9-768x173.png 768w" sizes="(max-width: 843px) 100vw, 843px" /><figcaption id="caption-attachment-8404" class="wp-caption-text">7.- Setting the Firewall rule</figcaption></figure>
<p>Next, enable and start the service.</p>
<pre class="">:~# systemctl enable ntpd
:~# systemctl start ntpd</pre>
<figure id="attachment_8405" aria-describedby="caption-attachment-8405" style="width: 1077px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8405" src="https://www.osradar.com/wp-content/uploads/2018/12/8-9.png" alt="8.- Staring the service" width="1077" height="192" srcset="https://www.osradar.com/wp-content/uploads/2018/12/8-9.png 1077w, https://www.osradar.com/wp-content/uploads/2018/12/8-9-300x53.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/8-9-768x137.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/8-9-1024x183.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/8-9-1068x190.png 1068w" sizes="(max-width: 1077px) 100vw, 1077px" /><figcaption id="caption-attachment-8405" class="wp-caption-text">8.- Staring the service</figcaption></figure>
<p>Now, let&#8217;s verify the NTP server.</p>
<h1>4. Check the NTP server</h1>
<p>It is now necessary to verify that everything has gone well. run this commands to check.</p>
<pre class="">:~# ntpq -p
:~# date -R</pre>
<figure id="attachment_8406" aria-describedby="caption-attachment-8406" style="width: 777px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8406" src="https://www.osradar.com/wp-content/uploads/2018/12/9-8.png" alt="9.- Checking the server status" width="777" height="279" srcset="https://www.osradar.com/wp-content/uploads/2018/12/9-8.png 777w, https://www.osradar.com/wp-content/uploads/2018/12/9-8-300x108.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/9-8-768x276.png 768w" sizes="(max-width: 777px) 100vw, 777px" /><figcaption id="caption-attachment-8406" class="wp-caption-text">9.- Checking the server status</figcaption></figure>
<p>In case you want to synchronize with a specific server, you can do it with the following command.</p>
<pre class="">:~# ntpdate -q  0.us.pool.ntp.org</pre>
<figure id="attachment_8407" aria-describedby="caption-attachment-8407" style="width: 840px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8407" src="https://www.osradar.com/wp-content/uploads/2018/12/10-8.png" alt="10.- Using ntpd" width="840" height="219" srcset="https://www.osradar.com/wp-content/uploads/2018/12/10-8.png 840w, https://www.osradar.com/wp-content/uploads/2018/12/10-8-300x78.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/10-8-768x200.png 768w" sizes="(max-width: 840px) 100vw, 840px" /><figcaption id="caption-attachment-8407" class="wp-caption-text">10.- Using ntpd</figcaption></figure>
<p>And that&#8217;s it.</p>
<h1>Conclusion</h1>
<p>As you can see, setting up an NTP server is not a complicated thing. However, doing so guarantees that our computer equipment has a synchronization in time and date necessary for all processes can be performed properly.</p>
<p>Please share this article with your friends.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-set-up-a-ntp-server-centos-7/">How to set up a NTP server on CentOS 7?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-set-up-a-ntp-server-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
