5/10/2013

我的OpenVAS-6 安裝記錄


install Centos 6.4 x86 minimal in Vmware Esxi 5.0
vmware new VM - Typical - I will install the OS later - Linux - (Verson)Centos - Customize Hardware - connect Centos installation ISO to CD - finish
power on VM - start installation

login to root


at command console
1. enable network interface by
    ifup eth0
    ping 8.8.8.8 to verify nectwork connectivity

2. edit NIC config by
    vi /etc/sysconfig/network-scripts/ifcfg-eth0
            ONBOOT="no"   change to ONBOOT="yes"

--------------------
install OPENVAS
1. install wget
   yum install wget
2. wget -q -O - http://www.atomicorp.com/installers/atomic |sh
3. yum install openvas
4. openvas-setup
.......
5. Allow connections from any IP? [Default: yes]
6. build account
    admin/P@ssw0rd
   
7. user rule
    ctrl-D

8 vi /etc/selinux/config
   SELINUX=disabled

9 開防火牆
   vi /etc/sysconfig/iptables
   在
   -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
    之後加入
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 9392 -j ACCEPT

    service iptables restart



11.改成不要使用https, 修改的方法如下,加入--http-only參數

    vi /etc/rc.d/init.d/gsad
    daemon $EXEC $PARAMS --http-only
    儲存之後,重新啟動服務
    service gsad restart
   

12 console 下 openvas-check-setup 檢查安裝是否完成。
   依檢查產生的 FIX , 依序修正
   1.openvas-certdata-sync
   2.openvas-nvt-sync
   3.openvasmd --rebuild
   4.service openvas-manager restart
   再下 openvas-check-setup 檢查
   除了 Alien....., 沒錯誤了

13.IE開http://ip:9392, login 成功


 
   Extras > My Settings > Edit My Setting > Timezone > Asia/Taipei

14.NTP install & setup
   yum install ntp
   yum install tzdata
   tzselect
   /etc/init.d/ntpd start










沒有留言:

張貼留言