Spamhaus daily bad IP autoblocker script

2
6كيلو بايت

 

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
إعلان مُمول

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

البحث
الأقسام
إقرأ المزيد
True Crime
Zalma's Insurance Fraud Letter - May 15, 2024
Zalma’s Insurance Fraud Letter – May 15, 2024 Read the full article at...
بواسطة Barry Zalma 2024-05-15 13:17:02 0 1كيلو بايت
أخرى
A Video Explaining the Equitable Remedy of Salvage
How to Determine the Priority of Rights to Salvage Read the full article at...
بواسطة Barry Zalma 2021-04-14 13:05:17 0 4كيلو بايت
أخرى
A Video Explaining the Notice-Prejudice Rule When Interpreting an Insurance Policy
The Notice-Prejudice Rule Limits the Effectiveness of a Material Condition See the full video at...
بواسطة Barry Zalma 2020-10-20 15:09:39 0 5كيلو بايت
أخرى
Present as Real a Free and Imaginary Oral Estimate as Proof of Claim is Fraud
False Swearing & Fraud in Claim Presentation Voids Policy Read the full article at...
بواسطة Barry Zalma 2024-07-15 13:06:52 0 1كيلو بايت
Finance
Evil Employee Acts Still Require Insurer to Defend Employer
When Insurer Refuses Defense Fees Incurred by Insured Are Presumed to be Reasonable &...
بواسطة Barry Zalma 2022-08-22 12:54:54 0 6كيلو بايت