1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-18 18:07:22 +01:00

merging and credits, added malc0de IP blacklist

This commit is contained in:
ChiefGyk
2016-06-30 14:34:06 -04:00
3 changed files with 18 additions and 6 deletions

View File

@@ -3,14 +3,13 @@ IPTABLES=/sbin/iptables
URL=http://feeds.dshield.org/block.txt
FILE=/tmp/dshield_block.text
CHAIN=dshield
IP_TMP=/tmp/ip.tmp
IP_BLACKLIST=/etc/ip-blacklist.conf
IP_BLACKLIST_TMP=/tmp/ip-blacklist.tmp
BLACKLISTS=(
# Project Honey Pot Directory of Dictionary Attacker IPs
"http://www.projecthoneypot.org/list_of_ips.php?t=d&rss=1"
# TOR Exit Nodes
# TOR Exit Nodes this will block all access to Tor
"http://check.torproject.org/cgi-bin/TorBulkExitList.py?ip=1.1.1.1"
# BruteForceBlocker
"http://danger.rulez.sk/projects/bruteforceblocker/blist.php"
@@ -28,6 +27,8 @@ BLACKLISTS=(
"https://www.malwaredomainlist.com/hostslist/ip.txt"
# ZeusTracker
"https://zeustracker.abuse.ch/blocklist.php?download=ipblocklist"
# malc0de IP blacklist
"http://malc0de.com/bl/IP_Blacklist.txt"
)
for i in "${BLACKLISTS[@]}"
do
@@ -53,7 +54,7 @@ done
# Import Dshield Blocklist in a basic shell script which will run silently via cron
# and also use a seprate chain file to support other iptables rules without flushing
# i.e. fail2ban and ddosdeflate
# some modifications by Alon Ganon (alon@ganon.me)
# check to see if the chain already exists
@@ -65,7 +66,7 @@ if [ $? -eq 0 ]; then
# flush the old rules
$IPTABLES -F $CHAIN
echo "Flushed old rules. Applying updated dshield list...."
echo "Flushed old rules..."
else

View File

@@ -179,4 +179,4 @@ flush)
;;
esac
exit $rc
exit $rc