John Rudd wrote on Wed, 8 Apr 2009 12:44:29 -0700: > 1) Does anyone know of a convenient command line tool (perl library > being ideal) that lets you give it an IP address, and it tells you the > country and/or continent (and that's it)?
google for GeoIP. > > 2) similarly, does anyone know of a command line tool where you can > give it a country and/or continent, and it will generate concise IP > addresses ranges (like A.B.C.D-E.F.G.H) that have been allocated to > that country/continent? (and by "concise", I mean compacted into as > few range statements as possible, to minimize the number of lines) You want to block by country? milter-greylist has GeoIP support built-in and allows to black/grey/whitelist on country. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com