Ymmv but geoip.com is still free though it maps to ASN and not CIDR.  
maxmind.com I believe also has a free level or a small number of free queries 
available depending on your usage.

Bob

-----Original Message-----
From: mailop <[email protected]> On Behalf Of Peter N. M. Hansteen via 
mailop
Sent: Monday, April 24, 2023 11:11 AM
To: [email protected]
Cc: [email protected]
Subject: Re: [mailop] IP to country?

This email has reached Mapp via an external source


On Mon, Apr 24, 2023 at 06:44:45PM +0300, Mary via mailop wrote:
> Is there a place that provides IP to country location information for free?
>
> Preferably in CIDR format. I am not interested to query a service, I am 
> interested to block whole countries at the firewall level. Maybe, refresh the 
> data once or twice a year, not more.

A few years back I was faced with a similar need. I created a *very* basic 
script which can be extracted from 
https://nxdomain.no/~peter/ripe2cidr_country.sh.txt
and should be runnable on any unixlike with what is likely to be in the base 
system install.

- Peter

--
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
https://bsdly.blogspot.com/ https://www.bsdly.net/ https://www.nuug.no/
"Remember to set the evil bit on all malicious network traffic"
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.
_______________________________________________
mailop mailing list
[email protected]
https://list.mailop.org/listinfo/mailop
This e-mail is from Mapp Digital Group and its international legal entities and 
may contain information that is confidential.
If you are not the intended recipient, do not read, copy or distribute the 
e-mail or any attachments. Instead, please notify the sender and delete the 
e-mail and any attachments.
_______________________________________________
mailop mailing list
[email protected]
https://list.mailop.org/listinfo/mailop

Reply via email to