This commit is contained in:
parent
0210cbb6f6
commit
7bb79c2aa4
@ -20,6 +20,6 @@ Testado em Ubuntu 24.04.2 LTS
|
|||||||
|
|
||||||
|
|
||||||
https://www.ipdeny.com/ipblocks/
|
https://www.ipdeny.com/ipblocks/
|
||||||
|
https://github.com/firehol/blocklist-ipsets
|
||||||
|
|
||||||
git clone https://gitea.zol.oixb.run/oixb.run/CountryBlock.git
|
git clone https://gitea.zol.oixb.run/oixb.run/CountryBlock.git
|
||||||
6
start.sh
6
start.sh
@ -36,9 +36,9 @@ 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
|
for country in $COUNTRIES; do #https://www.ipdeny.com/ipblocks/data/countries/${country}.zone
|
||||||
url="https://www.ipdeny.com/ipblocks/data/countries/${country}.zone"
|
url="https://github.com/firehol/blocklist-ipsets/blob/master/geolite2_country/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_file="${ZONE_DIR}/${country}.zone.tmp"
|
tmp_file="${ZONE_DIR}/${country}.zone.tmp"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user