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

Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
Health
Corona-Ermächtigungsgesetz verhindern – Freiheit und Grundrechte verteidigen!
Corona-Ermächtigungsgesetz verhindern – Freiheit und Grundrechte verteidigen! Schon am...
από Medic Ineman9 2020-11-15 21:53:19 0 5χλμ.
άλλο
Insurance Litigants Should Never Play Games With Discovery
Insurance Litigants Should Never Play Games With Discovery Litigants Must Meet &...
από Barry Zalma 2024-09-11 12:54:24 0 910
άλλο
An Occurrence Requires Fortuity
A Video Explaining the Requirement to Prove an Occurrence Read the full article at...
από Barry Zalma 2021-06-07 13:28:38 0 3χλμ.
άλλο
When State Fails to Prosecute Insurance Fraud Victim May Bring Qui Tam Action
Insurance Fraud Victims Who Get no Justice from State May Sue Fraud Perpetrators on Behalf of...
από Barry Zalma 2021-01-25 13:42:55 0 3χλμ.