This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |