This commit is contained in:
parent
22ec9a4c3d
commit
387c79124e
14
start.sh
14
start.sh
@ -36,9 +36,17 @@ function add_iptables_rule() {
|
|||||||
iptables -t raw -I "$chain" -i vmbr0 -m set --match-set "$set_name" src -j DROP
|
iptables -t raw -I "$chain" -i vmbr0 -m set --match-set "$set_name" src -j DROP
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
for country in $COUNTRIES; do #https://www.ipdeny.com/ipblocks/data/countries/${country}.zone
|
|
||||||
url="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/ip2location_country/ip2location_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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
for country in $COUNTRIES; do
|
||||||
|
url="https://raw.githubusercontent.com/firehol/blocklist-ipsets/refs/heads/master/ip2location_country/ip2location_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_file2="${ZONE_DIR}/${country}.zone.tmp2"
|
tmp_file2="${ZONE_DIR}/${country}.zone.tmp2"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user