I have just setup the community containers and the installation with the instructions here Greenbone Community Containers - Greenbone Community Documentation went fine. All containers are up and running. When I start a scan of the local subnet no hosts can be found. Hosts in another subnet can also not be found. It seems that the containers have no access to the outside world (of the Docker network). Is there anything I am missing?
There are some iptables rules active. Shall I flush them? I read already something about
network_mode: host
I tried to change the docker-compose.yml File but no improvement of the situation.
The Greenbone containers are running inside another container (Balena). Might that be a problem?
Don´t use ANY firewall between the scanner and your target host as rule of thumb. As well ensure that your container has raw socked and root access for the scanner.
I started the containers with the docker-compose.yml file provided by Greenbone. Are there any changes necessary to make the scanner accessible to the local network? I flushed all iptables rules but the problem still persists.
docker compose -f $DOWNLOAD_DIR/docker-compose.yml up ospd-openvas
NOTE: Be aware that this command starts ospd-openvas in the foreground with the console showing the log output. CTRL+C will shutdown it. To run it in the background use -d ospd-openvas but that wont show the logs at your current console.