# block China
echo "#!/bin/sh" >china2.sh
curl -s https://www.ipdeny.com/ipblocks/data/aggregated/cn-aggregated.zone >>china.sh
curl -s https://www.ipdeny.com/ipblocks/data/aggregated/ng-aggregated.zone >>china.sh
curl -s https://www.ipdeny.com/ipblocks/data/aggregated/kp-aggregated.zone >>china.sh
curl -s https://www.ipdeny.com/ipblocks/data/aggregated/in-aggregated.zone >>china.sh
cat china.sh | while read line
do
# $line="$line{var ;*}"
echo iptables -A INPUT -s $line -j DROP >>china2.sh
echo iptables -A OUTPUT -s $line -j DROP >>china2.sh
done
chmod 777 china2.sh
sh china2.sh
echo "#!/bin/sh" >china2.sh
curl -s https://www.ipdeny.com/ipblocks/data/aggregated/cn-aggregated.zone >>china.sh
curl -s https://www.ipdeny.com/ipblocks/data/aggregated/ng-aggregated.zone >>china.sh
curl -s https://www.ipdeny.com/ipblocks/data/aggregated/kp-aggregated.zone >>china.sh
curl -s https://www.ipdeny.com/ipblocks/data/aggregated/in-aggregated.zone >>china.sh
cat china.sh | while read line
do
# $line="$line{var ;*}"
echo iptables -A INPUT -s $line -j DROP >>china2.sh
echo iptables -A OUTPUT -s $line -j DROP >>china2.sh
done
chmod 777 china2.sh
sh china2.sh
# block China
echo "#!/bin/sh" >china2.sh
curl -s https://www.ipdeny.com/ipblocks/data/aggregated/cn-aggregated.zone >>china.sh
curl -s https://www.ipdeny.com/ipblocks/data/aggregated/ng-aggregated.zone >>china.sh
curl -s https://www.ipdeny.com/ipblocks/data/aggregated/kp-aggregated.zone >>china.sh
curl -s https://www.ipdeny.com/ipblocks/data/aggregated/in-aggregated.zone >>china.sh
cat china.sh | while read line
do
# $line="$line{var ;*}"
echo iptables -A INPUT -s $line -j DROP >>china2.sh
echo iptables -A OUTPUT -s $line -j DROP >>china2.sh
done
chmod 777 china2.sh
sh china2.sh
0 Commentarios
0 Acciones
414 Views