ntp
Добавлено: 2007-06-14 10:55:10
не могу понят приницп. на шлюзе поднял ntpd
шлюз с инетом часы сверяет - все ок. а как сделать чтобы компы из локалки на фре обновляли время, но не с инетом, а с фрей?
правиьно ли я понимаю, что надо править
а потом в rc.conf добавить:
? у меня сомнения.. проверить сейчас нет возможности. мне кажется что net.conf на локальных компах надо как-то по-другому оформить
ы? 
Код: Выделить всё
/etc/rc.conf
ntpdate_enable="YES"
ntpdate_flags="-b europe.pool.ntp.org europe.pool.ntp.org europe.pool.ntp.org"
/etc/ntp.conf
server europe.pool.ntp.org
server europe.pool.ntp.org
server europe.pool.ntp.org
server europe.pool.ntp.org
server europe.pool.ntp.org
driftfile /var/db/ntp.drift
restrict default ignore
restict 127.0.0.1
restrict europe.pool.ntp.org noquery notrap
restrict 192.168.0.0 mask 255.255.255.0 nomodify notrap
/etc/rc.conf
ntpd_enable="YES"
ntpd_flags="-c /etc/ntp.conf -l /var/log/ntpd.log -p /var/run/ntpd.pid"
правиьно ли я понимаю, что надо править
Код: Выделить всё
/etc/ntp.conf
server 192.168.10.8
driftfile /var/db/ntp.drift
restrict 192.168.0.0 mask 255.255.255.0 nomodify notrap nopeerКод: Выделить всё
/etc/rc.conf
ntpd_enable="YES"
ntpd_flags="-c /etc/ntp.conf -l /var/log/ntpd.log -p /var/run/ntpd.pid"