New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allowed_hosts does not work with a hostname resolving to an IPv6 address #31
Comments
Update: It doesn't work with separate hostnames for IPv4 and IPv6 either.
in nrpe.cfg results in the log entries
even though
Putting
into nrpe.cfg instead results in connections from 2001:db8:f00:ba8::28 being allowed as intended. I also started a discussion about this issue at https://support.nagios.com/forum/viewtopic.php?f=7&t=35430 . |
Dual-labeling as bug+enhancement until we can determine if this was supposed to work and is not (bug) or if it never worked and needs to be added (enhancement). |
Fix for issue #31 Program was using gethostbyname() which will not return IPv6 addresses. Changed it to use getaddrinfo().
Fixed with commit 1ac9909 |
A fully IPv6 dual stack enabled network is monitored by Nagios 3.5.1 installed from EPEL on a CentOS 6.7 server. Monitored hosts run NRPE agents, all of which are configured to run as daemons (not via xinetd) with the configuration line
where
bombur.example.com
is the Nagios server's FQDN which resolves in DNS to both the IPv4 and IPv6 addresses:This works fine for hosts running NRPE releases before 2.15 which lack IPv6 support and ony accept IPv4 connections. But on hosts with NRPE 2.15, which does support IPv6, connections from the Nagios server are rejected with the log message:
Apparently the
allowed_hosts=<hostname>
directive allows only the IPv4 address of the given host, not its IPv6 address.The text was updated successfully, but these errors were encountered: