Generate Shorewall blacklist from Spamhaus and DShield

vi /etc/shorewall/makeblacklist Paste the code below, and save it. #!/bin/sh echo “#ADDRESS/SUBNET PROTOCOL PORT” > /tmp/blacklist wget -q -O – http://feeds.dshield.org/block.txt | awk –posix ‘/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.0\t/ { print $1 “/24”;}’ >> /tmp/blacklist wget -q -O – http://www.spamhaus.org/drop/drop.lasso | awk –posix ‘/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\// { print $1;}’ >> /tmp/blacklist echo “#LAST LINE — ADD YOUR ENTRIES BEFORE THIS ONE …

Generate Shorewall blacklist from Spamhaus and DShield Read More »