09.06.2013, 08:35
Very nice. Useful for those without access to iptables.
You can calculate CIDR ranges with http://www.subnet-calculator.com/cidr.php
@above 10.13.37.0/24 will mean and ip range from: 10.13.37.0 to 10.13.37.255
IP addresses are allocated using CIDR so you should always be able match a range to a specific isp.
If I want to ban an ip range for a specific isp, I use the geoip isp database to lookup all the ip addresses isp's near the ip I want to range ban, then I can work out the specific CIDR range for the isp.
You can calculate CIDR ranges with http://www.subnet-calculator.com/cidr.php
@above 10.13.37.0/24 will mean and ip range from: 10.13.37.0 to 10.13.37.255
IP addresses are allocated using CIDR so you should always be able match a range to a specific isp.
If I want to ban an ip range for a specific isp, I use the geoip isp database to lookup all the ip addresses isp's near the ip I want to range ban, then I can work out the specific CIDR range for the isp.