I can only get results from:
ntpq -p localhost
or
ntpq -p 127.0.0.1
If, from the same server, I try it as either the external IP address or domain name then it times out with no response.
ntpq -p files.tickzoom.com
or
ntpq -p 50.57.65.92
Those both time out from the same machine.
I disabled iptables
. So iptables -L
shows:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
The goal, actually is to access ntpd from other machines. But they can't access that IP or DNS either even with firewall off.
At first I went round and round with iptables
rules
before disabling iptables
and realizing I can't do this
even with the firewall off.
Please clue my in to what's going on.
It looks like you need to modify the ntp configuration
/etc/ntp.conf
file to allow requests to the other interfaces of the server besides the loopback. The entry to modify is thenoquery
field in therestrict
line. Thenoquery
field prevents everyone from querying the status of your time server.For IPv4,
change to
Then restart the ntp service. You might need to do more reading on the
modify
,peer
, andquery
field in therestrict
for a better setup.At the same time, make sure ntp is listening on all interfaces using netstat, using the
-u
switch for udpnetstat -anu | grep 123