* Thu Feb 13 2025 John Crisp <jcrisp@safeandsoundit.co.uk> 1.3.1-24.sme

- move scriptoig back to /usr/share/geoip
- Lose the LE/BE (Little/Big Endian) parts as iptables can't seme to read the file in subdirs
- Update ULOG to NFLOG in rules but restricts the number of countries
This commit is contained in:
John Crisp
2025-02-13 19:14:51 +01:00
parent a9ebb21641
commit 42ce2cced8
6 changed files with 285 additions and 10 deletions

View File

@@ -3,6 +3,9 @@
# Original script from xtables-addons
# SME specific use of ConfigDB
# replace /usr/libexec/xtables-addons/xt_geoip_dl in /usr/share/xt_geoip/update_base
# Koozali SME v11
# Now migrated to using files in /usr/share/xt_geoip
status=$(/sbin/e-smith/config getprop geoip status)
if [[ "$status" != "enabled" ]]
@@ -26,5 +29,9 @@ then
exit 2
fi
unzip -q GeoLite2-Country-CSV.zip
# unzip -q GeoLite2-Country-CSV.zip
if [ ! -d "/usr/share/xt_geoip/GeoLite2-Country-CSV" ]; then
mkdir -p "/usr/share/xt_geoip/GeoLite2-Country-CSV";
fi
unzip -o -q -j GeoLite2-Country-CSV.zip -d /usr/share/xt_geoip/GeoLite2-Country-CSV
rm -f GeoLite2-Country-CSV.zip