In some cases we can seen that there is attack coming to our server from a particular range of ip, in that case we need to block only that range not the full range. In that situtation we can use iptables
Example: If attack is coming from 202.10.100.20 to range of 202.10.100.50
Use the command
iptables -A INPUT -m iprange –src-range 202.10.100.20-202.10.100.50 -J DROP
service iptables save

















