greenbone / gvmd

Greenbone Vulnerability Manager - The database backend for the Greenbone Community Edition
GNU Affero General Public License v3.0
281 stars 153 forks source link

Can't scan subnets with /16 netmask #1566

Closed veronicapr closed 3 years ago

veronicapr commented 3 years ago

Expected behavior

Possibility to scan entire subnets with /16 netmask.

Actual behavior

Error message "Error in host specification" when trying to add target subnet with a /16 netmask. image

Steps to reproduce

  1. Go to greenbone.
  2. Go to the target menu in the "Configuration" tab.
  3. Add new target.
  4. Add hosts manually with a /16 netmask.
  5. "Error in host specification" error message at the top of the page

GVM versions

gsa: (gsad --version) Greenbone Security Assistant 20.08.0

gvm: (gvmd --version) Greenbone Vulnerability Manager 20.08.0

openvas-scanner: (openvas --version) OpenVAS 20.8.0

gvm-libs: 20.8.0

Environment

Operating system:

Installation method / source: (packages, source installation) Ubuntu 16.04.7 LTS

Logfiles

y0urself commented 3 years ago

Hi @veronicapr AFAIK this is no bug.

As referred here you can only create targets with a maximum of 4096 IPs. You are trying to create a Target that contains 65536 IPs.

huornlmj commented 2 years ago

https://github.com/greenbone/gvmd/issues/1382