# block China
echo "#!/bin/sh" >china2.sh
curl -s https://www.ipdeny.com/ipblocks/data/aggregated/cn-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
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
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 التعليقات
0 المشاركات
394 مشاهدة