Hi,
I need to scan a /17 range but I believe this is larger than the default CIDR limit. Can the limit be increased or is there another way around this?
Thank you in advance
Alsie
Hi,
I need to scan a /17 range but I believe this is larger than the default CIDR limit. Can the limit be increased or is there another way around this?
Thank you in advance
Alsie
Yes, this is true,
You can adjust the --max-ips-per-target
as a startup option when starting gvmd, or in the systemd config file.
If you find you cannot reach the /17 CIDR limit, you may want to check the constants set in gvmd/src/manage.h. I’m not sure how these interact with the command arguments. Obviously, this means you would have to recompile with the changes.
EDIT: Well it looks like you would need to set the constant MANAGE_ABSOLUTE_MAX_IPS_PER_TARGET
since I don’t believe it can be set from argument but it’s used to limit max_ips_per_target
such as here in gvmd.c and perhaps other places as well.