Skip to content
Looking for the Security Operations help?

Sophos NDR on Hyper-V

You can deploy a Sophos NDR virtual appliance on Hyper-V.

Restriction

The Hyper-V virtual appliance doesn't support jumbo network packets because of a limitation in the Hyper-V packet capture driver.

The main steps are as follows:

  • Check the requirements.
  • Create and download the appliance in Sophos Fusion.
  • Configure your switches so Sophos NDR can see traffic.
  • Deploy the appliance VM on Hyper-V.
  • Set up and register the appliance.
  • Verify the appliance status in Sophos Fusion.

Requirements

You must have an active Sophos NDR product license. For IDS/IPS capabilities, you must also have the appliance-level IDS/IPS license.

Sophos NDR supports Microsoft Hyper-V 6.0.6001.18016 (Windows Server 2016) and later.

The VM that runs the appliance must meet the minimum system and network access requirements. For details, see Virtual appliance requirements.

Add appliance

To add an appliance, do as follows:

  1. Sign in to Sophos Fusion as an Admin or Super Admin.
  2. Go to My Products > NDR > NDR Appliances.
  3. Click Add appliance.

    Add NDR appliance.

  4. Select Virtual.

  5. Select a Mode. See Mode.

    Virtual appliances support NDR, NDR+IDS, and IDS modes, all of which use a sniffer deployment.

    NDR mode is available to all customers. NDR+IDS and IDS require an appliance-level IDS/IPS license.

  6. Select HyperV (Virtual) from the Instance type menu.

  7. Enter a hostname for the appliance.
  8. If you selected a mode that includes IDS, select the rule set you want from the Rule set subscription type menu. For more information about each rule set, see Appliance rule set.
  9. Specify the Management/EXTP port setting:

    • Select DHCP to assign the IP address automatically.

      Note

      If you select DHCP, you must reserve the IP address.

    • Select Manual to specify network settings.

      Example
      • IP address: 192.168.12.25
      • Subnet mask: 192.168.12.0/24

        You must enter the subnet mask in IPv4 CIDR notation.

      • Gateway: 192.168.12.1

    Note

    Only IPv4 is supported.

  10. In Home net, enter the IP addresses or ranges that determine which traffic Sophos NDR inspects. For details, see Home net.

    You can add a single IP address or a range of addresses defined in CIDR notation, such as 192.168.0.0/16. After you enter an address or range, click Add and then repeat as needed.

    Tip

    To include private IPv4 address ranges in the home net, add these ranges:

    • 10.0.0.0/8
    • 172.16.0.0/12
    • 192.168.0.0/16

    Add NDR appliance.

  11. Verify that all settings are correct, then click Save.

The new appliance appears on the NDR Appliances page with an unregistered status. You'll register it in a later step.

Note

The downloaded appliance image doesn't contain the network settings or registration information you entered in Sophos Fusion. You'll enter this information again when you set up the VM.

Download appliance

To download the appliance package, do as follows:

  1. On the NDR Appliances page, click the name of the appliance you just created.
  2. Copy the registration key on the Summary tab. You'll need it when you register the appliance.

    Copy registration key.

  3. Click Actions, then select Downloads.

  4. Select I have read and agree to the above.
  5. Click Download HyperV.

    Download virtual appliance.

Configure your switches

Before you deploy the Sophos NDR VM, configure traffic mirroring for the virtual and physical network traffic that you want Sophos NDR to monitor.

The NDR virtual appliance operates out of band. Hyper-V port mirroring sends a copy of network traffic to a capture adapter on the NDR VM. The appliance inspects the copied traffic but isn't in the production traffic path.

The following example shows a Hyper-V deployment that monitors traffic from workload VMs. The workload VM network adapters are configured as port-mirroring sources, and the NDR capture adapter is configured as the destination. The example also shows an optional SPAN or mirror connection from a physical switch through a dedicated host network interface.

Sophos NDR virtual appliance receiving mirrored virtual and physical network traffic on a Hyper-V host.

Keep these requirements in mind when you configure traffic mirroring:

  • Configure the source and destination adapters on the same virtual switch.
  • Configure each workload VM adapter that you want to monitor as a mirroring source.
  • Configure the NDR capture adapter as the mirroring destination.
  • To monitor traffic from the physical network, you can send SPAN or mirrored traffic from the physical switch through a dedicated host network interface to the capture adapter.
  • The NDR appliance can inspect only the traffic that is mirrored to its capture interfaces.

When you deploy the NDR VM, you'll connect its capture interfaces to the virtual switches that receive the mirrored traffic.

In Hyper-V, port mirroring involves the following steps:

  • Configure a traffic mirroring port with Hyper-V.
  • Attach a SPAN Virtual Interface to the virtual switch.
  • Turn on Microsoft NDIS capture extensions.
  • Configure the switch's mirroring mode.
  • Validate traffic mirroring.

For instructions, see Configure traffic mirroring with a Hyper-V vSwitch.

Deploy the VM

The ZIP file you downloaded in Sophos Fusion contains the following files you need to deploy your VM:

  • Virtual drive
  • PowerShell setup script

To deploy the VM, do as follows:

  1. Extract the ZIP file to a folder on your hard drive.
  2. Go to the folder, right-click the .ps1 file, and select Run with PowerShell.
  3. If you see a Security Warning message, click Open to allow the file to run.

    You're prompted to answer a series of questions.

  4. Enter a name for the VM.

  5. When the script shows the folder where the VM files will be stored, enter C to create it.

    The folder is in the default installation location for virtual drives.

  6. Enter the number of processors (CPUs) to use for the VM.

  7. Enter the amount of memory to use in GB.
  8. Select the vSwitch for the management interface and enter its number.

    You configured this interface as Management/EXTP when you created the appliance in Sophos Fusion. It lets the appliance send data to the Sophos Data Lake.

    If you selected DHCP, make sure that the VM can get an IP address using DHCP.

    Hyper-V VM deployment script.

  9. Select the vSwitch that receives SPAN traffic and attach the capture 1 interface to it. You configured this earlier. See Configure your switches.

  10. (Optional) Select a second vSwitch that receives SPAN traffic and needs monitoring.

    For example, you might have a physical switch and a vSwitch that doesn't send traffic to the physical switch.

  11. When you see the Installation Completed Successfully message, press any key to exit.

Power on the VM

To power on the VM, do as follows:

  1. Open Hyper-V Manager and check that the VM appears in the list of virtual machines.
  2. Click the new VM to open its connection.
  3. Click Start.

    The NDR Installation OS starts automatically.

Set up and register the VM

To set up and register the VM, do as follows:

  1. Select the network configuration you specified for the appliance in Sophos Fusion.

    This setting doesn't carry over from Sophos Fusion.

    • Configure Static: Enter your IP, netmask, and gateway information.
    • Configure DHCP: DHCP assigns the IP address and gateway.

    NDR setup assistant network configuration.

  2. Enter the registration key you copied from Sophos Fusion.

    The key is case-sensitive. Including the dashes in the key is optional.

    NDR setup assistant network configuration.

After the appliance accepts the key, it downloads and installs the latest image. This typically takes under 10 minutes but can take longer, depending on your internet speed.

The VM restarts when installation completes and the Sophos NDR OS starts automatically.

Verify status

To verify the appliance status, do as follows:

  1. In Sophos Fusion, refresh the appliance details page.
  2. Select the Summary tab and check that Registration status is Complete.

The Status in the header may show as Warning because the appliance hasn't sent health checks or other health data yet.

Health status and charts typically take about 30 minutes to update, but may take longer.