# 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


# 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 Kommentare 0 Anteile 403 Ansichten
Gesponsert

We are 100% funded for October.

Thanks to everyone who helped out. đŸ„°

Xephula monthly operating expenses for 2024 - Server: $143/month - Backup Software: $6/month - Object Storage: $6/month - SMTP Service: $10/month - Stripe Processing Fees: ~$10/month - Total: $175/month

Xephula Funding Meter

Please Donate Here