<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Настройка ntp сервера]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=25193&amp;type=atom" />
	<updated>2012-11-17T08:15:11Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=25193</id>
		<entry>
			<title type="html"><![CDATA[Re: Настройка ntp сервера]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=309568#p309568" />
			<content type="html"><![CDATA[<p>для начала проверить правила фаервола на тему исходящего/входящего трафика по udp:123<br />далее можно посмотреть на ntpdc (сервис ntpd должен быть запущен, вывод с рабочей машинки):<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">$ ntpdc -c sysinfo<br />system peer:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 192.168.115.81<br />system peer mode:&nbsp; &nbsp; &nbsp;client<br />leap indicator:&nbsp; &nbsp; &nbsp; &nbsp;00<br />stratum:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 12<br />precision:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -20<br />root distance:&nbsp; &nbsp; &nbsp; &nbsp; 0.00058 s<br />root dispersion:&nbsp; &nbsp; &nbsp; 0.03114 s<br />reference ID:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[192.168.115.81]<br />reference time:&nbsp; &nbsp; &nbsp; &nbsp;d451c494.47a3ca2f&nbsp; Sat, Nov 17 2012 17:08:52.279<br />system flags:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;auth monitor ntp kernel stats <br />jitter:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.000427 s<br />stability:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.000 ppm<br />broadcastdelay:&nbsp; &nbsp; &nbsp; &nbsp;0.003998 s<br />authdelay:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.000000 s<br /></div><br />В зависимости от результата предпринимать соответствующие действия</p>]]></content>
			<author>
				<name><![CDATA[afanasev.p]]></name>
				<uri>https://linuxforum.ru/profile.php?id=25834</uri>
			</author>
			<updated>2012-11-17T08:15:11Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=309568#p309568</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Настройка ntp сервера]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=309559#p309559" />
			<content type="html"><![CDATA[<p>Тек ребят, наметились какие-то подвижки с мертвой точки. После остановки ntpd и выполнения ntpdate srvr001.kcollege.lan, время синхронизировалось. Вопрос: почему не работает демон ntpd?<br />P.S.<br />При выполнении команды ntpdate брэндмауэр на винде был включен. Следовательно, ntp-сервер винды работает нормально. Что где прописать, что б этот ntpd заработал?</p>]]></content>
			<author>
				<name><![CDATA[nkl]]></name>
				<uri>https://linuxforum.ru/profile.php?id=24763</uri>
			</author>
			<updated>2012-11-17T05:42:35Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=309559#p309559</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Настройка ntp сервера]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=309558#p309558" />
			<content type="html"><![CDATA[<p>Вот что выдает команда ntpdate:<br /></p><div class="codebox"><pre><code>[root@localhost sysconfig]# ntpdate srvr001.kcollege.lan
17 Nov 17:28:37 ntpdate[6420]: the NTP socket is in use, exiting</code></pre></div>]]></content>
			<author>
				<name><![CDATA[nkl]]></name>
				<uri>https://linuxforum.ru/profile.php?id=24763</uri>
			</author>
			<updated>2012-11-17T05:30:26Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=309558#p309558</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Настройка ntp сервера]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=309556#p309556" />
			<content type="html"><![CDATA[<p>Здравствуйте. Помогите мне пожалуйста настроить ntp клиент в системе CentOS 6.2.<br />Установил ntp, в /etc/ntp.conf прописал следующее:<br /></p><div class="codebox"><pre><code># For more information about this file, see the man pages
# ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5).

driftfile /var/lib/ntp/drift

# Permit time synchronization with our time source, but do not
# permit the source to query or modify the service on this system.
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery

# Permit all access over the loopback interface.  This could
# be tightened as well, but to do so would effect some of
# the administrative functions.
restrict 127.0.0.1
restrict -6 ::1

# Hosts on local network are less restricted.
#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
#server 0.centos.pool.ntp.org
#server 1.centos.pool.ntp.org
#server 2.centos.pool.ntp.org
server srvr001.kcollege.lan #Это мой сервер времени
#broadcast 192.168.1.255 autokey        # broadcast server
#broadcastclient                        # broadcast client
#broadcast 224.0.1.1 autokey            # multicast server
#multicastclient 224.0.1.1              # multicast client
#manycastserver 239.255.254.254         # manycast server
#manycastclient 239.255.254.254 autokey # manycast client

# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available. 
#server 127.127.1.0     # local clock
#fudge  127.127.1.0 stratum 10  

# Enable public key cryptography.
#crypto

includefile /etc/ntp/crypto/pw

# Key file containing the keys and key identifiers used when operating
# with symmetric key cryptography. 
keys /etc/ntp/keys
# Specify the key identifiers which are trusted.
#trustedkey 4 8 42

# Specify the key identifier to use with the ntpdc utility.
#requestkey 8

# Specify the key identifier to use with the ntpq utility.
#controlkey 8

# Enable writing of statistics records.
#statistics clockstats cryptostats loopstats peerstats</code></pre></div><p>Вот что говорит nslookup по имени srvr001.kcollege.lan:<br /></p><div class="codebox"><pre><code>[root@localhost etc]# nslookup
&gt; srvr001.kcollege.lan
Server:        192.168.0.1
Address:    192.168.0.1#53

Name:    srvr001.kcollege.lan
Address: 192.168.0.1</code></pre></div><p>И так же пинг:<br /></p><div class="codebox"><pre><code>[root@localhost etc]# ping srvr001.kcollege.lan
PING srvr001.kcollege.lan (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=128 time=0.236 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=128 time=0.209 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=128 time=0.243 ms
64 bytes from 192.168.0.1: icmp_seq=4 ttl=128 time=0.229 ms</code></pre></div><p>Есть сомнения по поводу открытости/закрытости 123 порта у сервера времени (Windows server 2008 R2, он же PDC). Сомнения эти развеять могу разве что полным отключением брэндмаэра на этой системе. Но хотелось бы как то из консольки CentOS узнать точно, что UDP трафик по этому порту в винде проходит. Какой командой это можно сделать? И почему все таки CentOS не получает время от указанного сервера?</p>]]></content>
			<author>
				<name><![CDATA[nkl]]></name>
				<uri>https://linuxforum.ru/profile.php?id=24763</uri>
			</author>
			<updated>2012-11-17T05:05:58Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=309556#p309556</id>
		</entry>
</feed>
