title: blocking multiple ip to access my server in EC2
body: <p>I need help for blocking multiple ip 
  actually from last 8-10 days multiple ip hitting my server from susapi.lenovomm.com domain continously 
  so want to block this</p>
  
  <p>Details of servers and services</p>
  
  <p>Server Linux on EC2
  Lighttpd
  LB(load balancer in AWS)</p>
  
  <p>In aws they are not providing facilities to block ip before hitting the LB so we can't block the ip before the LB
  and in LB security group also we can't block IPs in the security group</p>
  
  <p>So following things i tried </p>
  
  <p>Attempt 1 – Throght Lighttpd configuration</p>
  
  <p>I added a module "mod_extforward" in lighttpd</p>
  
  <p>then added " extforward.forwarder = ("myip" => "trust")"
  to lighttpd.conf</p>
  
  <p>and added this for blocking such IP's</p>
  
  <p>$HTTP["remoteip"] =~ "203.82.66.237|203.82.66.231|203.82.66.239|203.82.66.230|203.82.66.233|203.82.66.235|203.82.66.238|203.82.66.228|" {
         url.access-deny = ( "" )
    }</p>
  
  <p>Attempt 2 – Blocking IP's throught IP tables firewall i blocked but its not working</p>
  
  <p>/sbin/iptables -I INPUT -s 203.82.66.237 -j DROP</p>
  
  <p>Attempt 3 – Blocking IP's throught IP route add i blocked but its not working</p>
  
  <p>/sbin/route add -host 203.82.66.239 reject</p>
  
  <p>Can anyone help me on this how to block this IP access in my server</p>
  
  <p>Regards
  Nitesh
  nitesh.gupta01@yahoo.in</p>