дошел до установки настройки сервера времени, которым будут пользоваться клиенты сети.
Установка:
Код: Выделить всё
pkg install ntp
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
ntp: 4.2.8p18
Number of packages to be installed: 1
The process will require 6 MiB more space.
2 MiB to be downloaded.
Proceed with this action? [y/N]: y
[1/1] Fetching ntp-4.2.8p18.pkg: 100% 2 MiB 917.7kB/s 00:02
Checking integrity... done (0 conflicting)
[1/1] Installing ntp-4.2.8p18...
[1/1] Extracting ntp-4.2.8p18: 100%
=====
Message from ntp-4.2.8p18:
--
Please add
ntpd_program="/usr/local/sbin/ntpd"
ntpdate_program="/usr/local/sbin/ntpdate"
to your /etc/rc.conf or run
sysrc ntpd_program="/usr/local/sbin/ntpd"
sysrc ntpdate_program="/usr/local/sbin/ntpdate"
to enable ntp from ports/packages instead of base ntp.
Код: Выделить всё
# The option `iburst' is used for faster initial synchronization.
#
#server 0.ru.pool.ntp.org iburst
#server 2.ru.pool.ntp.org iburst
server ntp.ix.ru iburst
server ntp2.stratum2.ru iburst
server ntp3.stratum2.ru iburst
server ntp4.stratum2.ru iburst
server ntp4.ntp-servers.net iburst
server ntp.sstf.nsk.ru iburst
driftfile /var/log/drift
logfile /var/log/ntp.log
# See http://support.ntp.org/bin/view/Support/AccessRestrictions
# for more information.
# The following settings allow unrestricted access from the localhost
restrict 127.0.0.1
#restrict ::1
restrict 172.16.0.0 mask 255.255.0.0 nomodify notrap
#
# If a server loses sync with all upstream servers, NTP clients
# no longer follow that server. The local clock can be configured
# to provide a time source when this happens, but it should usually
# be configured on just one server on a network. For more details see
# http://support.ntp.org/bin/view/Support/UndisciplinedLocalClock
# The use of Orphan Mode may be preferable.
#
#server 127.127.1.0
#fudge 127.127.1.0 stratum 10
Код: Выделить всё
#service ntpd start
Код: Выделить всё
# ps -ax | grep ntp
31457 - Ss 0:00,89 /usr/local/sbin/ntpd -p /var/db/ntp/ntpd.pid -c /etc/ntp.conf
Запросил:
Код: Выделить всё
# ntpd -q
21 Aug 09:12:58 ntpd[60916]: ntpd 4.2.8p16-a (1): Starting
21 Aug 09:12:58 ntpd[60916]: Command line: ntpd -q
21 Aug 09:12:58 ntpd[60916]: ----------------------------------------------------
21 Aug 09:12:58 ntpd[60916]: ntp-4 is maintained by Network Time Foundation,
21 Aug 09:12:58 ntpd[60916]: Inc. (NTF), a non-profit 501(c)(3) public-benefit
21 Aug 09:12:58 ntpd[60916]: corporation. Support and training for ntp-4 are
21 Aug 09:12:58 ntpd[60916]: available at https://www.nwtime.org/support
21 Aug 09:12:58 ntpd[60916]: ----------------------------------------------------
21 Aug 09:12:58 ntpd[60916]: proto: precision = 0.079 usec (-24)
21 Aug 09:12:58 ntpd[60916]: basedate set to 2018-08-07
21 Aug 09:12:58 ntpd[60916]: gps base set to 2018-08-12 (week 2014)
21 Aug 09:12:58 ntpd[60916]: initial drift restored to 0.000000
21 Aug 09:12:58 ntpd[60916]: switching logging to file /var/log/ntp.log
21 Aug 09:12:58 ntpd[60916]: unable to bind to wildcard address :: - another process may be running - EXITING
Код: Выделить всё
d st t when poll reach delay offset jitter
==============================================================================
ntp.ix.ru .INIT. 16 u - 1024 0 0.000 +0.000 0.000
dot.kkursor.ru .INIT. 16 u - 1024 0 0.000 +0.000 0.000
rnis-app2.rnis6 .INIT. 16 u - 1024 0 0.000 +0.000 0.000
monitoring.fine .INIT. 16 u - 1024 0 0.000 +0.000 0.000
88.147.254.230 .INIT. 16 u - 1024 0 0.000 +0.000 0.000
80.242.83.227 ( .INIT. 16 u - 1024 0 0.000 +0.000 0.000
Как быть? Поискал подобные проблемы в инете..
Есть похожие.. Но исправление этой ошибки по тем советам не помогли..
Может у кого есть идеи?