Skip to content

Instantly share code, notes, and snippets.

@fishi0x01
Last active January 1, 2021 10:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fishi0x01/47bf14940e08650374ef9501e71feb5d to your computer and use it in GitHub Desktop.
Save fishi0x01/47bf14940e08650374ef9501e71feb5d to your computer and use it in GitHub Desktop.
#! /bin/bash
usage() {
echo "measureTraffic.sh <targetIP>"
}
if [ -z "$1" ]; then
usage
exit 1
fi
iptables -N TARGET
iptables -A TARGET -d $1
iptables -A TARGET -s $1
iptables -A INPUT -j TARGET
iptables -A OUTPUT -j TARGET
iptables -Z TARGET
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment