Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am lonelymtn on github.
  • I am lonelymtn (https://keybase.io/lonelymtn) on keybase.
  • I have a public key ASCnSaS6T6rI0-jG8qz0wUq0hF3C-TJ-9x3oRUChy3MZBwo

To claim this, I am signing this object:

@lonelymtn
lonelymtn / mirror-port.sh
Created February 4, 2016 23:28
Mirror traffic between two interfaces using Linux's traffic controll subsystem (tc)
#!/usr/bin/env bash
# Time-stamp: <2014-07-31 13:31:43 (ryanc)>
#
# Description: Mirror traffic between two interfaces using Linux's
# traffic control subsystem (tc)
trap cleanup EXIT
CLEANUP=1
SRC_IFACE=$1