Skip to content

Commit cad9b6a

Browse files
Merge pull request #211859 from batamig/erspan
Mirroring methods (ERSPAN)
2 parents e583853 + f333acb commit cad9b6a

File tree

12 files changed

+524
-323
lines changed

12 files changed

+524
-323
lines changed

articles/defender-for-iot/organizations/TOC.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@
3939
href: best-practices/understand-network-architecture.md
4040
- name: Plan your network connections
4141
href: best-practices/plan-network-monitoring.md
42-
- name: Traffic mirroring methods
43-
href: best-practices/traffic-mirroring-methods.md
4442
- name: Sample connectivity models
4543
href: best-practices/sample-connectivity-models.md
4644
- name: OT threat monitoring in enterprise SOCs
@@ -152,6 +150,22 @@
152150
items:
153151
- name: Set up OT network monitoring
154152
href: how-to-set-up-your-network.md
153+
- name: Configure traffic mirroring
154+
items:
155+
- name: Overview
156+
href: best-practices/traffic-mirroring-methods.md
157+
- name: Configure a switch SPAN port
158+
href: traffic-mirroring/configure-mirror-span.md
159+
- name: Configure a remote SPAN (RSPAN)
160+
href: traffic-mirroring/configure-mirror-rspan.md
161+
- name: Configure active and passive aggregation (TAP)
162+
href: traffic-mirroring/configure-mirror-tap.md
163+
- name: Configure ERSPAN mirroring
164+
href: traffic-mirroring/configure-mirror-erspan.md
165+
- name: Configure mirroring with an ESXi vSwitch
166+
href: traffic-mirroring/configure-mirror-esxi.md
167+
- name: Configure mirroring with a Hyper-V vSwitch
168+
href: traffic-mirroring/configure-mirror-hyper-v.md
155169
- name: Deploy OT certificates
156170
href: how-to-deploy-certificates.md
157171
- name: Install OT system software

articles/defender-for-iot/organizations/appliance-catalog/virtual-sensor-hyper-v.md

Lines changed: 0 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -84,132 +84,6 @@ This procedure describes how to create a virtual machine by using Hyper-V.
8484
1. Continue with the [generic procedure for installing sensor software](../how-to-install-software.md#install-ot-monitoring-software).
8585

8686

87-
## Configure a monitoring interface (SPAN)
88-
89-
While a virtual switch doesn't have mirroring capabilities, you can use *Promiscuous mode* in a virtual switch environment as a workaround for configuring a SPAN port.
90-
91-
*Promiscuous mode* is a mode of operation and a security, monitoring, and administration technique that is defined at the virtual switch or portgroup level. When promiscuous mode is used, any of the virtual machine’s network interfaces in the same portgroup can view all network traffic that goes through that virtual switch. By default, promiscuous mode is turned off.
92-
93-
For more information, see [Purdue reference model and Defender for IoT](../best-practices/understand-network-architecture.md#purdue-reference-model-and-defender-for-iot).
94-
95-
### Prerequisites
96-
97-
Before you start:
98-
99-
- Ensure that there's no instance of a virtual appliance running.
100-
101-
- Enable Ensure SPAN on the data port, and not the management port.
102-
103-
- Ensure that the data port SPAN configuration is not configured with an IP address.
104-
105-
### Configure a SPAN port with Hyper-V
106-
107-
1. Open the Virtual Switch Manager.
108-
109-
1. In the Virtual Switches list, select **New virtual network switch** > **External** as the dedicated spanned network adapter type.
110-
111-
:::image type="content" source="../media/tutorial-install-components/new-virtual-network.png" alt-text="Screenshot of selecting new virtual network and external before creating the virtual switch.":::
112-
113-
1. Select **Create Virtual Switch**.
114-
115-
1. Under connection type, select **External Network**.
116-
117-
1. Ensure the checkbox for **Allow management operating system to share this network adapter** is checked.
118-
119-
:::image type="content" source="../media/tutorial-install-components/external-network.png" alt-text="Select external network, and allow the management operating system to share the network adapter.":::
120-
121-
1. Select **OK**.
122-
123-
#### Attach a SPAN Virtual Interface to the virtual switch
124-
125-
You are able to attach a SPAN Virtual Interface to the Virtual Switch through Windows PowerShell, or through Hyper-V Manager.
126-
127-
**To attach a SPAN Virtual Interface to the virtual switch with PowerShell**:
128-
129-
1. Select the newly added SPAN virtual switch, and add a new network adapter with the following command:
130-
131-
```bash
132-
ADD-VMNetworkAdapter -VMName VK-C1000V-LongRunning-650 -Name Monitor -SwitchName vSwitch_Span
133-
```
134-
135-
1. Enable port mirroring for the selected interface as the span destination with the following command:
136-
137-
```bash
138-
Get-VMNetworkAdapter -VMName VK-C1000V-LongRunning-650 | ? Name -eq Monitor | Set-VMNetworkAdapter -PortMirroring Destination
139-
```
140-
141-
| Parameter | Description |
142-
|--|--|
143-
|**VK-C1000V-LongRunning-650** | CPPM VA name |
144-
|**vSwitch_Span** |Newly added SPAN virtual switch name |
145-
|**Monitor** |Newly added adapter name |
146-
147-
1. Select **OK**.
148-
149-
These commands set the name of the newly added adapter hardware to be `Monitor`. If you're using Hyper-V Manager, the name of the newly added adapter hardware is set to `Network Adapter`.
150-
151-
**To attach a SPAN Virtual Interface to the virtual switch with Hyper-V Manager**:
152-
153-
1. Under the Hardware list, select **Network Adapter**.
154-
155-
1. In the Virtual Switch field, select **vSwitch_Span**.
156-
157-
:::image type="content" source="../media/tutorial-install-components/vswitch-span.png" alt-text="Screenshot of selecting the following options on the virtual switch screen.":::
158-
159-
1. In the Hardware list, under the Network Adapter drop-down list, select **Hardware Acceleration** and disable "Virtual Machine Queue" for the monitoring (SPAN) network interface.
160-
161-
1. In the Hardware list, under the Network Adapter drop-down list, select **Advanced Features**. Under the Port Mirroring section, select **Destination** as the mirroring mode for the new virtual interface.
162-
163-
:::image type="content" source="../media/tutorial-install-components/destination.png" alt-text="Screenshot of the selections needed to configure mirroring mode.":::
164-
165-
1. Select **OK**.
166-
167-
#### Enable Microsoft NDIS capture extensions for the virtual switch
168-
169-
Microsoft NDIS Capture Extensions will need to be enabled for the new virtual switch.
170-
171-
**To enable Microsoft NDIS capture extensions for the newly added virtual switch**:
172-
173-
1. Open the Virtual Switch Manager on the Hyper-V host.
174-
175-
1. In the Virtual Switches list, expand the virtual switch name `vSwitch_Span` and select **Extensions**.
176-
177-
1. In the Switch Extensions field, select **Microsoft NDIS Capture**.
178-
179-
:::image type="content" source="../media/tutorial-install-components/microsoft-ndis.png" alt-text="Screenshot of enabling the Microsoft NDIS by selecting it from the switch extensions menu.":::
180-
181-
1. Select **OK**.
182-
183-
#### Set the Mirroring Mode on the external port
184-
185-
Mirroring mode will need to be set on the external port of the new virtual switch to be the source.
186-
187-
You will need to configure the Hyper-V virtual switch (vSwitch_Span) to forward any traffic that comes to the external source port, to the virtual network adapter that you configured as the destination.
188-
189-
Use the following PowerShell commands to set the external virtual switch port to source mirror mode:
190-
191-
```bash
192-
$ExtPortFeature=Get-VMSystemSwitchExtensionPortFeature -FeatureName "Ethernet Switch Port Security Settings"
193-
$ExtPortFeature.SettingData.MonitorMode=2
194-
Add-VMSwitchExtensionPortFeature -ExternalPort -SwitchName vSwitch_Span -VMSwitchExtensionFeature $ExtPortFeature
195-
```
196-
197-
| Parameter | Description |
198-
|--|--|
199-
|**vSwitch_Span** | Newly added SPAN virtual switch name. |
200-
|**MonitorMode=2** | Source |
201-
|**MonitorMode=1** | Destination |
202-
|**MonitorMode=0** | None |
203-
204-
Use the following PowerShell command to verify the monitoring mode status:
205-
206-
```bash
207-
Get-VMSwitchExtensionPortFeature -FeatureName "Ethernet Switch Port Security Settings" -SwitchName vSwitch_Span -ExternalPort | select -ExpandProperty SettingData
208-
```
209-
| Parameter | Description |
210-
|--|--|
211-
|**vSwitch_Span** | Newly added SPAN virtual switch name |
212-
21387

21488
## Next steps
21589

articles/defender-for-iot/organizations/appliance-catalog/virtual-sensor-vmware.md

Lines changed: 8 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Before you begin the installation, make sure you have the following items:
2626

2727
- The OT sensor software [downloaded from Defender for IoT in the Azure portal](../how-to-install-software.md#download-software-files-from-the-azure-portal).
2828

29+
- Traffic mirroring configured on your vSwitch. For more information, see [Configure traffic mirroring with a ESXi vSwitch](../traffic-mirroring/configure-mirror-esxi.md).
30+
2931
Make sure the hypervisor is running.
3032

3133
## Create the virtual machine
@@ -69,46 +71,12 @@ This procedure describes how to create a virtual machine by using ESXi.
6971
1. Continue with the [generic procedure for installing sensor software](../how-to-install-software.md#install-ot-monitoring-software).
7072

7173

72-
## Configure a monitoring interface (SPAN)
73-
74-
While a virtual switch doesn't have mirroring capabilities, you can use *Promiscuous mode* in a virtual switch environment as a workaround for configuring a SPAN port.
75-
76-
*Promiscuous mode* is a mode of operation and a security, monitoring, and administration technique that is defined at the virtual switch or portgroup level. When promiscuous mode is used, any of the virtual machine’s network interfaces that are in the same portgroup can view all network traffic that goes through that virtual switch. By default, promiscuous mode is turned off.
77-
78-
For more information, see [Purdue reference model and Defender for IoT](../best-practices/understand-network-architecture.md#purdue-reference-model-and-defender-for-iot).
79-
80-
**To configure a SPAN port with ESXi**:
81-
82-
1. Open vSwitch properties.
83-
84-
1. Select **Add**.
85-
86-
1. Select **Virtual Machine** > **Next**.
87-
88-
1. Insert a network label **SPAN Network**, select **VLAN ID** > **All**, and then select **Next**.
89-
90-
1. Select **Finish**.
91-
92-
1. Select **SPAN Network** > **Edit*.
93-
94-
1. Select **Security**, and verify that the **Promiscuous Mode** policy is set to **Accept** mode.
95-
96-
1. Select **OK**, and then select **Close** to close the vSwitch properties.
97-
98-
1. Open the **OT Sensor VM** properties.
99-
100-
1. For **Network Adapter 2**, select the **SPAN** network.
101-
102-
1. Select **OK**.
103-
104-
1. Connect to the sensor, and verify that mirroring works.
105-
10674
## Next steps
10775

108-
Continue understanding system requirements for physical or virtual appliances. For more information, see [Which appliances do I need?](../ot-appliance-sizing.md) and [OT monitoring with virtual appliances](../ot-virtual-appliances.md).
109-
110-
Then, use any of the following procedures to continue:
76+
For more information, see:
11177

112-
- [Purchase sensors or download software for sensors](../onboard-sensors.md#purchase-sensors-or-download-software-for-sensors)
113-
- [Download software for an on-premises management console](../how-to-manage-the-on-premises-management-console.md#download-software-for-the-on-premises-management-console)
114-
- [Install software](../how-to-install-software.md)
78+
- [Which appliances do I need?](../ot-appliance-sizing.md)
79+
- [OT monitoring with virtual appliances](../ot-virtual-appliances.md)
80+
- [On-premises management console (VMware ESXi)](virtual-management-vmware.md)
81+
- [OT network sensor VM (Microsoft Hyper-V)](virtual-sensor-hyper-v.md)
82+
- [On-premises management console (Microsoft Hyper-V hypervisor)](virtual-management-hyper-v.md)

0 commit comments

Comments
 (0)