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

Поиск
Категории
Больше
Другое
The Adjuster & Good Faith Claims Handling
A Video Explaining How to Avoid Charges of Bad Faith Claims Handling Read the full article at...
От Barry Zalma 2021-09-03 13:11:34 0 3Кб
Politics
WATCH St. Louis Woman Beats Sheriff’s Deputy with Her Own Baton After She is Told She Could Not Enter Business Without Mask
ST. LOUIS — A woman hit a St. Louis city sheriff's deputy with her own baton at a St. Louis...
От Wym Creator 2020-12-29 20:49:33 1 5Кб
Politics
Is that all there is?
And let it not be said that there are not articles out there which speak of the insanity...
От Scarecrow III 2020-11-06 06:35:51 0 3Кб
Politics
After Hillary Clinton Asked One Question, Mother Teresa Shut Her Up With These 6 Words
Mother Teresa was made a saint today, and that calls to mind an exchange between the nun and...
От Wym Creator 2021-09-14 12:42:11 1 8Кб
Другое
Forged Referral Defeats Claim Against No Fault Insurer
Forged Referral Defeats Claim Against No Fault Insurer “I Didn’t Know the Gun...
От Barry Zalma 2024-10-21 13:05:07 0 695