Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Port mirroring script for XenServer and Security Onion
# Author: https://reddit.com/u/Brave_Little_Roaster
# Set this to the interface on XenServer that recieves mirrored traffic
MON="eth1"
# Set this to the XenBridge that VMs will use to recieve mirrored traffic
XBR="xenbr1"
# Gets the DOM-ID of the Security Onion VM. Needed for finding the virtual interface name (vif)