一看必会系列:openvas安装配置

来源:本站原创 Linux 超过635 views围观 0条评论

安装方式1
Here are my updated install notes for OpenVAS 9 on CentOS 7.3.1611 (minimal install).
Hope someone finds it useful. 😯

1) Disable SELINUX (edit /etc/selinux/config) and reboot
2) Update your CentOS installation and reboot if necessary
yum -y update
3) Install the follow packages
yum install -y wget bzip2 texlive net-tools alien gnutls-utils
4) Add Atomicorp repo (see https://wiki.atomicorp.com/wiki/index.php/Atomic)
wget -q -O – https://www.atomicorp.com/installers/atomic | sh
5) Install OpenVAS 9
yum install openvas -y
6) edit /etc/redis.conf. Add/uncomment the following
unixsocket /tmp/redis.sock
unixsocketperm 700
7) Restart Redis
systemctl enable redis && systemctl restart redis
8) [root@ansible03 ~]# openvas-setup   估计几个小时
Follow instructions and remember your admin password. If rsync throws error, check that your network allows outgoing TCP 873 to internet
9) Open firewall port for tcp/9392
firewall-cmd –permanent –add-port=9392/tcp
firewall-cmd –reload
firewall-cmd –list-port

Go to https://<IP-ADDRESS>:9392 and login.

To verify your OpenVAS setup, run
openvas-check-setup –v9

安装方式2

直接下载ova进行部署最方便
http://www.openvas.org/vm.html

Version: 4.2.17 (includes OpenVAS-9)

Download: https://dl.greenbone.net/download/VM/gsm_ce_4.2.17.iso (350 MByte)

sha256sum: a4490e1c1d5b93c52b67eb533da8aa0ebe435551f89c8cea1619e6a772733a97

Compatibility: VirtualBox, ESXi, Hyper-V

Minimum requirements: 2 CPU Cores, 2 GByte RAM

Startup Community Edition:

Create a virtual image:

VirtualBox by hand via "New":

Type: Linux
Version: Other Linux (64bit)
Memory: 2048M
Harddisk: 9G
CPUs: 2
Create a new hard disk for the virtual machine.

Take care that the network connection works inside-out and outside-in:
The system needs access to the internet for the setup.
For using the systems’ web interface you need to access the system from where your web browser runs.

Audio, USB and Floppy should be disabled.

Now choose the downloaded ISO image as medium for the CD drive and start the virtual machine.

Hyper-V by hand via "New – Virtual Computer":

Generation: Generation 1

Startup memory: 2048MB

Use Dynamic Memory: deactivate

Network: Select a connection that has access to the Internet. The system needs access to the internet for the setup. For using the systems’ web interface you need to access the system from where your web browser runs.

Virtual hard disk: create an new, with an minimum of 9GB

Installation Options: Now choose the downloaded iso image as medium.

After saving, change the number of processors to 2

ESXi / VMWare:

注意,要软关机
Please note:
Shutting down the virtual machine should only be done via the menu Maintenance->Power to ensure that important system processes like the Feed update are not interrupted.

中文安装指南
vim /etc/selinux/config

修改参数:
SELINUX=disabled

更新:
yum -y update

重启:
reboot

安装依赖:
yum install -y wget bzip2 texlive net-tools alien gnutls-utils

添加仓库:
wget -q -O – https://www.atomicorp.com/installers/atomic | sh

安装:
yum install openvas -y

编辑文件:
vim /etc/redis.conf
修改配置:
unixsocket /tmp/redis.sock
unixsocketperm 700

重启redis:
systemctl enable redis && systemctl restart redis

启动openvas初始环境配置:
openvas-setup

防火墙放行端口:
firewall-cmd –permanent –add-port=9392/tcp
firewall-cmd –reload
firewall-cmd –list-port

访问登录:
https://本机IP:9392

验证完整性以及运行的可靠性:
openvas-check-setup –v9

作者:一点也不想吃辣
链接:https://www.jianshu.com/p/1e2c12db5429
來源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。

文章出自:CCIE那点事 http://www.jdccie.com/ 版权所有。本站文章除注明出处外,皆为作者原创文章,可自由引用,但请注明来源。 禁止全文转载。
本文链接:http://www.jdccie.com/?p=3795转载请注明转自CCIE那点事
如果喜欢:点此订阅本站