OpenVASインストール手順~CentOS7.8編~

リポジトリの追加

wget実行後にいくつか質問されるのですべて「yes」でOK

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

SELINUXの無効化と再起動

[root@localhost ~]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted
[root@localhost ~]#reboot

OpenVASのインストール

OpenVASにログインする際のユーザ名とパスワードを設定する。

yum -y install openvas

~省略~

Enter administrator username [Default: admin] :
Enter Administrator Password:
Verify Administrator Password:

OpenVASのセットアップ

めちゃくちゃ時間かかります。

openvas-setup

Firewallの停止

ポートの開放でもOK。その場合は9392を開放する。

systemctl stop firewalld

GSADの待ち受けポートとIPアドレスの設定

echo 'OPTIONS="--listen=0.0.0.0 --port=9392"' > /etc/sysconfig/gsad
systemctl restart gsad