废话不多说,直接上步骤:
1. 配置yum Atomicorp仓库:
wget-q-O-http://www.atomicorp.com/installers/atomic|sh
2. 安装openvas:
yum install openvas
配置openvas
openvas-setup
检查配置是否正确
openvas-check-setup
其中,check-setup遇到的问题解决:
vi/etc/redis/redis.conf
依次更改:
port 0 # prevent redis from listening on a TCP socket
unixsocket /tmp/redis.sock
unixsocketperm 700
timeout 0
之后利用指定配置开启redis服务:
redis-server /etc/redis/redis.conf
vi /etc/selinux/config
将SELINUX=enforcing改为SELINUX=disabled
设置后需要重启才能生效
3. 经过check-setup并提示成功安装后,每次启动之前需要执行命令如下:
openvas-nvt-sync
openvassd
openvasmd
openvasmd --rebuild
openvasmd --backup
openvasmd -p 9390 -a 127.0.0.1
gsad --http-only --listen=127.0.0.1 -p 9392