Secure-Compliance-Solutions-LLC / OpenVAS-Docker

A Docker Image For the Open Vulnerability Assessment Scanner (OpenVAS)
https://securecompliance.gitbook.io/projects/openvas_image
MIT License
20 stars 13 forks source link

Scanners disconnect and loose service at random intervals #2

Closed thecomet28 closed 2 years ago

thecomet28 commented 3 years ago

I have a few remote scanners that we have deployed to different environments but they all operate on Ubuntu 20.04. Recently, we have been seeing many remote scanners that we have deployed disconnecting from the GVM11 control system. We can usually get it reconnected by restarting the docker image but it fails after a random time again. Can anyone help cause we are constantly having to restart it and scans are not running.

pixelsquared commented 3 years ago

Hi,

Sorry I didn't respond earlier. We are aware of this issue and I am trying to create a solution for this. It is a little tricky to debug because it does not happen predictably.

thecomet28 commented 3 years ago

I think I may have found a solution. We set/added the TCPKeepAlive to no in the ssh config. So far we have had luck with it no longer disconnecting. I will let you know once it has been successful for a few weeks.

oddbodperkins commented 3 years ago

Also facing the same issues, I've tried restarting both the remote Openvas containers, as well as the local GVM20 container to no avail. I've also added a brand new remote scanner but it fails to connect; peculiar since I had added about 10 remote scanners at different remote locations when I first utilized this project. Those initial 10 scanners also cannot connect back to the main gvm20 container

Dexus commented 3 years ago

maybe this is related to https://github.com/greenbone/openvas-scanner/pull/832