Wednesday 3 May 2017

OpenVAS installation and configuration in RHEL/CentOS 6

Step 1

Install atomic release from below link.


rpm -ivh http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/atomic-release-1.0-14.el6.art.noarch.rpm


Step 2 

setup atomic repository for OpenVAS.


wget -q -O - http://www.atomicorp.com/installers/atomic |sh

and now if we got some errors that means so many dependency is not available in it. In case if it happens the add the repo for Openvas


vi /etc/yum.repos.d/centos.repo

for 32 bit


[CentOS]
name=centos
baseurl=http://mirror.centos.org/centos/6/os/i386/
enabled=1
gpgcheck=0

for 64 bit


[CentOS]

name=centos
baseurl=http://mirror.centos.org/centos/6/os/x86_64/
enabled=1
gpgcheck=0

Step 3


Now install openvas


yum install openvas


after installation complete install atomic-sqlite-sqlite and atomic-sqlite-sqlite-devel


yum install atomic-sqlite-sqlite atomic-sqlite-sqlite-devel

now run the openvas setup


openvas-setup

it will take some time, finally it will ask useranme password


and then start the services of openvas


service openvas-manager start 

service gsad start


chkconfig gsad on


chkconfig openvas-manager on


Step 4

We can check the openvas installation with following command


openvas-check-setup

it will show the redis is not installed in it. Now installed redis


yum install redis -y


then remove # from below listed text


unixsocket /tmp/redis.sock
unixsocketperm 700

now start the redis service


service redis start 

chkconfig redis on


Step 5

Now create cert for client with following command

openvas-mkcert-client -n -i

now create user and password for the web interface

openvasmd --create-user=username --role=Admin && openvasmd --user=username --new-password=password

now rebuild the openvas setup it will take 1 to 3 min only

openvasmd --rebuild

now restart the openvas-manager and gsad services

service gsad restart 

service openvas-manager restart

now open the url with port number 9392

https://192.168.1.1:9392


That's all we can now check the server vulnerability with this tool.

No comments:

Post a Comment

Permanent hostname setup for RHEL7

Step 1 Set the host name on NMTUI tool like following nmtui set host name   then save and exit Step 2 add the following l...