Skip to content

Instantly share code, notes, and snippets.

View FigmentEngine's full-sized avatar
🧐

Fitz FigmentEngine

🧐
View GitHub Profile
@kntyskw
kntyskw / ec2_multicast.sh
Last active June 8, 2021 14:18
Script to enable IP multicast without using Ethernet broadcast. It uses tc mirred and pedit actions to copy and edit an IP multicast packet to send over multiple Ethernet unicast frames. It requires two network interfaces to work. One is the interface to grab original multicast packets from and the other is to send out modified packets. This is …
#!/bin/sh
[[ -n "$1" && -n "$2" ]] || { echo "Usage: $0 <interface to grab multicast packets from> <interface to send modified packets to> [target MAC address 1] [target MAC address 2] ..."; exit 0 ; }
IIF=$1
OIF=$2
shift
shift
SRC_MACADDR=`ip link show $OIF | awk '/ether/ {print $2}' | tr -d :`
@FigmentEngine
FigmentEngine / TMUXonEC2.sh
Created April 27, 2012 15:54
Install TMUX on Amazon Linux (EC2)
wget https://github.com/downloads/libevent/libevent/libevent-2.0.18-stable.tar.gz
tar zxf libevent-2.0.18-stable.tar.gz
cd libevent-2.0.18-stable
sudo ./configure
sudo ./make
DIR="/home/ec2-user/downloads/libevent-2.0.18-stable"
wget http://downloads.sourceforge.net/tmux/tmux-1.6.tar.gz
tar zxf tmux-1.6.tar.gz
cd tmux-1.6