15. Master-Sensor Setup

Due to security reasons it is often not possible to scan specific network segments directly. For example, direct access to the internet may be prohibited. To overcome this issue, the Greenbone Security Manager (GSM) supports the setup of a distributed scan system: Two or more GSMs in different network segments can be connected securely in order to run vulnerability tests for those network segments that are otherwise not accessible.

In this case one GSM controls one or more other GSMs remotely. A controlling GSM is referred to as a “master” and a controlled GSM is referred to as a “sensor”.

GSMs of the medium enterprise class and upwards can be used as a master (see Chapter Greenbone Security Manager – Overview). All GSM types except for GSM ONE/MAVEN can be used as a sensor. The GSM types GSM 35 and 25V can only be used as a sensor and are always controlled by a master.

All sensors can be managed directly by the master including automatic or manual updates of the Greenbone Security Feed (GSF) as well as the Greenbone Operating System (GOS). A sensor does not require any network connectivity other than to the master and the scan targets and no further administrative steps after the initial setup. The connection between master and sensor is established using the Secure Shell (SSH) protocol via port 22/TCP.

If a sensor should perform scans remotely, it has to be configured as a remote scanner. The user can individually configure a scan for the remote scanner using the web interface of the master depending on requirements and permissions. The remote scanner runs the scan and relays the results to the master where all vulnerability information is managed. The connection to a remote scanner is established by using the Greenbone Management Protocol (GMP) via SSH.

To distinguish between the sensor and remote scanner terminology:

  • Sensors
    This feature requires the setup of the master-sensor link using the GOS administration menu of both the master and the sensor. This feature then supports the remote feed synchronization and the upgrade management of the sensor.
  • Remote Scanners
    This feature requires the activation of GMP on the sensor using the GOS administration menu and the setup of the remote scanner using the web interface on the master. This feature then supports the execution of scans via the sensor.

15.1. Configuring a Master-Sensor Setup

15.1.1. Connecting a Master to a Sensor

A master can be linked to a sensor as follows:

  1. Open the GOS administration menu of both the master and the sensor (see Chapter GOS Administration Menu Access).

  2. In the GOS administration menu of the master select Setup and press Enter.

  3. Select Master and press Enter.

  4. Select Master Identifier and press Enter.

  5. Select Download and press Enter.

  6. Open the web browser and enter the displayed URL (see figure Downloading the master identifier).

    _images/master-download.png

    Downloading the master identifier

  7. Download the PUB file.

    → When the key is downloaded, the GOS administration menu of the master displays the fingerprint of the key for verification.

    Important

    Do not confirm the fingerprint until the key is uploaded to the sensor.

  8. In the GOS administration menu of the sensor select Setup and press Enter.

  9. Select Sensor and press Enter.

  10. Select Configure Master and press Enter.

  11. Select Upload and press Enter.

  12. Open the web browser and enter the displayed URL.

  13. Click Browse..., select the previously downloaded PUB file and click Upload.

    → When the key is uploaded, the GOS administration menu of the sensor displays the fingerprint of the key for verification.

  14. Compare the fingerprint to the fingerprint displayed on the GOS administration menu of the master.

    If the fingerprints match, press Enter in both GOS administration menus.

  15. In the GOS administration menu of the sensor select Save and press Enter.

  16. Perform twice: Press Tab and press Enter.

  17. Select Services and press Enter.

  18. Select SSH and press Enter.

  19. Select SSH State and press Enter.

    → SSH is enabled on the sensor.

  20. Select Save and press Enter.

    Note

    On GSM 25V and GSM 35 the GMP service is always enabled.

    If one of these types is used, continue with step 25.

  21. Press Tab and press Enter.

  22. Select GMP and press Enter.

  23. Select GMP-State and press Enter.

    → A message informs that the changes have to be saved.

  24. Select Save and press Enter.

  25. In the GOS administration menu of the master select Setup and press Enter.

  26. Select Master and press Enter.

  27. Select Sensors and press Enter.

  28. Select Add a new sensor and press Enter.

  29. Enter the IP address or the host name of the sensor in the input box and press Enter.

    → Additional menu options for the sensor configuration are shown (see figure Sensor configuration menu).

    _images/sensor_configuration_menu.png

    Sensor configuration menu

  30. Select Auto and press Enter.

    → The master connects to the sensor automatically and retrieves the identifier.

    The fingerprint of the identifier is displayed on the GOS administration menu of the master.

  31. In the GOS administration menu of the sensor select Setup.

  32. Select Sensor and press Enter.

  33. Select Sensor Identifier and press Enter.

  34. Select Fingerprint and press Enter.

  35. Compare the fingerprint to the fingerprint displayed on the GOS administration menu of the master.

    If the fingerprints match, press Enter in the GOS administration menu of the master.

  36. Select Save and press Enter.

  37. Select Test and press Enter.

    → The configuration of the sensor is tested.

    If the test fails, a warning with instructions is displayed.

    _images/sensor_test_failed.png

    Testing the sensor configuration

Note

Once configured successfully, sensors can be managed directly on the master using the GOS administration menu as follows:

  1. Select Maintenance and press Enter.

  2. Select Feed and press Enter.

  3. Select Sensors and press Enter.

    or

  1. Select Upgrade and press Enter.
  2. Select Sensors and press Enter.

15.1.2. Creating a Scan User Account

In addition to linking the master and the sensor, a scan user account on the sensor is required for using the sensor as a remote scanner (see Chapter Configuring a Sensor as a Remote Scanner). The scan user can be created as follows:

  1. In the GOS administration menu of the sensor select Setup and press Enter.
  2. Select User and press Enter.
  3. Select Users and press Enter.
  4. Select Admin User and press Enter.
  5. Determine the user name and the password of the scan user and press Tab.
  6. Press Enter.

15.2. Deploying Sensors in Secure Networks

For master-sensor setups the master stores all vulnerability information and credentials. A sensor does not store any information permanently (except for NVTs).

Due to this the master needs to be placed in the highest security zone with communication to the outside (to the sensors). All communication is initiated from the master in the higher security zone down to the sensor in the lower security zone.

Note

A firewall separating the different zones only needs to allow connections from the master to the sensor. No additional connections need to be allowed into the higher security zone.

Master and sensor appliances communicate via the SSH protocol. Port 22/TCP is used by default. For backward compatibility port 9390/TCP can be used. This can be configured as follows:

  1. In the GOS administration menu of the sensor select Setup.
  2. Select Sensor and press Enter.
  3. Select Port 9393 and press Enter.
  4. Select Save and press Enter.

On sensors GSF updates and GOS upgrades can be downloaded either directly from the Greenbone Networks servers or using the master. In the second case only the master contacts the Greenbone Networks servers and distributes the corresponding files to all connected sensors. To prevent the sensor from contacting the Greenbone Networks servers, automatic synchronization can be disabled as follows:

  1. In the GOS administration menu of the sensor select Setup.
  2. Select Feed and press Enter.
  3. Select Synchronisation and press Enter.
  4. Select Save and press Enter.

Tip

As an additional layer of security a source and destination NAT rule on a flow-aware firewall can be used to avoid the need of default routes on the GSM appliances.

15.3. Configuring a Sensor as a Remote Scanner

Note

In order to configure a sensor as a remote scanner, all steps in Chapter Connecting a Master to a Sensor have to be completed first.

Sensors can be used as remote scanning engines (scanners) on the master in addition to the default OpenVAS and CVE scanners. For this, the sensor must be configured as a remote scanner using the web interface of the master.

Note

Since the communication between the master and the remote scanner is based on GMP, a remote scanner is referred to as a GMP scanner.

A new remote scanner can be configured as follows:

  1. Log into the web interface of the master.

  2. Select Configuration > Scanners in the menu bar.

  3. Create a new scanner by clicking new.

  4. Define the name of the remote scanner.

  5. Enter the IP address or the host name of the sensor in the input box Host.

  6. Choose GMP Scanner in the drop-down-list Type (see figure Configuring the remote scanner on the master).

    _images/config_remote_scanner.png

    Configuring the remote scanner on the master

  7. Create a new credential by clicking new.

  8. Enter the account information of the scan user account (see Chapter Creating a Scan User Account) in the input boxes Username and Password.

  9. Click Create to create the credential.

  10. Click Create to create the remote scanner.

  11. In the row of the newly created remote scanner click verify to verify the scanner.

    → If the setup is correct, the scanner is successfully verified (see figure Verifying the scanner).

    _images/scanner-verify.png

    Verifying the scanner

Tip

Scanners are configured on a per-user basis. Scanners can be created for each user or permissions can be used to grant usage rights to other users (see Chapter Managing Permissions).

15.4. Using a Remote Scanner

After a sensor is configured as a remote scanner, scan tasks can be configured on the master to run on the sensor (see Chapter Creating a Task).

_images/task-remote.png

Selecting the remote scanner for a task

An already created task can be moved to a remote scanner as follows:

  1. Select Scans > Tasks in the menu bar.
  2. Click on the name of the desired task to display the details.
  3. Move the mouse over wizard and select the remote scanner to which the task should be moved.