آموزش نصب OpenVAS بر روی سرور

ROOT1

Administrator
#1
آموزش نصب OpenVAS بر روی سرور

1) Disable SELINUX.
Edit /etc/selinux/config, save and reboot
2) Add required packages
code:
         yum install wget bzip2 texlive net-tools alien
3) Add Atomicorp repo
code:
        wget -q -O - [URL]http://www.atomicorp.com/installers/atomic[/URL] | sh
4) Install OpenVAS
code:
          yum install openvas
5) edit /etc/redis.conf. Add/uncomment the following
code:
             unixsocket /tmp/redis.sock
             unixsocketperm 700
6) Restart Redis
code:
       systemctl enable redis &&  systemctl restart redis
7) openvas-setup
code:
      openvas-setup
follow instructions. If rsync throws error, check that your network allows outgoing TCP 873 to internet
8 ) To access OV-8 from network, either disable firewall or add exception for tcp 9392
PHP:
          firewall-cmd --permanent --zone=public --add-port=9392/tcp
          firewall-cmd --reload
code:
Go to [URL="https://%3CIP-ADDRESS%3E:9392"]https://<ip-address>:9392</ip-address>[/URL] and login.
[Optional] : Greenbone Security Assistant (GSAD)
For those who wants to install proper SSL cert. Download certificate and key file to your CentOS box. I place them inside /etc/openvas/ssl.
Edit /etc/sysconfig/gsad and modify the OPTIONS tag e.g.
code:
           OPTIONS="--ssl-certificate=/etc/openvas/ssl/openvas.crt --ssl-private-key=/etc/openvas/ssl/openvas.key"

Restart gsad
           
systemctl restart gsad
Those who wants stronger ciphers can will need to add gnutls-priorities, e.g.
code:
     OPTIONS="--ssl-certificate=/etc/openvas/ssl/openvas.crt  --ssl-private-key=/etc/openvas/ssl/openvas.key  --gnutls-priorities=SECURE128:+SECURE192:-VERS-TLS-ALL:+VERS-TLS1.2"
setup checker
code:
openvas-mkcert-client -n -i
یا
code:
openvas-check-setup --v7
موفق باشید
Root.ir
 
آخرین ویرایش:

ROOT1

Administrator
#2
رفع مشکل glib2 در صورت لزوم

رفع مشکل glib2 در صورت لزوم


code:
wget -c ftp://rpmfind.net/linux/sourceforge/f/fu/fuduntu-el/el6/current/UNSTABLE/SRPMS/glib2-2.35.8-1.el6.src.rpm
rpmbuild --rebuild glib2-2.35.8-1.el6.src.rpm
sudo yum localinstall glib2-2.35.8-1.el6.x86_64.rpm glib2-devel-2.35.8-1.el6.x86_64.rpm
 

ROOT1

Administrator
#3
نصب دستی texlive در صورت لزوم

نصب دستی texlive در صورت لزوم

code:
 mkdir -p /usr/share/texlive/texmf-local/tex/latex/comment
cd /usr/share/texlive/texmf-local/tex/latex/comment
wget http://mirrors.ctan.org/macros/latex/contrib/comment/comment.sty
chmod 644 comment.sty
texhash
 
بالا