https://bugs.koozali.org/show_bug.cgi?id=12586
Bug ID: 12586
Summary: xt_geoip locations not being updated correctly
Classification: Contribs
Product: SME Contribs
Version: 10.0
Hardware: ---
OS: ---
Status: CONFIRMED
Severity: normal
Priority: P3
Component: smeserver-xt_geoip
Assignee: mab...@misouk.com
Reporter: jcr...@safeandsoundit.co.uk
QA Contact: contribteam@lists.contribs.org
Target Milestone: ---
I was idly looking at some issues I had with IP addresses being wrongly block
and tried to run a manual update.
cat update_base
cd /usr/share/xt_geoip
if ( ./xt_geoip_dl )
then
/usr/libexec/xtables-addons/xt_geoip_build GeoIPCountryWhois.csv
fi
So it wants a file called GeoIPCountryWhois.csv but I can't see that anywhere.
We retrieve a zip here in xt_geoip_dl:
wget -O GeoLite2-Country-CSV.zip -q
"https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&license_key=${LicenseKey}&suffix=zip
But it looks like MaxMind updated something because when we extract this file
we get this directory
GeoLite2-Country-CSV_20240329
That contains the CSV files.
We then need to run /usr/libexec/xtables-addons/xt_geoip_build with a -D for
the directory to expand too eg something like this:
/usr/libexec/xtables-addons/xt_geoip_build -D /usr/share/xt_geoip *.csv
That then appears to work as expected.
--
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/