At least twice a week I find myself visiting ip2cidr.com, the IP to CIDR converter. Since the owner/author of the site hasn't release the source code, and I love a challenge, I developed my own version. The guys at the job find the tool useful, and after a few minor bug fixes, I've made the IP Range to CIDR tool available for use here at Nullamatix.com.
Using IP to CIDR
The tool is very easy to use. The first text input field is the first IP address or start of the range. The second text input field is the second IP address or end of the range. For instance, supplying 188.8.131.52 in the first field and 192.168.255.255 in the second field will produce:
192.0.0.0/9 184.108.40.206/11 220.127.116.11/13 192.168.0.0/16 18.104.22.168/6 22.214.171.124/4
172.16.0.0 and 172.17.255.255 will produce:
I'll eventually implement on-the-fly htaccess, null route, and iptables policy generation.
IPtables Drop Policies
In addition to the new IP Range to CIDR tool, I've also added drop lists for ThePlanet, Softlayer, APNIC, and Amazon, courtesy of robtex.com. While looking over firewall and httpd access logs, malicious attacks and comment spam seem to originate from these sources the most. If there's a network or company you'd like me to add, just submit a comment to this post.
Word Count: 327