Skip to content

Instantly share code, notes, and snippets.

View BraveLittleRoaster's full-sized avatar

Robert Paul BraveLittleRoaster

  • Seattle, WA
  • 12:31 (UTC -07:00)
View GitHub Profile
#!/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)