Git Product home page Git Product logo

Comments (8)

mikesplain avatar mikesplain commented on June 29, 2024

Hi Udi,

Since openvas9 is running in docker you'll need to expose the port. Most people never used that so I removed it from the docs. When starting up the container, simply add -p 9390:9390 as an argument, right after the port 4000 argument. This will forward the port to the severs port allowing you to access it.

from openvas-docker.

udiromano avatar udiromano commented on June 29, 2024

Mike, thank you for the quick response. I know that i should export the port, the problem is that the openvasmd deamon does not listen on any port at all....
If you'll attach to the container and run netstat you will see.

from openvas-docker.

udiromano avatar udiromano commented on June 29, 2024

I have openvas8 installed. I compared /etc/init.d/openvas-manager in v8,v9 installation,
seems like DAEMON_ARGS="" environment variable in version 9 is empty unlike in version 8.

from openvas-docker.

udiromano avatar udiromano commented on June 29, 2024

?

from openvas-docker.

mikesplain avatar mikesplain commented on June 29, 2024

Ahh gotcha. I never use that so you'd have to poke around at updating daemon args properly. These packages are not built by me so I have little control of that. That said, if you figure out the right DAEMON_ARGS to expose the port, I'm happy to accept a PR or help you figure out how we can add it to the container.

from openvas-docker.

udiromano avatar udiromano commented on June 29, 2024

I have just added this line to the Dockerfile before the start command:

RUN sed -i 's/.DAEMON_ARGS=./DAEMON_ARGS="-a 0.0.0.0 -p 9390"/' /etc/init.d/openvas-manager

from openvas-docker.

ciphercodes avatar ciphercodes commented on June 29, 2024

@udiromano, replacing the daemon args fixes the omp issue but GSA login fails with "Login failed. Waiting for OMP service".

GSA login works again if I manually start openvasmd service. I now have two instances of openvasmd running.

root@ABCD:/# ps ax | grep openvas | grep -v grep

    28 ?        Ss     0:07 openvassd: Waiting for incoming connections
   324 ?        S+     0:00 tail -F /var/log/openvas/gsad.log /var/log/openvas/openvasmd.log /var/log/openvas/openvassd.dump /var/log/openvas/openvassd.messages
  1292 ?        SL     0:00 openvasmd
  1318 ?        SL     0:00 openvasmd

I compared this with my openvas8 set-up, I only see openvasmd service running once and both omp and GSA login are working fine.

from openvas-docker.

mikesplain avatar mikesplain commented on June 29, 2024

Fixed in #109

Please reopen if you see any issues!

from openvas-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.