IP blocking in IP Tables
My server gets hit like continuously and LDAP just cannot handle it. uses 95% of CPU, EVEN though its not an active server. Its the backup one. so obviously someone is targeting the IP.
How do i set up an IP rule or Rules to achieve the following:
a) if a particular IP sends more than X requests a minute that are to unknown users in the lookup table, then block them out.
b) Get a LOT of smtp requests. If get more than X requests a minute then block them out too.
Any ideas how to go about this? And how do i first ensure that I will not firewall myself out. I have been warned to take care of this, but with no luck.
thanks!!
|