Spamhaus daily bad IP autoblocker script

2
6K

 

curl -s https://www.spamhaus.org/drop/drop.txt >drop.txt

 

cut -d' ' -f 1 drop.txt >drop2.txt

mv drop2.txt drop.txt

grep -v '^{;}' drop.txt >drop2.txt

 

echo "#!/bin/sh" >script

 

cat drop3.txt | while read line

do

# $line="$line{var ;*}"

echo iptables -A INPUT -s $line -j DROP >>script

echo iptables -A OUTPUT -s $line -j DROP >>script

 

done

 

curl -s https://www.spamhaus.org/drop/edrop.txt >drop.txt

 

cut -d' ' -f 1 drop.txt >drop2.txt

mv drop2.txt drop.txt

grep -v '^{;}' drop.txt >drop2.txt

 

echo "#!/bin/sh" >script

 

cat drop3.txt | while read line

do

# $line="$line{var ;*}"

echo iptables -A INPUT -s $line -j DROP >>script

echo iptables -A OUTPUT -s $line -j DROP >>script

 

done

 

chmod 777 script

sh script

Like
1
Sponsorluk

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

Site içinde arama yapın
Kategoriler
Read More
Home
THE LAWLESS PEOPLE
WHY ARE PEOPLE PROTESTING? YOU CANT FOOL ME SOMEONE HAS A ORGANIZATION AND THEY ARE IN ALL THE...
By Nibbie Chase 2020-05-31 12:41:10 0 3K
Other
Fairly Debatable and Compliance with Policy Defeats Bad Faith Claim
Insurance Claims Personnel Must Control The Issues To Be Determined By Appraisal And Should Never...
By Barry Zalma 2021-06-16 12:44:17 0 3K
Finance
Truck v. Train - Train Wins
Only Truck Driver Responsible for AccidentRead the full article at https://lnkd.in/gjtHPfpq and...
By Barry Zalma 2022-07-29 13:24:58 0 4K
Other
Why Insurer Spent Millions to Defend Fraudulent Claim
Why Insurer Spent Millions to Defend Fraudulent Claim The Poet Enters the World of...
By Barry Zalma 2024-05-09 13:02:12 0 1K
Home
WHY JESUS IS NOT VALID
John 2Jesus in Jerusalem at Passover13 It was nearly time for the Jewish Passover, and Jesus went...
By Nibbie Chase 2020-07-13 12:35:05 0 5K