[CentOS] Problem with ntp

Paul Heinlein
Mon, 09 Mar 2015 15:42:52 -0000

On Mon, 9 Mar 2015, C.L. Martinez wrote:

> Hi all,
>
> I have a problem with ntpd daemon in my CentOS7 vm. When I try to
> list peers, command fails: [....]
>
> [root at c7tst ntpstats]# ntpq
> ntpq>  pe
> ntpq: read: Connection refused
> ntpq>

Does "ntpq -4 -c peer" work? If so, then the problem is related to
access via IPv6 and this line in ntp.conf:

> #  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

Uncommnent the IPv6 restrict entry, restart ntpd, and try again.

--
Paul Heinlein
heinlein at madboa.com
45?38' N, 122?6' W