IPCOUNT script
It’s time for some linux stuff. Couple of months ago I was learning bash scripting. I had had a few ideas about configuring iptables, blocking ip numbers etc., so I decided to write a tool, that could help me in that task. I especially needed the ipcount tool, something like this - ipcount.
The Suse 10.1, which I was working on that time, has the ipcount, but it worked very slow and has a lots of bugs, so I wrote a bash script that do exactly the same, but faster and with simply results.
DOWNLOAD: ipcount20060807.tar.gz
SOURCE CODE:
Example of use: ./ipcount.sh 1.2.3.4-255.255.255.255
Result:
1.2.3.4/301.2.3.8/291.2.3.16/281.2.3.32/271.2.3.64/261.2.3.128/251.2.4/221.2.8/211.2.16/201.2.32/191.2.64/181.2.128/171.3/161.4/141.8/131.16/121.32/111.64/101.128/9
Very fast, very simple, that’s what I needed…
The script have one bug, the first IP must not equal 0.0.0.0 otherwise you will see error message (division by 0).

Web
Blog
News
Video
Wiki