centos6.4安装openvas8

前端之家收集整理的这篇文章主要介绍了centos6.4安装openvas8前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

安装过程出现在很多问题,这里记录一下

vim /etc/selinux/config,修改SELINUX-enforcing为disabled),init 6重启生效
关闭iptables(service iptables stop)。
//安装epel源
	Centos6 32位:rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
	centos6 64位:rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum update
 
//安装redis
	http://www.cnblogs.com/xsi640/p/3756130.html
vim /etc/redis.conf
	port 0
	unixsocket /tmp/redis.sock
	unixsocketperm 755
	timeout 0

wget -q -O - http://www.atomicorp.com/installers/atomic |sh
yum install openvas
openvas-setup
openvas-mkcert
openvas-mkcert-client -n -i
openvas-nvt-sync
openvas-scapdata-sync
openvas-certdata-sync
service openvas-scanner start
//重建
openvasmd --rebuild --progress  
//创建user
openvasmd --create-user=admin --role=Admin && openvasmd --user=admin --new-password=666666

vi /etc/openvas/openvassd.conf  add
kb_location = /tmp/redis.sock

service redis restart

nohup openvasmd -p 9390 -a 127.0.0.1&
nohup gsad -f --listen=127.0.0.1 --mlisten=127.0.0.1 --mport=9390&
nohup openvasmd --foreground -p 9390 -a 127.0.0.1&
gsad --foreground
openvasmd --migrate --progress
netstat -anp|grep 9390
iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 9390 -j ACCEPT
iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 9392 -j ACCEPT
iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
service iptables save
service iptables restart
原文链接:https://www.f2er.com/centos/381223.html

猜你在找的CentOS相关文章