centos 7 NTP config

Manandrana manamboatra ntp.conf aho amin'ny mpizara stratum 1 ary koa VM mitovy amin'ny tambajotra mitovy. Ny rakitra config dia miraikitra eto ambany. Ny olana dia ny mpizara amin'ny adiresy IP 10.6.11.171 dia toa tsy mahatratra: 10.6.11.170. Ny lalàna firewall rehetra dia apetraka. Afaka mifampiresaka amin'ny: 10.250.156.254 izy ireo. Misy hevitra ve?

Ny rakitra config dia toy ny:

# For more information about this file, see the man pages
# ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5).
driftfile /var/lib/ntp/drift
# Permit time synchronization with our time source, but do not
# permit the source to query or modify the service on this system.
#restrict default nomodify notrap  noquery
restrict 10.0.0.0 mask 255.0.0.0 nomodify notrap

# Permit all access over the loopback interface.  This could
# be tightened as well, but to do so would effect some of
# the administrative functions.
restrict 127.0.0.1 
restrict ::1
# Hosts on local network are less restricted.
#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server 10.250.156.254 iburst prefer
peer 10.6.11.170 iburst
#broadcast 192.168.1.255 autokey    # broadcast server
#broadcastclient            # broadcast client
#broadcast 224.0.1.1 autokey        # multicast server
#multicastclient 224.0.1.1      # multicast client
#manycastserver 239.255.254.254     # manycast server
#manycastclient 239.255.254.254 autokey # manycast client

# Enable public key cryptography.
#crypto
includefile /etc/ntp/crypto/pw
# Key file containing the keys and key identifiers used when operating
# with symmetric key cryptography. 
keys /etc/ntp/keys
# Specify the key identifiers which are trusted.
#trustedkey 4 8 42

# Specify the key identifier to use with the ntpdc utility.
#requestkey 8
# Specify the key identifier to use with the ntpq utility.
#controlkey 8
# Enable writing of statistics records.
#statistics clockstats cryptostats loopstats peerstats
# Disable the monitoring facility to prevent amplification attacks using ntpdc
# monlist command when default restrict does not include the noquery flag. See
# CVE-2013-5211 for more details.
# Note: Monitoring will not be disabled with the limited restriction flag.
disable monitor
0
задан 10 August 2019 в 05:58
1 ответ

У вас есть 3 временных источника:

  • 10.250.156.254 - это доступный источник страта 1, но ваша система имеет большое смещение от него (-7.5331 секунды)
  • 10. 7.11.170 и 10.6.11.170 - это источники из группы 2, синхронизирующиеся с 10.250.156.254, и оба они недоступны.

Проверьте свои брандмауэры и ограничения доступа на 10.250.156.25. Если ntpdate -d 10.250.156.25 показывает приходящие ответы, то, скорее всего, у вас есть брандмауэр, который разрешает NTP-пакеты, приходящие с высоких портов, но не с порта 123.

.
0
ответ дан 5 December 2019 в 01:28

Теги

Похожие вопросы