Страница 1 из 1

совсем не стартует ntp

Добавлено: 2009-07-28 9:21:19
Happy_demon
доброе время!

Код: Выделить всё

[root@base /etc]# uname -r
7.2-RELEASE

Код: Выделить всё

[root@base /etc]# cat /etc/ntp.conf
driftfile /etc/ntp.drift
logfile /var/log/ntp.log
server 62.149.2.1 prefer
restrict 62.149.2.1 noquery notrap
server 195.13.1.153
restrict 195.13.1.153 noquery notrap
server 130.159.196.118
restrict 130.159.196.118 noquery notrap
restrict 192.168.20.0 mask 255.255.255.0 notrust nomodify notrap

Код: Выделить всё

[root@base /etc]# cat /etc/rc.conf | grep ntp
ntpdate_enable="yes"
ntpdate_flags="-u 62.149.2.1"
ntpdate_program="/usr/sbin/ntpdate"
xntpd_enable="yes"
#xntpd_flags="-4 -A -l /var/log/ntp.log -p var/run/ntpd.pid"
xntpd_flags="-4 -p /etc/ntp/ntpd.pid"
xntpd_program="/usr/sbin/ntpd"

Код: Выделить всё

[root@base /etc]# ipfw list | grep 123
04898 allow udp from any to any dst-port 123 keep-state
вроде все есть. с такими же настройками на другом сервере все работает и синхронизируется и время клиентам отдает. а здесь просто тишина. ни в логах, ни дрифт файл не создается. ни стартует. не подскажете, куда смотреть?

Re: совсем не стартует ntp

Добавлено: 2009-07-28 9:25:13
schizoid
а что это за xntpd ?
при старте что-то говорит? sockstat | grep 123 ?

Re: совсем не стартует ntp

Добавлено: 2009-07-28 9:32:17
Happy_demon

Код: Выделить всё

[root@base /etc]# sockstat | grep 123
clamav   freshclam  1123  4  stream -> /var/db/samba/winbindd_privileged/pipe
не слушает в общем никто 123-ий порт

Re: совсем не стартует ntp

Добавлено: 2009-07-28 9:40:33
schizoid
а почему xntpd ?

Re: совсем не стартует ntp

Добавлено: 2009-07-28 9:46:48
Happy_demon
schizoid писал(а):а почему xntpd ?
что почему?
http://www.opennet.ru/base/sys/ntpd_setup.txt.html
http://www.opennet.ru/base/sys/ntp_sync.txt.html

Re: совсем не стартует ntp

Добавлено: 2009-07-28 10:03:00
hizel
дату статьи своей зацените :-\
http://www.freebsd.org/doc/en_US.ISO885 ... k-ntp.html

Re: совсем не стартует ntp

Добавлено: 2009-07-28 12:55:12
Happy_demon
ну да :oops:

Код: Выделить всё

ntpdate_enable="yes"
ntpdate_flags="-u 62.149.2.1"
ntpdate_program="/usr/sbin/ntpdate"
ntpd_enable="yes"
#xntpd_flags="-4 -A -l /var/log/ntp.log -p var/run/ntpd.pid"
ntpd_flags="-4 -p /var/run/ntpd.pid -l /var/log/ntp.log"
ntpd_program="/usr/sbin/ntpd"

Код: Выделить всё

[root@base ~]# tail /var/log/ntp.log
28 Jul 13:49:27 ntpd[89523]: Listening on interface #1 wildcard, ::#123 Disabled
28 Jul 13:49:27 ntpd[89523]: Listening on interface #2 sis0, 192.168.20.2#123 Enabled
28 Jul 13:49:27 ntpd[89523]: Listening on interface #3 em0, внешний_айпи#123 Enabled
28 Jul 13:49:27 ntpd[89523]: Listening on interface #4 lo0, fe80::1#123 Enabled
28 Jul 13:49:27 ntpd[89523]: Listening on interface #5 lo0, ::1#123 Enabled
28 Jul 13:49:27 ntpd[89523]: Listening on interface #6 lo0, 127.0.0.1#123 Enabled
28 Jul 13:49:27 ntpd[89523]: Listening on interface #7 tun0, 192.168.0.1#123 Enabled
28 Jul 13:49:27 ntpd[89523]: Listening on routing socket on fd #28 for interface updates
28 Jul 13:49:27 ntpd[89523]: kernel time sync status 2040
28 Jul 13:49:27 ntpd[89523]: frequency initialized 12.067 PPM from /etc/ntp.drift

Код: Выделить всё

[root@base ~]# sockstat | grep 123
root     ntpd       89523 20 udp4   *:123                 *:*
root     ntpd       89523 21 udp6   *:123                 *:*
root     ntpd       89523 22 udp4   192.168.20.2:123      *:*
root     ntpd       89523 23 udp4   внешний_айпи:123      *:*
root     ntpd       89523 24 udp6   fe80:4::1:123         *:*
root     ntpd       89523 25 udp6   ::1:123               *:*
root     ntpd       89523 26 udp4   127.0.0.1:123         *:*
root     ntpd       89523 27 udp4   192.168.0.1:123       *:*
ну вроде все нормально

Код: Выделить всё

[root@base ~]# ntpq -c peers
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 zeus.colocall.n 62.149.0.30      2 u    4   64    7   34.882   13.451  15.733
 ntp2.belbone.be 195.13.23.6      2 u    5   64    7   45.046  -34.877  12.892
 ntp0.cis.strath 192.93.2.20      2 u   65   64    3   59.198   16.002  20.402
а виндовые клиенты не получают время(((

Код: Выделить всё

C:\Documents and Settings\user>net time \\192.168.20.2 /set /yes
Системная ошибка 53.

Не найден сетевой путь.

Re: совсем не стартует ntp

Добавлено: 2009-07-28 13:00:43
schizoid
ну то уже в другой раздел ;)

Re: совсем не стартует ntp

Добавлено: 2009-07-28 13:13:16
hizel
интересно как оно без ntp.conf рапотает, там же рестрикшены\аксессы надо вписывать :-\