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
Sponsor

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

Căutare
Categorii
Citeste mai mult
Crime
Zalma's Insurance Fraud Letter, September 1, 2022
ZALMA'S INSURANCE FRAUD LETTERVolume 26, Issue 17 – September 1, 2022Read the full fraud...
By Barry Zalma 2022-09-01 12:39:23 0 3K
Alte
Immediate Offer of Policy Limits Defeats Bad Faith Claim
Prompt Offer of Policy Limits is Good Faith Claims Handling Read the full article at...
By Barry Zalma 2021-09-27 12:27:25 0 3K
Alte
Waiver of Two Very Specific Rights Does Not Infer a Waiver of all Rights
To Recover Appraisal Award Insured Must Actually Repair or ReplacePost 4855 Read the full...
By Barry Zalma 2024-08-14 12:32:34 0 792
Alte
Properly Convicted of Health Care Fraud
“Chutzpah” to Appeal a Conviction Where Overwhelming Evidence Established a $31...
By Barry Zalma 2021-11-30 13:35:59 0 4K