[Include] CIDR - Check if an IP is in a CIDR block
#9

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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)