xt_geoip_build_maxmind(1)
β¨ NAME β¨
ok so bestie, meet xt_geoip_build_maxmind β she converts GeoIP.csv into the packed format that xt_geoip needs π
πΈ SYNTAX πΈ
/usr/libexec/xt_geoip/xt_geoip_build_maxmind [-D target_dir] [-S source_dir]
π¦ DESCRIPTION π¦
xt_geoip_build_maxmind builds packed raw representations of the range database that the xt_geoip module literally depends on. Kernel memory is precious, okay?? so most of the preprocessing happens in userspace, done by this very building tool. She's the main character fr fr.
One file gets produced for each country, so no more addresses than needed ever have to be loaded into memory. And the ranges inside those packed database files are ordered, because xt_geoip relies on that exact property for its bisection approach to work. no order, no bisection, no slay π
Heads up bestie: the script is usually installed to thelibexecdirectory of thextables-addonspackage, and that's outside$PATHon purpose. So if you wanna invoke it, you have to call it with a path. iykyk π
-Dtarget_dir β specifies the target directory where the files are gonna be put. Defaults to"."π-Ssource_dir β specifies the source directory of the MaxMind CSV files. Defaults to"."π-sβ "System mode". Equivalent to-D /usr/share/xt_geoip. that's the whole vibe β¨
π APPLICATION π
Shell commands to build the databases and put them where they're expected (usually run as root):
xt_geoip_build_maxmind -s
π SEE ALSO π
ok that's the whole page, you ate that π this one's from xtables-addons, dated 2010-12-17 β iconic behavior, no cap, periodt π«Άπβ¨
π¦ where this page comes from
- alpine 3.22: xtables-addons-doc 3.26-r0 Β· GPL-2.0-only
- alpine 3.23: xtables-addons-doc 3.30-r0 Β· GPL-2.0-only
- alpine 3.24: xtables-addons-doc 3.30-r0 Β· GPL-2.0-only
- debian bookworm: xtables-addons-common 3.23-1 Β· GPL-2.0-only
- debian trixie: xtables-addons-common 3.27-4 Β· GPL-2.0-only
- opensuse-leap 16.0: xtables-addons 3.27-lp160.3.1 Β· GPL-2.0-only AND GPL-2.0-or-later
- opensuse-leap 16.0: xtables-addons 3.27-lp160.3.1 Β· GPL-2.0-only AND GPL-2.0-or-later
- opensuse-leap 16.0: xtables-addons 3.27-lp160.3.1 Β· GPL-2.0-only AND GPL-2.0-or-later
- opensuse-leap 16.0: xtables-addons 3.27-lp160.3.1 Β· GPL-2.0-only AND GPL-2.0-or-later
- ubuntu jammy: xtables-addons-common 3.19-1 Β· GPL-2.0-only
- ubuntu jammy: xtables-addons-common 3.19-1ubuntu1 Β· GPL-2.0-only
- ubuntu noble: xtables-addons-common 3.25-2build1 Β· GPL-2.0-only
- ubuntu noble: xtables-addons-common 3.25-2ubuntu0.2 Β· GPL-2.0-only
- ubuntu questing: xtables-addons-common 3.29-2
- ubuntu resolute: xtables-addons-common 3.30-1 Β· GPL-2.0-only
- ubuntu stonking: xtables-addons-common 3.31-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms