URL: https://www.opennet.ru/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID1
Нить номер: 87353
[ Назад ]

Исходное сообщение
"NTP в Debian"

Отправлено Mant2kis00 , 19-Ноя-09 16:48 
Стоит Debian Lenny 5
не могу настроить NTP сервер
Вот конфиг:
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help

# ntpd will use syslog() if logfile is not defined
logfile /var/log/ntpd.log
driftfile /var/lib/ntp/ntp.drift

# Enable this if you want statistics to be logged.
statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable


# You do need to talk to an NTP server or two (or three).
#server ntp.your-provider.example

# pool.ntp.org maps to about 1000 low-stratum NTP servers.  Your server will
# pick a different set every time it starts up.  Please consider joining the
# pool: <http://www.pool.ntp.org/join.html>
server ntp0.zenon.net minpoll 10 maxpoll 14
server ntp1.zenon.net minpoll 10 maxpoll 14

# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
# details.  The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
# might also be helpful.
#
# Note that "restrict" applies to both servers and clients, so a configuration
# that might be intended to block requests from certain clients could also end
# up blocking replies from your own upstream servers.

# By default, exchange time with everybody, but don't allow configuration.
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery

# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::1

# Clients from this (example!) subnet have unlimited access, but only if
# cryptographically authenticated.
restrict 10.0.0.0 mask 255.0.0.0


# If you want to provide time to your local subnet, change the next line.
# (Again, the address is an example only.)
broadcast 10.0.0.0 mask 255.0.0.0 nomodify notrap

# If you want to listen to time broadcasts on your local subnet, de-comment the
# next lines.  Please do this only if you trust everybody on the network!

disable auth
#broadcastclient


вот чё он быкует?
ntpq -p \ pe

remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
ntp0.zenon.net  .GPS.            1 u  570 1024    1   25.563   -7.702   0.001
ntp1.zenon.net  195.2.64.5       2 u  569 1024    1   12.760    0.717   0.001

после sudo /etc/init.d/ntp restart

А у других компов в локалке тоже под линуксом мой айпишник Status "Down" в SNTP настройке.
Народ HELP! *SOS*


Содержание

Сообщения в этом обсуждении
"NTP в Debian"
Отправлено Andrey Mitrofanov , 23-Ноя-09 13:17 
>вот чё он быкует?
>ntpq -p \ pe
>
> remote          
>refid      st t when poll reach   delay   offset  jitter
>=====
> ntp0.zenon.net  .GPS.            1 u  570 1024    1   25.563   -7.702   0.001
> ntp1.zenon.net  195.2.64.5       2 u  569 1024    1   12.760    0.717   0.001

Во-первых, это статус "чужих" серверов. Смотри ещё и свой, localhost или где он у тебя.

>после sudo /etc/init.d/ntp restart
>А у других компов в локалке тоже под линуксом мой айпишник Status
>"Down" в SNTP настройке.

А во-вторых, именно после _перезапуска_ сервиса он некоторое время вообще не отвечает на запросы клиентов -- пока "стратум не наберёт", насколько я понимаю.

Некоторые(?) клиенты могут видеть ответ сервера, но не используют его "принципиально", если стратум "большой" (5-6 afair для ntpdate или ntpd...)

И ещё, если разница с источником больше 3 минут, кажется, то ntpd не будет двигать системное время. На такие случаи, например, ntpdate при загрузке пускают -- до запуска ntpd.

>Народ HELP! *SOS*