This commit is contained in:
parent
85d5366921
commit
26c5a48d84
5
start.sh
5
start.sh
@ -11,7 +11,7 @@ echo -e "
|
||||
██║░░██║██║░╚███║██████╔╝██████╔╝╚█████╔╝██████╔╝
|
||||
╚═╝░░╚═╝╚═╝░░╚══╝╚═════╝░╚═════╝░░╚════╝░╚═════╝░"
|
||||
|
||||
COUNTRIES="cn ru in br id vn pk tr ir eg bd mx za ua kr ng ph"
|
||||
COUNTRIES="na cn ru in br id vn pk tr ir eg bd mx za ua kr ng ph"
|
||||
ZONE_DIR="zone"
|
||||
|
||||
mkdir -p "$ZONE_DIR"
|
||||
@ -43,12 +43,13 @@ function add_iptables_rule() {
|
||||
# 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
|
||||
# https://raw.githubusercontent.com/firehol/blocklist-ipsets/refs/heads/master/ipip_country/ipip_country_${country}.netset
|
||||
|
||||
|
||||
|
||||
|
||||
for country in $COUNTRIES; do
|
||||
url="https://raw.githubusercontent.com/firehol/blocklist-ipsets/refs/heads/master/ip2location_country/ip2location_country_${country}.netset" #
|
||||
url="https://raw.githubusercontent.com/firehol/blocklist-ipsets/refs/heads/master/ipip_country/ipip_country_${country}.netset" #
|
||||
echo "[$(date '+%Y-%m-%d %H:%M:%S')] Baixando lista IPs: $country"
|
||||
|
||||
tmp_file2="${ZONE_DIR}/${country}.zone.tmp2"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user