This commit is contained in:
parent
26c5a48d84
commit
77f0e4f8ea
5
start.sh
5
start.sh
@ -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"
|
ZONE_DIR="zone"
|
||||||
|
|
||||||
mkdir -p "$ZONE_DIR"
|
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://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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for country in $COUNTRIES; do
|
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"
|
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