一看必會系列:openvas安裝配置

來源:本站原創 Linux 超過1,028 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) [[email protected] ~]# 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.qdxgqk.live/ 版權所有。本站文章除注明出處外,皆為作者原創文章,可自由引用,但請注明來源。 禁止全文轉載。
本文鏈接:http://www.qdxgqk.live/?p=3795轉載請注明轉自CCIE那點事
如果喜歡:點此訂閱本站
?
?
萌宠夺宝游戏