Re: [mailop] IP to country?
On Mon, 24 Apr 2023 at 23:34, Slavko via mailop wrote: > > Dňa 24. apríla 2023 19:40:06 UTC používateľ Rich Kulawiec via mailop > napísal: > > >Yes. Here's a (Python) script you can download and run for yourself, if you > >wish: > > > > Generating country IP ranges lists > > http://blog.erben.sk/2014/01/28/generating-country-ip-ranges-lists/ > > Please, which countries are these from RIPE? ASN's > (registered) or IP's (real) country? > > Yes, in many cases they are the same, but not in all > (eg. big clouds)... It's looking at IRR delegations, so it's about prefixes. ASN to country mappings would be pretty useless indeed. Lukas ___ mailop mailing list mailop@mailop.org https://list.mailop.org/listinfo/mailop
Re: [mailop] IP to country?
Dňa 24. apríla 2023 19:40:06 UTC používateľ Rich Kulawiec via mailop napísal: >Yes. Here's a (Python) script you can download and run for yourself, if you >wish: > > Generating country IP ranges lists > http://blog.erben.sk/2014/01/28/generating-country-ip-ranges-lists/ Please, which countries are these from RIPE? ASN's (registered) or IP's (real) country? Yes, in many cases they are the same, but not in all (eg. big clouds)... regards -- Slavko https://www.slavino.sk/ ___ mailop mailing list mailop@mailop.org https://list.mailop.org/listinfo/mailop
Re: [mailop] IP to country?
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? Yes. Here's a (Python) script you can download and run for yourself, if you wish: Generating country IP ranges lists http://blog.erben.sk/2014/01/28/generating-country-ip-ranges-lists/ Scroll down a bit to "UPDATE" and "UPDATE2" to find the freely downloadable output from the Python script (see link below) as well as a PHP script that uses Maxmind to generate the lists in anothe way. Or if you want to skip right to the goodies: Country IP ranges http://www.iwik.org/ipcountry/ ---rsk ___ mailop mailing list mailop@mailop.org https://list.mailop.org/listinfo/mailop
Re: [mailop] IP to country?
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 On Behalf Of Peter N. M. Hansteen via mailop Sent: Monday, April 24, 2023 11:11 AM To: mailm...@ionos.gr Cc: mailop@mailop.org 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 mailop@mailop.org 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 mailop@mailop.org https://list.mailop.org/listinfo/mailop
Re: [mailop] IP to country?
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 mailop@mailop.org https://list.mailop.org/listinfo/mailop
Re: [mailop] IP to country?
I am not going to protect something sensitive, so a few errors are acceptable. thank you, I'll take a look. On Mon, 24 Apr 2023 12:05:10 -0400 Jan Schaumann via mailop wrote: > Mary via mailop wrote: > > > Is there a place that provides IP to country location information for free? > > > > Take a look at this repository: > https://github.com/herrbischoff/country-ip-blocks > > I don't know how reliable or accurate they are. But > even with known accurate data, refreshing only once a > year would seem to invite a lot of errors in your > decision making; I'd pull more frequently. (The > deltas are small.) > > -Jan > ___ > mailop mailing list > mailop@mailop.org > https://list.mailop.org/listinfo/mailop ___ mailop mailing list mailop@mailop.org https://list.mailop.org/listinfo/mailop
Re: [mailop] IP to country?
Try https://dev.maxmind.com/geoip/geolite2-free-geolocation-data On 24 April 2023 16:54:33 Mary via mailop wrote: Hello, 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. Thank you. ___ mailop mailing list mailop@mailop.org https://list.mailop.org/listinfo/mailop ___ mailop mailing list mailop@mailop.org https://list.mailop.org/listinfo/mailop
Re: [mailop] IP to country?
Mary via mailop wrote: > Is there a place that provides IP to country location information for free? Take a look at this repository: https://github.com/herrbischoff/country-ip-blocks I don't know how reliable or accurate they are. But even with known accurate data, refreshing only once a year would seem to invite a lot of errors in your decision making; I'd pull more frequently. (The deltas are small.) -Jan ___ mailop mailing list mailop@mailop.org https://list.mailop.org/listinfo/mailop
[mailop] IP to country?
Hello, 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. Thank you. ___ mailop mailing list mailop@mailop.org https://list.mailop.org/listinfo/mailop