#!/bin/bash


echo -e "\n\nPing flood this UML's IP Address while running this script\n to reproduce the crash. This script will loop.\n\n"


BLACK_LIST=./black_list.txt

while [ 1 = 1 ]
do
 iptables -F

 for x in `grep -v ^# $BLACK_LIST | awk '{print $1}'`; do
  echo "Blocking $x..."
  iptables -A INPUT -t filter -s $x -j DROP
 done
done


