Skip to content

hostnames in allowed_hosts works only when there is an entry in /etc/hosts file #1260

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

Open
Arvi2020 opened this issue Apr 7, 2025 · 3 comments

Comments

@Arvi2020
Copy link

Arvi2020 commented Apr 7, 2025

hostname entries in ncpa.cfg allowed_
We get a 403 error when the connection is attempted from the host mentioned in ncpa.cfg . This has been tried on NCPA 2.4.0 on Solaris 11 and NCPA 3.1.1 on Windows Server 2016 . (Though ping works fine, confirming no issue with DNS resolution)
The connection works fine ONLY when there is an entry in /etc/hosts file
The same behavior is observed on both Solaris 11 and Windows Server 2016

Please take note of this bug and fix with the next release
Also , if a fix for this can be provided for NCPA 2.4.0 on Solaris11

Thanks

@ne-bbahn
Copy link
Contributor

This may be the same issue here: https://support.nagios.com/forum/viewtopic.php?t=53990

@ne-bbahn
Copy link
Contributor

We have some code handling if dual-stack mode fails in NCPA 3, but it may not be properly handling allowed_hosts and it may not be implemented in NCPA 2. I'll investigate.
My hopes are to get NCPA 3 working on Solaris, in which case you'd just have to migrate to NCPA 3 if it's being handled properly. If not, I'll try to have a fix in 3.1.4/3.2 or whatever the next release will be called.

@Arvi2020
Copy link
Author

Please share steps how to get NCPA 3 working on Solaris
The last build available for Solaris 11 is NCPA 2.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants