Package Details: xtables-geoip-db 2.1-9

Git Clone URL: https://aur.archlinux.org/xtables-geoip-db.git (read-only, click to copy)
Package Base: xtables-geoip-db
Description: GeoIP Database for xtables
Upstream URL: https://db-ip.com/db/download/ip-to-country-lite
Keywords: db-ip geoip geolite2 maxmind
Licenses: GPL, BSD
Submitter: amish
Maintainer: amish
Last Packager: amish
Votes: 7
Popularity: 0.000001
First Submitted: 2014-05-04 12:27
Last Updated: 2021-04-11 01:59

Pinned Comments

amish commented on 2020-03-14 09:43

Package now uses DB-IP GeoIP database. If you still want to use MaxMind GeoLite2 database then read PKGBUILD for details. (needs license key from MaxMind)

amish commented on 2018-12-22 19:37

Those using nftables may try this AUR package: https://aur.archlinux.org/packages/nftables-geoip-db/

See README file of that package for details. Thank you.

Latest Comments

amish commented on 2021-03-09 00:48

@dreieck You need to install perl-text-csv-xs. It is there in makedepends(). I wonder how makepkg did not complain to you. It should have shown you this error:

==> Missing dependencies: -> perl-text-csv-xs

About geoip.license.key, it can not be put in git or source as it will vary for each user. i.e. each use will have own key. However I have fixed the error message and it will be gone in next update. But package should build just fine even if there was "No such file" error.

dreieck commented on 2021-03-08 16:55

Build fails for me:

==> Starting package()...
Using DB-IP GeoIP database
Can't locate Text/CSV_XS.pm in @INC (you may need to install the Text::CSV_XS module) (@INC contains: /usr/lib/perl5/5.32/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.32/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.32/core_perl /usr/share/perl5/core_perl) at /tmp/xtables-geoip-db/src/xt_geoip_build line 13.
BEGIN failed--compilation aborted at /tmp/xtables-geoip-db/src/xt_geoip_build line 13.
==> ERROR: A failure occurred in package().
    Aborting...

Thanks for maintaining!

dreieck commented on 2021-03-08 16:53

Your PKGBUILD does a source geoip.license.key. But this file is not provided by your package, and also it is not mentioned that it is needed in the source-array. So there is an error message /[...]/xtables-geoip-db/PKGBUILD: line 16: geoip.license.key: No such file or directory

So can you please add a check and only source it if it is available (if [ -r "${srcdir}/geoip.license.key" ]; then source "${srcdir}/geoip.license.key"; fi), or add it to the source-array as a required file?

Thanks for maintaining!

amish commented on 2020-03-14 09:43

Package now uses DB-IP GeoIP database. If you still want to use MaxMind GeoLite2 database then read PKGBUILD for details. (needs license key from MaxMind)

amish commented on 2020-01-07 13:51

Quote from PKGBUILD:

#create a file named geoip.license.key which contains MaxMind License key in following format:
_maxmind_key=XXXX

Where XXXX is your GeoIP license key, which is available for free from Maxmind.

After that you can build the package normally.

gaura.panasenko commented on 2020-01-07 11:27

Hello!

There is error while building this package: ERROR: Failure while downloading https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&suffix=zip&license_key=

When I go to this link I get: Invalid license key

And on link https://dev.maxmind.com/geoip/geoip2/geolite2/ I read this message: Due to upcoming data privacy regulations, we are making significant changes to how you access free GeoLite2 databases starting December 30, 2019.

As described here https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/ It is required to sign up for a MaxMind account and create license key to download this file.

amish commented on 2018-12-22 19:37

Those using nftables may try this AUR package: https://aur.archlinux.org/packages/nftables-geoip-db/

See README file of that package for details. Thank you.

HanFox commented on 2015-08-13 11:30

This depends on unzip to install as line 8 of /usr/lib/iptables/xtables-addons/xt_geoip_dl calls it.

amish commented on 2015-01-10 02:28

Well if you want it to be automatic then package is not required!

Just make a script with this 2 commands(rough idea)

sh /usr/lib/iptables/xtables-addons/xt_geoip_dl
perl /usr/lib/iptables/xtables-addons/xt_geoip_build -D "/usr/share/xt_geoip" GeoIP*.csv

jskier commented on 2015-01-09 20:41

This works really well, thank you. Would you be interested in incorporating a systemd timer to run the perl script to update the database the first Tuesday of the month? That way, a manual rebuild of the package would not be necessary to update the database.