This commit is contained in:
Bxio 2025-06-23 20:13:42 +01:00
parent 77f0e4f8ea
commit abddf312f4

View File

@ -44,13 +44,13 @@ function add_iptables_rule() {
# https://raw.githubusercontent.com/firehol/blocklist-ipsets/refs/heads/master/geolite2_country/country_${country}.netset # https://raw.githubusercontent.com/firehol/blocklist-ipsets/refs/heads/master/geolite2_country/country_${country}.netset
# https://www.ipdeny.com/ipblocks/data/countries/${country}.zone # https://www.ipdeny.com/ipblocks/data/countries/${country}.zone
# https://raw.githubusercontent.com/firehol/blocklist-ipsets/refs/heads/master/ipip_country/ipip_country_${country}.netset # https://raw.githubusercontent.com/firehol/blocklist-ipsets/refs/heads/master/ipip_country/ipip_country_${country}.netset
# https://github.com/ipverse/rir-ip/blob/master/country/${country}/ipv4-aggregated.txt # https://raw.githubusercontent.com/ipverse/rir-ip/refs/heads/master/country/${country}/ipv4-aggregated.txt
for country in $COUNTRIES; do for country in $COUNTRIES; do
url="https://github.com/ipverse/rir-ip/blob/master/country/${country}/ipv4-aggregated.txt" # url="https://raw.githubusercontent.com/ipverse/rir-ip/refs/heads/master/country/${country}/ipv4-aggregated.txt" #
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_file2="${ZONE_DIR}/${country}.zone.tmp2" tmp_file2="${ZONE_DIR}/${country}.zone.tmp2"