scanning a /17 range

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. :slight_smile:

1 Like

Is there a reason for that limit?

EDIT: When doing a Host Discovery Scan, i think you need to be cautious. “Alive scan finished in 68 seconds: 1 alive hosts of 61440”. The one host, was the test host. “attack_network: Get first host to test from Queue. This host is used for initialising the alive_hosts_list.”