hi matthew, thanks for your info, i tried to follow your explaination to
have master slave server for openvas but when i tried to scan with the
slave it returns :
internal error

both slave scan is return same error 'internal error' when i run from web
and from cli, but to scan without slave it can work for example to scan
localhost

is there a way to run the scan on slave server?

this is the step that i use :

Install OpenVAS Master


yum install -y openvas

Downgrade openvas-administrator (Only if you run on centos 5.x)


yum downgrade openvas-administrator -y

Setup OpenVAS


openvas-setup


Allow connections from any IP? [Default: yes]


Enter password:


Login : sugizo
Authentication (pass/cert) [pass] :
Login password :
Login password (again) :


Enter the rules for this user, and hit ctrl-D once you are done:
(the user can have an empty rules set)


Is that ok? (y/n) [y]

Restart OpenVAS Services


service openvas-administrator restart
service openvas-manager restart
service openvas-scanner restart

Start Greenbone Security Assistant (Only if you run on centos 5.x)


gsad --http-only -p 9392

Install OpenVAS Slave


yum install -y openvas-cli openvas-libraries openvas-manager
openvas-scanner libxslt

Update NVT Slave


openvas-nvt-sync
greenbone-nvt-sync

Restart Service Slave


/etc/init.d/openvas-scanner restart

Rebuild Database Slave


openvasmd --rebuild

Create Target via XML


omp -h localhost -u admin -w password -i -X - << EOF
<create_target>
   <name>centos2</name>
   <hosts>192.168.2.12</hosts>
   <comment>centos2</comment>
</create_target>
EOF

Create Slave via XML


omp -h localhost -u admin -w password -i -X - << EOF
<create_slave>
   <name>centos2</name>
   <comment>centos2</comment>
   <host>192.168.2.12</host>
   <port>9390</port>
   <login>root</login>
   <password>password</password>
</create_slave>
EOF

Create Task via XML


omp -h localhost -u admin -w password -i -X - << EOF
<create_task>
   <name>Scan localhost</name>
   <comment>Test scan of localhost</comment>
   <config id="74db13d6-7489-11df-91b9-002264764cea"/>
   <target id="b493b7a8-7489-11df-a3ec-002264764cea"/>
</create_task>
EOF

or


omp -h localhost -u admin -w password -i -X - << EOF
<create_task>
   <name>Scan centos2</name>
   <comment>Test scan of centos2</comment>
   <config id="74db13d6-7489-11df-91b9-002264764cea"/>
   <target id="e324507f-cca4-4d0b-a3c0-faa2a18b7bbc"/>
   <slave id="87d7995c-ff11-4ebb-aed2-33449f3a6b80"/>
</create_task>
EOF

thanks and best regards

On Mon, Apr 9, 2012 at 3:42 PM, Matthew Mundell <
[email protected]> wrote:

> > thank you so much for the explaination. might i know what is the minimum
> > openvas package to run slave server (e.g. openvas-scanner, openvas-cli,
> > etc)?
>
> openvas-libraries, openvas-scanner and openvas-manager.
>
> --
> Greenbone Networks GmbH
> Neuer Graben 17, 49074 Osnabrueck, Germany | AG Osnabrueck, HR B 202460
> Executive Directors: Lukas Grunwald, Dr. Jan-Oliver Wagner
>
_______________________________________________
Openvas-discuss mailing list
[email protected]
http://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to