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

Reply via email to