В первые столкнулся с такой проблемой.
На FreeBSD 7.0 Stable поднимаю ntpd:
Код: Выделить всё
cat /etc/ntp.conf
server 193.125.143.173
server 80.68.242.188
server 84.204.87.243
server 193.124.11.11
restrict 127.0.0.1
restrict pool.ntp.org noquery notrap
restrict 0.pool.ntp.org noquery notrap
restrict 1.pool.ntp.org noquery notrap
restrict 2.pool.ntp.org noquery notrap
restrict 192.168.хх.0 mask 255.255.254.0 nomodify notrap
restrict 192.168.уу.0 mask 255.255.255.0 nomodify notrap
driftfile /etc/ntp.drift
Код: Выделить всё
cat /etc/rc.conf | grep ntp
ntpd_enable="YES" # Run ntpd Network Time Protocol (or NO).
ntpd_program="/usr/sbin/ntpd" # path to ntpd, if you want a different one.
ntpd_config="/etc/ntp.conf" # ntpd(8) configuration file
ntpd_sync_on_start="YES" # Sync time on ntpd startup, even if offset is high
ntpd_flags="-p /var/run/ntpd.pid -f /etc/ntp.drift"
Код: Выделить всё
sockstat
root ntpd 896 5 udp4 192.168.13.186:123 *:*
root ntpd 896 6 udp4 192.168.15.100:123 *:*
Код: Выделить всё
ntpq -p -n
remote refid st t when poll reach delay offset jitter
==============================================================================
193.125.143.173 193.125.143.172 3 u 62 64 1 111.101 -1.341 0.002
80.68.242.188 193.124.11.11 3 u 61 64 1 111.389 5.339 0.002
84.204.87.243 62.117.76.142 2 u 61 64 1 123.199 0.245 0.002
193.124.11.11 62.117.76.141 2 u 62 64 1 120.399 2.304 0.002
Код: Выделить всё
telnet localhost 123
Trying ::1...
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host