xt_geoip: update manpage with instructions for db build

This commit is contained in:
Jan Engelhardt
2010-11-17 15:13:16 +01:00
parent 81ad2519a9
commit 1721b76a0f

View File

@@ -10,8 +10,14 @@ NOTE:
The country is inputed by its ISO-3166 code. The country is inputed by its ISO-3166 code.
.PP .PP
The extra files you will need is the binary database files. They are generated The extra files you will need is the binary database files. They are generated
from a country-subnet database with the geoip_csv_iv0.pl tool that should be from a country-subnet database with the geoip_build_db.pl tool that is shipped
available in /usr/lib(exec)/xtables-addons/ . The resulting files MUST be moved with the source package, and which should be available in compiled packages in
to /usr/share/xt_geoip/ /usr/lib(exec)/xtables-addons/. The first command retrieves CSV files from
as the shared library is statically looking for this pathname (e.g. MaxMind, while the other two build packed bisectable range files:
/usr/share/xt_geoip/LE/de.iv0). .PP
cd /tmp; $path/to/geoip_download.sh;
.PP
$path/to/geoip_build_db.pl -D /usr/share/xt_geoip/LE
$path/to/geoip_build_db.pl -D /usr/share/xt_geoip/BE -b
.PP
The shared library is hardcoded to look in these paths, so use them.