This commit is contained in:
Bxio 2025-06-23 20:12:48 +01:00
parent 26c5a48d84
commit 77f0e4f8ea

View File

@ -11,7 +11,7 @@ echo -e "
██║░░██║██║░╚███║██████╔╝██████╔╝╚█████╔╝██████╔╝
╚═╝░░╚═╝╚═╝░░╚══╝╚═════╝░╚═════╝░░╚════╝░╚═════╝░"
COUNTRIES="na cn ru in br id vn pk tr ir eg bd mx za ua kr ng ph"
COUNTRIES="kz cn ru in br id vn pk tr ir eg bd mx za ua kr ng ph"
ZONE_DIR="zone"
mkdir -p "$ZONE_DIR"
@ -44,12 +44,13 @@ function add_iptables_rule() {
# 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://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
for country in $COUNTRIES; do
url="https://raw.githubusercontent.com/firehol/blocklist-ipsets/refs/heads/master/ipip_country/ipip_country_${country}.netset" #
url="https://github.com/ipverse/rir-ip/blob/master/country/${country}/ipv4-aggregated.txt" #
echo "[$(date '+%Y-%m-%d %H:%M:%S')] Baixando lista IPs: $country"
tmp_file2="${ZONE_DIR}/${country}.zone.tmp2"