Quote:
Originally Posted by win32sux
Can you share it with us?
|
Yes I am willing to share it. Unfortunately I am not allowed to post attachments on this list.
On a related issue: I have also added some functionality to Karl Hammar's "ipnumber.c" if anybody is interested in that; I've added two switches: one to print the cidr(s) given a dotted quad range and a switch to do the converse (calculate all the ranges for a cidr).
The prior program is working though I am going to add some more functionality to it. Here is the program's syntax. Where might I upload/send it for distribution?
USAGE: ipfind (-r REGISTRY... | -c CODE... | -C CODE...) [-m | -M] [-i] [-I[CHAIN_NAME]] [-pCHAIN_NAME ] [-nCHAIN_NAME] [-aACTION]] [-f DOTTED_QUAD...] [-v]
-c, --ctry filter using 2 character country codes
-C, --cntry filter using 3 character country codes (webnet77)
-r, --registry filter using registry name
-m, --cidr print cidr instead of netmask (default)
-M, --netmask print netmask instead of cidr
-i, --iptables output iptables startup file format
-I, --iptables_cmd output iptables configuration script using CHAIN_NAME prefix
-p, --prior iptables configuration script prior chain name (default "INPUT")
-n, --next iptables configuration script next chain name (default "ACCEPT")
-a, --action iptables configuration script action (default "DROP")
-L, --nolog iptables configuration script no logging
-f, --find find IP's range block
--maxmind use the maxmind csv file (default)
--webnet77 use the webnet77 csv file
-v, --verbose display verbose output