I start (and stop) OpenVAS using a custom script.

/opt/openvas9/sbin/openvasmd -p 9390 -a 127.0.0.1

/opt/openvas9/sbin/gsad -p 443 --listen=0.0.0.0 --mlisten=127.0.0.1 
--mport=9390 --ssl-private-key=/etc/apache2/ssl/priv.key 
--ssl-certificate=/etc/apache2/ssl/pub.crt --http-sts 
--gnutls-priorities="NORMAL:-VERS-TLS-ALL:+VERS-TLS1.2:-CIPHER-ALL:+AES-256-CBC"

You need to tell gsad how to connect to openvasmd (mport options).

Thijs Stuurman
Security Operations Center | KPN Internedservices B.V.
thijs.stuur...@internedservices.nl<mailto:thijs.stuur...@internedservices.nl> | 
thijs.stuur...@kpn.com<mailto:thijs.stuur...@kpn.com>
T: +31(0)299476185 | M: +31(0)624366778
PGP Key-ID: 0x16ADC048 (https://pgp.surfnet.nl/)
Fingerprint: 2EDB 9B42 D6E8 7D4B 6E02 8BE5 6D46 8007 16AD C048

W: https://www.internedservices.nl<https://www.internedservices.nl/> | L: 
https://nl.linkedin.com/in/thijsstuurman

Van: Openvas-discuss [mailto:openvas-discuss-boun...@wald.intevation.org] 
Namens Louis Bohm
Verzonden: dinsdag 6 maart 2018 13:08
Aan: Shreyas M R <shreyas7...@gmail.com>
CC: Abdallah El.Damiry <ahd...@icloud.com>; openvas-discuss@wald.intevation.org
Onderwerp: Re: [Openvas-discuss] OMP Execution Problem

It does not seem to be listed in many places on the internet.  At least not 
when I googled it a long time ago.  Whats odd is every one seems to run into 
the issue.

As root run this but you can change the port number to your suiting:
            /usr/sbin/openvasmd -a 0.0.0.0 -p 9393
If you only want to allow OMP to be hit from the local host change the IP from 
0.0.0.0 to 127.0.0.1.  You will need to re-run this every time you restart 
openvas-manager.

I have seen and tried adding this to /etc/sysconfig/openvas-manager in the form 
of:
            OPTIONS=“—listen 0.0.0.0 —port 9393”
My only problem with adding this to the sysconfig server file is when I do this 
I can no longer login to GSAD for some reason.  But so far I have only done 
this on my slave scanner so its no big deal for me.  When I run it from the CLI 
all works fine.

Louis
:::::
Louis Bohm - Sr. Systems Engineer
            Dell TechDirect Certified

On Mar 6, 2018, at 5:34 AM, Shreyas M R 
<shreyas7...@gmail.com<mailto:shreyas7...@gmail.com>> wrote:

Hi,

Are omp requires the host parameter to connect openvas. for port parameter -p 
<port should be openvas scanner port>. Usually its 9390

Try my github link https://github.com/shreyasmrs/OpenVAS
I have tabulated steps to use omp

Thanks
Shreyas

[Afbeelding verwijderd door 
afzender.]<https://about.me/shreyasmrs?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api>


Shreyas M R
about.me/shreyasmrs 
<https://about.me/shreyasmrs?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api>


On Tue, Mar 6, 2018 at 2:13 PM, Abdallah El.Damiry 
<ahd...@icloud.com<mailto:ahd...@icloud.com>> wrote:
Dears ,

I have a problem with OMP command when I'm using it in more than a case and 
it's not working.
- Case 1 :
       # omp -u admin -w pass -g
Output :  failed to acquire socket

- Case 2 : (redis port 6379)
       # omp -u admin -w pass -h 127.0.0.1 -p 6379 --xml='<help/>' -v
Output :  will try to connect to host 127.0.0.1, port 6379... and no thing else

Finally when I execute openvas-check-setup , the script finishes with: it seems 
like your openvas-9 installation is ok.

Is there is any solution to this issue ?

Thanks in advance.

Yours

AHD

_______________________________________________
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org<mailto:Openvas-discuss@wald.intevation.org>
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

_______________________________________________
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org<mailto:Openvas-discuss@wald.intevation.org>
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

_______________________________________________
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to