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 the libexec directory of the xtables-addons package, and that's outside $PATH on purpose. So if you wanna invoke it, you have to call it with a path. iykyk πŸ™ˆ
  • -D target_dir β€” specifies the target directory where the files are gonna be put. Defaults to "." πŸŽ€
  • -S source_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 🌈

xt_geoip_dl_maxmind(1)


ok that's the whole page, you ate that πŸ’œ this one's from xtables-addons, dated 2010-12-17 β€” iconic behavior, no cap, periodt πŸ«ΆπŸ’–βœ¨