# if [ "$1" = $(ifconfig $INTERFACE | sed '/.*inet addr:/!d;s///;s/ .*//') ]; then
#   echo "do not ban our own IP!!"
#   exit 0;
# fi;
  if [ "$1" = "127.0.0.1" ]; then
    echo "do not ban our own IP!!"
    exit 0;
  fi;
	      

# /sbin/iptables -A INPUT -s $1 -j REJECT --reject-with icmp-host-unreachable  >> /var/log/banned
  /sbin/iptables -D INPUT -s $1 -j DROP >> /var/log/banned
  echo `date` - $* >> /var/log/banned
# /sbin/iptables -I INPUT -s $1 -j DROP >> /var/log/banned
# iptables -n --list | grep "$1"
  
