Skip to content

Instantly share code, notes, and snippets.

@fapestniegd
Created August 16, 2011 20:34
Show Gist options
  • Select an option

  • Save fapestniegd/1150101 to your computer and use it in GitHub Desktop.

Select an option

Save fapestniegd/1150101 to your computer and use it in GitHub Desktop.
apt-get install -y libiptables-ipv4-ipqueue-perl
modprobe iptable_filter
modprobe ip_queue
modprobe ipt_ttl
wget http://people.redhat.com/berrange/notes/network-delay/delay-net.pl
chmod 755 delay-net.pl
./delay-net.pl 300 > /dev/null 2>&1 &
iptables -I INPUT --source 10.0.100.10 -j QUEUE
iptables -D INPUT --source 10.0.100.10 -j QUEUE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment