[Dshield] World CIDR Tools

David Cary Hart DShield at TQMcube.com
Thu Jan 12 22:27:32 GMT 2006


These were designed to help setup a geographical blacklist for SMTP but could
be easily adapted to iptables rules.
ftp://ftp.tqmcube.com/pub/world_cidr_tools.tar.bz2

world.cidr

	A single CIDR by country file for RBLDNSD. Use by removing the
	countries and data you want mail from or create different return
	codes for accepted and blacklisted countries.

cidr.index

	The country index. Suitable for creating a PHP array.

cidr.delim

	Tab delimied data file suitable for MySQL data load. For example:
		create database worldcidr;
		use worldcidr;
		create table cidr (country varchar(32), ip_range varchar(24)); 
		LOAD DATA LOCAL infile 'cidr.delim' INTO TABLE cidr;

	Having this data in a database facilitates th creation of a custom
	RBLDNSD zone or creating IPtables rules.

	I could also do this as a range list which could be stored in MySQL in
	decimal equivalent. In other words, the table would have three columns;
	country, IP_from, IP_to.
-- 
Our DNSRBL - 
           Eliminate Spam: http://www.TQMcube.com/spam_trap.php
          Multi-RBL Check: http://www.TQMcube.com/rblcheck.php
            Zombie Graphs: http://www.TQMcube.com/zombies.php


More information about the list mailing list