Apache DDoS attack

it's very difficult to fight ddos attacks, that's why gigenet charge that much for application level ddos protection!
 
Yes but in my case,we are talking about 2-3 mbps attack,which must be blocked at server level
 
various ways to do it, syn rate limiting is effective, another way is getting a script to tail access logs and watch for patterns and block accordingly.
 
apache ddos

Hi,

Use the following script and find the ips that is have more connections at a time,
block them in iptables or firewalls.
netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1

Regards,

Linu Lawrence
Pearlin.info
 
You can try in freebsds pf tools.. you have to read a lot but you can secure your server from ddos etc...
my pf rules file has something like :


table <abusive_http> persist
block in quick on $if inet proto tcp from <abusive_http> to any

pass in quick on $if inet proto tcp from any port > 1023 to $addr135 port { 80, 443 } modulate state ( max 300 source-track rul
e max-src-nodes 100 max-src-conn-rate 15/5 max-src-states 15 tcp.established 600 tcp.closing 10 overload <abusive_http>) flags S
/SAFR


where you can set max connections per ip per minute etc...
 
Linu that command has error on syntax
netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1
awk: syntax error at source line 1
context is
>>> print <<< $5
awk: bailing out at source line 1
netstat: lan: unknown or uninstrumented protocol

Tsiou thanks
 
Try this:
Code:
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
 
Back
Top