0

I am trying to configure ntp to synchronize the time of my server. When I run ntpdate -dq 1.rhel.pool.ntp.org I got the following error.

no server suitable for synchronization found

I am on professional environment, so I guess there is a firewall blocking the connection to ntp server but I don't know how to prove it and solve it.

I tried to follow this post : NTP can't synchronise or find a suitable server but I am not able to ping 1.rhel.pool.ntp.org, the ping command is not responding.

I am using Red Hat 4.1.2. Could you please help me to investigate and find the root cause ?

Edit

Based on the comment, you could the the output of some commands

[root@MY ~]# iptables -L -n -v
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
Flows
  • 101

1 Answers1

1
24 Jun 16:46:38 ntpdate[30431]: ntpdate 4.2.6p5@1.2349-o Fri Apr 10 19:04:04 UTC 2015 (1)
server 91.148.192.49, stratum 2, offset 0.029175, delay 0.03041
server 95.211.224.12, stratum 2, offset 0.025579, delay 0.03125
server 37.97.195.195, stratum 2, offset 0.025274, delay 0.02983
server 213.109.127.195, stratum 2, offset 0.023653, delay 0.03355
24 Jun 16:46:54 ntpdate[30431]: adjust time server 37.97.195.195 offset 0.025274 sec

You mentioned you're on a professional environment. That being said, its quite common to block access to any NTP from-to the WAN and just allow one specific machine to update. That turning into your local NTP server.

Please check: You're not blocking the ports, using iptables:

iptables -L -n -v | grep 123

If yuou're unable to find anything there, then probably you're being blocked upstream, to check if the server is up and running:

https://keetweej.vanheusden.com/query_ntp_do.php

You will find an output equal to the one I provided above against the NTP server you provided.

Unfortunately if you're being blocked upstream you should contact the provider-IT person to either unblock your server or ask what NTP server you should query?.

ddemuro
  • 21
  • 5