Re: Light GeoIP support dropped?

2020-01-07 Thread Miroslav Lachman

Alexander Koeppe wrote on 2020/01/07 19:47:

Am 06.01.20 um 22:46 schrieb Christoph Moench-Tegeder:

## Alexander Koeppe (forma...@online.de):


since I've upgraded to FreeBSD 12, I don't find a package providing
the lightweight geoip database API incl. GeoIP.h and libGeoIP.so.


The so-called "legacy" database format used by libGeoIP has been
discontinued by MaxMind, and is only available for paying customers:
https://blog.maxmind.com/2018/01/02/discontinuation-of-the-geolite-legacy-databases/ 



For that reason, net/GeoIP has been removed quite some time ago:
https://svnweb.freebsd.org/ports?view=revision=493168

And the free (as in no payment required) GeoLite2 databases have seen 
some

licensing/handling changes, too:
https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/ 



Regards,
Christoph



Thanks for the hints. All the information is very clearing.
This deprecation has completely slipped through for me.
I'll dig into the new GeoLite2 approach and see what's the impact for my 
software project.


Thanks to all and all others who have responded.


Free registration and license key works without any problem. But if your 
software accessed DB or CSV files directly then it will not work anymore 
because format of database was changed from one flat table to few tables 
with relations. If your SW uses some library do access the DB then it 
may work with updated dependency.
My usecase was very simple shellscript so I was able to convert it to 
new CSV files. They can be converted to the old format if somebody need it.


Kind regards
Miroslav Lachman
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Light GeoIP support dropped?

2020-01-07 Thread Alexander Koeppe

Am 06.01.20 um 22:46 schrieb Christoph Moench-Tegeder:

## Alexander Koeppe (forma...@online.de):


since I've upgraded to FreeBSD 12, I don't find a package providing
the lightweight geoip database API incl. GeoIP.h and libGeoIP.so.


The so-called "legacy" database format used by libGeoIP has been
discontinued by MaxMind, and is only available for paying customers:
https://blog.maxmind.com/2018/01/02/discontinuation-of-the-geolite-legacy-databases/

For that reason, net/GeoIP has been removed quite some time ago:
https://svnweb.freebsd.org/ports?view=revision=493168

And the free (as in no payment required) GeoLite2 databases have seen some
licensing/handling changes, too:
https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/

Regards,
Christoph



Thanks for the hints. All the information is very clearing.
This deprecation has completely slipped through for me.
I'll dig into the new GeoLite2 approach and see what's the impact for my 
software project.


Thanks to all and all others who have responded.

- Alex

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Light GeoIP support dropped?

2020-01-06 Thread Julian Elischer

On 1/6/20 6:04 PM, Kevin Oberman wrote:

On Mon, Jan 6, 2020 at 1:17 PM Alexander Koeppe  wrote:


Hi,

since I've upgraded to FreeBSD 12, I don't find a package providing the
lightweight geoip database API incl. GeoIP.h and libGeoIP.so.

I only find `geoipupdate` which is the non-free variant of the API.

Has the package been renamed?

Thanks

- Alex


GeoIP and the GeoIP 1 database were discontinued early last year. They were
replaced by net/libmaxminddb and GeoIP 2 database. I have no idea if any
form of free data is available.


there is a partial alternative in ports...

https://www.freshports.org/search.php?query=ipdbtools=go=10=name=match=excludedeleted=1=caseinsensitive

It uses the official national registrations for country enumeration, 
and can generate firewall tables directly.


Here's the cron script I use to generate a table in ipfw that only 
allows australian and US addresses (for example):



#!/bin/sh
ALLOWFILE=/root/AU+USA-GEOIPS.ipfw
MAILTABLE=20
ALT_MAILTABLE=21
AU_VAL=1
US_VAL=10200

#fetch latest geo-ip ranges and set AU and USA into table ${MAILTABLE}
ipdb-update.sh
ipup -t AU=${AU_VAL}:US=${US_VAL} -n ${ALT_MAILTABLE} > ${ALLOWFILE}
ipfw table ${ALT_MAILTABLE} flush
ipfw -q -f ${ALLOWFILE}
ipfw table ${MAILTABLE} swap ${ALT_MAILTABLE}


___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"



___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Light GeoIP support dropped?

2020-01-06 Thread Kevin Oberman
On Mon, Jan 6, 2020 at 1:17 PM Alexander Koeppe  wrote:

> Hi,
>
> since I've upgraded to FreeBSD 12, I don't find a package providing the
> lightweight geoip database API incl. GeoIP.h and libGeoIP.so.
>
> I only find `geoipupdate` which is the non-free variant of the API.
>
> Has the package been renamed?
>
> Thanks
>
>- Alex


GeoIP and the GeoIP 1 database were discontinued early last year. They were
replaced by net/libmaxminddb and GeoIP 2 database. I have no idea if any
form of free data is available.
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Light GeoIP support dropped?

2020-01-06 Thread Christoph Moench-Tegeder
## Alexander Koeppe (forma...@online.de):

> since I've upgraded to FreeBSD 12, I don't find a package providing
> the lightweight geoip database API incl. GeoIP.h and libGeoIP.so.

The so-called "legacy" database format used by libGeoIP has been
discontinued by MaxMind, and is only available for paying customers:
https://blog.maxmind.com/2018/01/02/discontinuation-of-the-geolite-legacy-databases/

For that reason, net/GeoIP has been removed quite some time ago:
https://svnweb.freebsd.org/ports?view=revision=493168

And the free (as in no payment required) GeoLite2 databases have seen some
licensing/handling changes, too:
https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/

Regards,
Christoph

-- 
Spare Space
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Light GeoIP support dropped?

2020-01-06 Thread Dewayne Geraghty
Alexander, Unfortunately maxmind have changed their rules and as per
AdamW's notification in the geoipupdate message for version 4.1.5_1,
https://svnweb.freebsd.org/ports/head/net/geoipupdate/files/pkg-message.in?view=markup
advises to go to
https://www.maxmind.com/en/geolite2/signup
to create an account, then you will need to go to (I think it was) "My
Licence" where you provide a key description (you enter text) and then you
will need to generate a key.

Adam advises to go to
https://www.maxmind.com/en/accounts/155743/license-key
for the licence, but that is actually his account number (155743),  which I
would suggest is inappropriate.  (Adam!)  ;)

I have walked through the steps, and the account setup involves providing
you email address, to which additional details are sent for the account
creation process.  Once done, you acquire the key.  Once you login to your
account, you will notice a number at the end of the url, after accounts/
(see above) that is your account information that you plug into your
geoipupdate.conf file, and you'll need your licence key as well.   Its a
little convoluted, but it also provides a config file segment which you can
conveniently cut/paste.

Regards, Dewayne.
PS our version of geoipupdate doesn't provide a version number, but the
current version is 4.1.5_1, anything after 3.1.1 should work as described,
if earlier, the account creation process will advise.  So it continues to
work.
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Light GeoIP support dropped?

2020-01-06 Thread Alexander Koeppe

Hi Ed,

thanks for your answer.

Am 06.01.20 um 22:23 schrieb Ed Maste:

On Mon, 6 Jan 2020 at 16:17, Alexander Koeppe  wrote:
It appears both free and paid access is available with API v2.


Do you know how to use the v2 API? Do you know of any documentation?

Thanks


 - Alex

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Light GeoIP support dropped?

2020-01-06 Thread Ed Maste
On Mon, 6 Jan 2020 at 16:17, Alexander Koeppe  wrote:
>
> Hi,
>
> since I've upgraded to FreeBSD 12, I don't find a package providing the
> lightweight geoip database API incl. GeoIP.h and libGeoIP.so.
>
> I only find `geoipupdate` which is the non-free variant of the API.

Looking at ports history it seems the database it relied on is no
longer available. It appears both free and paid access is available
with API v2.
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Light GeoIP support dropped?

2020-01-06 Thread Alexander Koeppe

Hi,

since I've upgraded to FreeBSD 12, I don't find a package providing the 
lightweight geoip database API incl. GeoIP.h and libGeoIP.so.


I only find `geoipupdate` which is the non-free variant of the API.

Has the package been renamed?

Thanks

  - Alex

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"