Opened 2 years ago

Closed 16 months ago

#433 closed defect (fixed)

nsc.ini - cidr netmask with non full-byte ipv4

Reported by: freund Owned by: MickeM
Priority: 1 Milestone: 0.3.9
Component: Core Version: 0.3.8
Severity: Support Requests Keywords: hostmask cidr netmask allowed_hosts
Cc:

Description

Hello together!

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.

best regards

Christian Freund

Change History (1)

comment:1 Changed 16 months ago by mickem

  • Milestone set to 0.3.9
  • Resolution set to fixed
  • Status changed from new to closed

IIRC I fixed this a while back for 0.3.9

Note: See TracTickets for help on using tickets.