> For the complete documentation index, see [llms.txt](https://docs.threatdefence.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.threatdefence.com/appliances/network-sensor/virtual-sensor.md).

# Virtual Sensor

The ThreatDefence NDR Sensor can be deployed as a **virtual sensor** on VMware or Hyper-V environments. This guide outlines the steps to configure and integrate the sensor into your environment.

***

## VMware Deployment

1. **Download the Open Virtualization Format (OVF)**
   * Obtain the VHD file from the link provided by ThreatDefence Technical Support.
   * Download the configuration file attached to the support email.
2. **VMware Virtual Machine Setup**

   * Create a **Generation 1 VM** in VMware.
   * Allocate **8 GB RAM** and **4 CPU cores**.
   * Configure the VM to use the downloaded OVF as its existing disk.

   **Network Interface Configuration**

   * Add **two NICs** to the VM:
     * **Management NIC**: Requires internet access (ports UDP/53 DNS, TCP/80 HTTP, TCP/443 HTTPS).
     * **Data NIC**: For mirrored traffic from your network.
3. **Mirror/SPAN Port Setup**
   * On your switch, configure a **mirror (SPAN) port** targeting the internal firewall port.
   * Connect this SPAN port to the data NIC of the virtual sensor.
4. **VMware Virtual Switch for Mirrored Traffic**
   * Create a new VMware virtual switch that includes the physical mirror port.
   * Enable **promiscuous mode**:
     * `Properties -> Security -> Promiscuous Mode -> Accept`.
5. **Virtual NICs Connection**
   * Attach the second NIC (data NIC) to the mirrored traffic switch.
   * Attach the management NIC to your standard VLAN.
6. **Initial Configuration and Access**
   * Access the VM console with the credentials provided by ThreatDefence.
   * Choose DHCP or static IP configuration as required.
7. **Web Interface Configuration**
   * After reboot, open the web interface at:\
     `https://<VM_IP>:5000`
   * Upload the configuration file from step 1.
8. **Finalize Installation**
   * Notify ThreatDefence Technical Support once the sensor is operational.
9. **Outbound Connectivity**

* Ensure that your virtual sensor can reach TD servers on **port 443 (HTTPS)** at the following domains:
  * `tele.threatdefence.io`
  * `vle.threatdefence.io`

***

## Hyper-V Deployment

1. **Download the Virtual Hard Disk (VHD)**
   * Obtain the VHD file and configuration file from ThreatDefence Technical Support.
2. **Create Two Hyper-V Virtual Switches**

   * Open **Virtual Switch Manager** in Hyper-V.
   * Create two **external virtual switches**, each mapped to a physical NIC:
     * One for **Management traffic**.
     * One for **SPAN/Mirror traffic**.
   * Apply changes (note: may temporarily interrupt connectivity).

   ![Create new virtual switch](https://4191868192-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOlFHF8fl339QOw3Og8L7%2Fuploads%2Fgit-blob-8a94a0ba53f28fcc64a1af195a5a43dbef942848%2F1.png?alt=media)

   ![External network](https://4191868192-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOlFHF8fl339QOw3Og8L7%2Fuploads%2Fgit-blob-ed93a09e819de112ad4bf893ba6fc89aef02c560%2F2.png?alt=media)

   ![External network](https://4191868192-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOlFHF8fl339QOw3Og8L7%2Fuploads%2Fgit-blob-17620c5e4d1376980dfae4396803df65714caeeb%2F3.png?alt=media)
3. **Hyper-V Virtual Machine Setup**

   * Create a **Generation 1 VM** in Hyper-V.
   * Allocate **8 GB RAM** and **4 CPU cores**.
   * Use the downloaded **VHD** as its disk.
   * Attach one NIC to the **Management switch** and a second NIC to the **SPAN switch**.

   ![Attach NICs](https://4191868192-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOlFHF8fl339QOw3Og8L7%2Fuploads%2Fgit-blob-4c5df70d4c260add6a384c0c6807a4ba9e6ceb71%2F6.png?alt=media)

   ![Attach NICs](https://4191868192-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOlFHF8fl339QOw3Og8L7%2Fuploads%2Fgit-blob-9a95e97272e5ae9c640e195620af4e5f2135a6ae%2F7.png?alt=media)
4. **Mirror/SPAN Port Setup on Switch**
   * Configure a **mirror (SPAN) port** on your switch targeting the internal firewall port.
   * Connect this to the Hyper-V host NIC used for mirrored traffic.
5. **Enable Monitoring Mode with PowerShell**\
   Run the following commands seperately (as admin):

`$a = Get-VMSystemSwitchExtensionPortFeature -FeatureId 776e0ba7-94a1-41c8-8f28-951f524251b5`

`$a.SettingData.MonitorMode = 2`

`add-VMSwitchExtensionPortFeature -ExternalPort -SwitchName Mirror_Traffic_NDR -VMSwitchExtensionFeature $a`

Example:

<figure><img src="https://4191868192-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOlFHF8fl339QOw3Og8L7%2Fuploads%2Fgit-blob-65f9b0c2813471b6999c35ff705b98fcd9119876%2FScreenshot%202026-03-18%20at%202.31.27%E2%80%AFPM.png?alt=media" alt=""><figcaption></figcaption></figure>

1. **Initial Configuration and Access**

* Log in via the console with the credentials provided.
* Configure **DHCP** or **static IP** as required.

7. **Web Interface Configuration**

* After reboot, open the web interface at:\
  `https://<VM_IP>:5000`
* Upload the configuration file from step 1.

8. **Finalize Installation**

* Notify **ThreatDefence Technical Support** once operational.

***

### **With Host-Level Port Mirroring (Hyper-V Advanced Features)**

9. **Access VM Settings**

* In **Hyper-V Manager**, right-click the VM → **Settings** → **Network Adapter** → **Advanced Features**.

10. **Configure Port Mirroring**

Choose one of the following under **Port Mirroring**:

* **None**: Disabled
* **Source**: NIC acts as mirror source
* **Destination**: NIC acts as mirror destination

11. **Save and Apply**

* Click **Apply** then **OK**.
* Repeat for all NICs/VMs involved in mirroring.

12. **Outbound Connectivity**

* Ensure that your virtual sensor can reach TD servers on **port 443 (HTTPS)** at the following domains, and that SSL/TLS inspection is also disabled for them:
  * `tele.threatdefence.io`
  * `vle.threatdefence.io`

{% hint style="danger" %}
For customers using our **US** infrastructure please allow the below domain in place of vle.threatdefence.io.
{% endhint %}

* `vle.us.threatdefence.io`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.threatdefence.com/appliances/network-sensor/virtual-sensor.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
