centos 7 搭建openvas

CentOS 7 搭建OpenVAS

搭建环境

[root@VM170-openvase ~]# cat /etc/redhat-release

CentOS Linux release 7.6.1810 (Core)

OpenVAS 9

 

环境准备

在正式安装前确定关闭防火墙、清除防火墙规则以及selinux

 

【关闭selinux】

[root@VM170-openvase ~]# sudo sed -i.ori 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config # 永久关闭selinux

[root@VM170-openvase ~]# setenforce 0  # 临时关闭selinux

【清空防火墙规则】

[root@VM170-openvase ~]# iptables -F && iptables -t nat -F # 清空防火墙规则

【关闭firewalld】

[root@VM170-openvase ~]# systemctl stop firewalld && systemctl disabled firewalld  # 关闭防火墙且去除开机自启

 

1、先安装依赖

[root@VM170-openvase network-scripts]# yum install -y wget bzip2 texlive net-tools alien gnutls-utils

2、配置源

[root@VM170-openvase ~]# wget -q -O - https://www.atomicorp.com/installers/atomic | sh

3、安装openvas9

[root@VM170-openvase ~]# yum install openvas -y

 

 

4、配置redis.conf开放sock和700权限

[root@VM170-openvase ~]# sudo sed -i.ori 's$# unixsocket /tmp/redis.sock$unixsocket /tmp/redis.sock$' /etc/redis.conf

[root@VM170-openvase ~]# sudo sed -i.ori 's$# unixsocketperm 700$unixsocketperm 700$' /etc/redis.conf

即去掉/etc/redis.conf文件中下面两行的注释即可

unixsocket /tmp/redis.sock

unixsocketperm 700

5、重启redis并配置开机自启

[root@VM170-openvase ~]# systemctl enable redis && systemctl restart redis

6、开始安装openvas(此处需要花费一段时间,0.5-1h)

[root@VM170-openvase ~]# openvas-setup

完成后会让输入administrator密码

这里我设置为123456

7、接下来就是web端的操作了

直接内网输入服务器ip即可进入,登陆账号admin,密码123456

至此搭建已经完成,接下来就是如何使用,请移步这里openvas 9 详解

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

hobby云说

你的鼓励将是我最大的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值