- Red Hat Enterprise Linux 6.5
- 'ntpq> peers' gives error "Request timed out" after upgrading to ntp-4.2.6p5 package.
[email@example.com ~]# ntpq ntpq> peer localhost: timed out, nothing received ***Request timed out
- Make changes as below in /etc/ntp.conf file and restart ntpd service:
either change "restrict default ignore" to "restrict -4 default ignore" or change "restrict 127.0.0.1 mask 255.255.255.255" to "restrict localhost"
- With earlier package of ntp, "restrict default ignore" restricted only IPv4.
- From test setup with earlier ntp package:
[firstname.lastname@example.org ~]# rpm -qa | grep ntp ntpdate-4.2.4p8-2.el6.x86_64 ntp-4.2.4p8-2.el6.x86_64 [email@example.com ~]# cat /etc/ntp.conf restrict default ignore restrict 127.0.0.1 mask 255.255.255.255 [firstname.lastname@example.org ~]# ntpq ntpq> peers remote refid st t when poll reach delay offset jitter ============================================================================== +clock.util.phx2 .CDMA. 1 u 82 128 377 311.936 0.384 69.294 *clock02.util.ph .CDMA. 1 u 79 128 377 312.247 0.162 58.144
- Now with latest upgraded version ntp package:
[email@example.com ~]# rpm -qa | grep ntp ntp-4.2.6p5-1.el6.x86_64 ntpdate-4.2.6p5-1.el6.x86_64 [firstname.lastname@example.org ~]# grep -v "^#" /etc/ntp.conf restrict default ignore restrict 127.0.0.1 mask 255.255.255.255 [email@example.com ~]# ntpq ntpq> peer localhost: timed out, nothing received ***Request timed out ntpq>
With old package of ntp, "restrict default ignore" restricted only IPv4 and that the reason we had statement restrict -6 default,
i.e it's the default line, before it was applied only to IPv4, now it's applied to both IPv4 and IPv6.
With the previous package and that configuration the IPv6 access wasn't restricted at all.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.