You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there! Is there any way to run MixewayOpenVASRestAPI using a port or ospd.sock instead of gvmd.sock? I can't seem to find any modern OpenVAS Docker images that create a gvmd.sock.
I'm trying to run MixewayOpenVASRestAPI with the immauss/openvas Docker image, but it has GVM 21.4.4 listening on port 9390 instead of a unix socket. securecompliance/gvm also has this issue.
I have tried replacing gvmd --listen=0.0.0.0 --port=9390 with gvmd --unix-socket=/var/run/gvmd/gvmd.sock in start.sh to create the socket myself, but GVM stops responding.
When I try to use the OSPd socket I get the following error: [Fatal Error] :-1:-1: Premature end of file.. But I don't have verbose logging, so I can't see what's causing this error.
I am sure this is completely irrelevant by now but if someone (like me for example) happens to stumble across this here's what I did to fix it:
If you look at the APIs code, you will see that it builds a command and launches a process (using ProcessBuilder) along the lines of bash -c "gvm-cli --username=.. --password=.. --socketpath ... --xml <.....>"
What i did was i replaced the socketpath part that expected a standard unix socket with "tls --port=9390".
You can check that it worked with this command so you dont have to debug like me for days:
Hi there! Is there any way to run MixewayOpenVASRestAPI using a port or ospd.sock instead of gvmd.sock? I can't seem to find any modern OpenVAS Docker images that create a gvmd.sock.
I'm trying to run MixewayOpenVASRestAPI with the immauss/openvas Docker image, but it has GVM 21.4.4 listening on port 9390 instead of a unix socket. securecompliance/gvm also has this issue.
I have tried replacing
gvmd --listen=0.0.0.0 --port=9390
withgvmd --unix-socket=/var/run/gvmd/gvmd.sock
in start.sh to create the socket myself, but GVM stops responding.When I try to use the OSPd socket I get the following error:
[Fatal Error] :-1:-1: Premature end of file.
. But I don't have verbose logging, so I can't see what's causing this error.Thank you!
Similar issues:
The text was updated successfully, but these errors were encountered: