Before being able to talk to a remote GMP or OSP server using one of the provided command line clients, the user has to choose a connection type for establishing a communication channel. Currently three different connection types are supported for being used as transport protocol:
For the most common use case (querying gvmd via GMP on the same host) the socket connection should be chosen. The other connection types require some setup and possible adjustments at the server side, if no Greenbone OS based system is used.
Using a Unix Domain Socket#
For current releases of the Greenbone Community Edition 21.4 and 22.4 the
socket should be found at
For GOS 4 the path is either
/usr/share/openvas/gsa/classic/openvasmd.sock and for
GOS 5 and later the path is either
OSPd based scanners may be accessed via Unix Domain Sockets as well. The location and name of these sockets is configurable and depends on the used OSPd scanner implementation.
Accessing a Unix Domain Socket requires sufficient Unix file permissions for the user running the command line interface tool.
Please do not start a tool as root user via sudo or su only to be able to access the socket path. Instead, adjust the socket file permissions, e.g. by setting the --listen-owner, --listen-group or --listen-mode arguments of gvmd.
The TLS connection type was the default connection type for remote and local communication in GOS 3.1 and before. It is used to secure the transport protocol connection of GMP or OSP. It requires to provide a TLS certificate file, TLS key file and TLS certificate authority file.