This commit is contained in:
Bxio 2025-06-23 17:39:05 +01:00
parent 0210cbb6f6
commit 7bb79c2aa4
2 changed files with 4 additions and 4 deletions

View File

@ -20,6 +20,6 @@ Testado em Ubuntu 24.04.2 LTS
https://www.ipdeny.com/ipblocks/ https://www.ipdeny.com/ipblocks/
https://github.com/firehol/blocklist-ipsets
git clone https://gitea.zol.oixb.run/oixb.run/CountryBlock.git git clone https://gitea.zol.oixb.run/oixb.run/CountryBlock.git

View File

@ -37,8 +37,8 @@ function add_iptables_rule() {
fi fi
} }
for country in $COUNTRIES; do for country in $COUNTRIES; do #https://www.ipdeny.com/ipblocks/data/countries/${country}.zone
url="https://www.ipdeny.com/ipblocks/data/countries/${country}.zone" url="https://github.com/firehol/blocklist-ipsets/blob/master/geolite2_country/country_${country}.netset" #
echo "[$(date '+%Y-%m-%d %H:%M:%S')] Baixando lista IPs: $country" echo "[$(date '+%Y-%m-%d %H:%M:%S')] Baixando lista IPs: $country"
tmp_file="${ZONE_DIR}/${country}.zone.tmp" tmp_file="${ZONE_DIR}/${country}.zone.tmp"