User Tools

Site Tools


toolsandtechnologies:greenbone_security_assistant

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
toolsandtechnologies:greenbone_security_assistant [2021/12/22 00:20] – created 10.91.120.28toolsandtechnologies:greenbone_security_assistant [2023/05/11 14:11] (current) – Added sample run command list aryan
Line 3: Line 3:
 ===== Details ===== ===== Details =====
  
-Accessible at [[https://10.91.130.9/feedstatus|Greenbone GSA]] +Accessible at [[http://10.91.130.9:8080/|Greenbone]]
- +
-2021/12/21 -  Version 20.08.0~git-fdd51705e-gsa-20.08+
  
 ==== Feed Status ==== ==== Feed Status ====
  
-Visible at the feed status page+Visible at [[http://10.91.130.9:8080/feed|feed status page]]
  
-{{:toolsandtechnologies:greenbone_security_assistant_-_feed_status.jpg?400|}}+=== To update/refresh the feeds (when they become outdated):=== 
 +  - Login to server as ubuntu@ 
 +  - Run `docker restart openvas` 
 +  Wait for the feeds to update and Greenbone to stand up
  
-Manual updates currently (2021/12)+Run `docker logs greenbone -f` to follow logs.
  
-  - Login to server as ubuntu@ +=== New Install Initial execution ===
-  - sudo su gvm +
-  - cd /opt/gvm +
-  - ./manual-greenbone-feed-sync.sh+
  
-Logging is recorded in gvm@errigal-openvas:/opt/gvm/gvm_log+Follow the instructions with the persistent volume here: https://immauss.github.io/openvas/
  
 +10/May - instructions contains were
 +Start the container with a persistent volume:
  
----- +<WRAP center round box 60%> 
-   cat manual-sync.log  +docker run --detach --publish 8080:9392 -e PASSWORD="Your admin password here" --volume openvas:/data --name openvas immauss/openvas 
-  * 2021-12-21 16:16:43 Start GVM_DATA Sync +</WRAP>
-  * 2021-12-21 16:16:43 Start SCAP Sync +
-  * 2021-12-21 16:16:43 Start CERT Sync +
-  * 2021-12-21 16:16:43 Start CERT NVT Sync +
-  * 2021-12-21 16:16:43 Completed CERT NVT Sync +
-----+
  
 +You can use whatever --name you’d like but for the sake of this guide we’re using openvas.
  
-=== Report Monitoring ===+The --publish 8080:9392 option will port forward 8080 on the host to 9392 (the container web interface port) in the docker container. Port 8080 was chosen only to avoid conflicts with any existing OpenVAS/GVM installation. You can change 8080 to any available port that you`d like.
  
 +Note, the current startup parameters are
 +
 +<code>
 +docker run --name=openvas \
 + --env=PASSWORD=ozzrules \
 + --volume=openvas:/data \
 + -p 8080:9392 \
 + --restart=no \
 + --runtime=runc \
 + --detach=true \
 + immauss/openvas
 +</code>
 +
 +
 +----
  
-== Tasks ==+=== Uppdate ===
  
 +Ref: [[https://docs.docker.com/get-started/03_updating_app/|Update docker Container]]
  
 +To upgrade Greenbone, you must upgrade the docker image and then restart the container.
  
 +<code>
 +docker ps
 +docker pull [docker_image]        immauss/openvas 
 +docker stop <the-container-id>    openvas
 +docker rm <the-container-id>      openvas
 +docker run [add parameters as above]
 +</code>
  
 +Sample Upgrade Command history
  
 +<code>
 +docker ps
 +docker pull  immauss/openvas 
 +docker stop openvas
 +docker rm openvas
 +docker run  --name=openvas --env=PASSWORD=ozzrules --volume=openvas:/data -p 8080:9392 --restart=no --runtime=runc --detach=true immauss/openvas
 +docker ps
 +docker logs -f openvas
 +</code>
toolsandtechnologies/greenbone_security_assistant.1640132441.txt.gz · Last modified: 2021/12/22 00:20 by 10.91.120.28