Sign inSign up

apriorit/openvas

By apriorit

•Updated over 7 years ago

OpenVAS installed on Ubuntu-16.04

Image
0

499

apriorit/openvas repository overview

⁠OpenVAS image for Docker

Openvas VersionTagOpenVAS Manager Port
9latest/99390

⁠Usage

Simply run:

docker run -p 9390:9390 --name openvas apriorit/openvas:latest

This will grab the container from the docker registry and start it up. Openvas startup can take some time (4-5 minutes while NVT's are scanned and databases rebuilt), so be patient. Once you see a It seems like your OpenVAS-9 installation is OK. process in the logs, the web ui is good to go. Goto https://<machinename>

Username: admin
Password: admin

To check the status of the process, run:

docker top openvas

In the output, look for the process scanning cert data. It contains a percentage.

To run bash inside the container run:

docker exec -it openvas bash
⁠Specify DNS Hostname

By default, the system only allows connections for the hostname "openvas". To allow access using a custom DNS name, you must use this command:

docker run -d -p 443:443 -e PUBLIC_HOSTNAME=myopenvas.example.org --name openvas apriorit/openvas
⁠Volume Support

We now support volumes. Simply mount your data directory to /var/lib/openvas/mgr/:

mkdir data
docker run -d -p 443:443 -v $(pwd)/data:/var/lib/openvas/mgr/ --name openvas apriorit/openvas

Note, your local directory must exist prior to running.

⁠Set Admin Password

The admin password can be changed by specifying a password at runtime using the env variable OV_PASSWORD:

docker run -d -p 443:443 -e OV_PASSWORD=securepassword41 --name openvas apriorit/openvas
⁠Update NVTs

Occasionally you'll need to update NVTs. We update the container about once a week but you can update your container by execing into the container and running a few commands:

docker exec -it openvas bash
## inside container
greenbone-nvt-sync
openvasmd --rebuild --progress
greenbone-certdata-sync
greenbone-scapdata-sync
openvasmd --update --verbose --progress

/etc/init.d/openvas-manager restart
/etc/init.d/openvas-scanner restart
⁠Thanks

Thanks to hackertarget for the great tutorial: http://hackertarget.com/install-openvas-7-ubuntu/⁠

Thanks to Serge Katzmann for contributing with some great work on OpenVAS 8: https://github.com/sergekatzmann/openvas8-complete⁠

Thanks to Mike Splain https://github.com/mikesplain/openvas-docker⁠

Tag summary

Content type

Image

Digest

Size

879.2 MB

Last updated

over 7 years ago

docker pull apriorit/openvas