#433 closed defect (fixed)
nsc.ini - cidr netmask with non full-byte ipv4
|Reported by:||freund||Owned by:||MickeM|
|Severity:||Support Requests||Keywords:||hostmask cidr netmask allowed_hosts|
I am unable to properly use the nsc.ini config-entry "allowed_hosts" for a hostmask: e.g. "10.0.0.0/18", it then not allowed a host from 10.0.10.0/23 to query nsclient++, although these hosts are inside the broader mask, I expect 10.0.0.0 - 10.0.63.255 to be in there.
I played around a bit and found out that only full-byte-masks did work. e.g. /8 /16 /24.
This was checked on w2k3-x64 with actual nsclient++ and reference check_nt from "nagios-plugins-nt-1.4.15-2.fc14.x86_64" on a fresh machine.
My workaround was to allow /16 instead of /18 now, because others are blocked by router-acls anyways, but this might be of interest to you.