Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
Linux tool to ban IPs with too many requests?
I mean when some DDoS is there, and the IPs are sending too much requests to the server.
example: i set tool to ban IP for 1200 seconds if it send 50 requests in one minute. Or 20 requests in 3 seconds (if there are that kind of attacks) ?
- Join Date
- Apr 2012
- Virginia, USA
If you are being DDoS'd, there's not too much you can do about it on your server.
If you are being spammed by a couple IPs, or malicious scripts are downloading too much and running up your bandwidth, you can use iptables to connection limit:
Iptables Limits Connections Per IP
I used to work at an ISP / hosting company. I've seen over 100Gbps of traffic directed at an IP before. The network gear before you server will be dropping packets before you ever get to connection limiting. If you are truly experiencing a DDoS, you should consider a service such as cloud flare.