From 450665372bb0af8e94d6e7cf2b5acffddedef220 Mon Sep 17 00:00:00 2001 From: tg12 Date: Sun, 26 Apr 2020 19:43:35 +0100 Subject: [PATCH] Update blacklist.sh --- blacklist.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blacklist.sh b/blacklist.sh index 7b87bdb..4e8a711 100644 --- a/blacklist.sh +++ b/blacklist.sh @@ -8,7 +8,7 @@ ipset_list='temporary-list' sudo /sbin/ipset -! destroy $ipset_list sudo /sbin/ipset create $ipset_list hash:net -for url in 'https://www.spamhaus.org/drop/edrop.txt' 'http://rules.emergingthreats.net/fwrules/emerging-Block-IPs.txt' 'https://check.torproject.org/cgi-bin/TorBulkExitList.py?ip=1.1.1.1'; +for url in 'https://www.spamhaus.org/drop/edrop.txt' 'http://rules.emergingthreats.net/fwrules/emerging-Block-IPs.txt' 'https://check.torproject.org/cgi-bin/TorBulkExitList.py?ip=1.1.1.1' 'https://raw.githubusercontent.com/tg12/bad_packets_blocklist/master/bad_packets_list.txt'; do echo "Fetching and processing $url" curl "$url" | awk '/^[1-9]/ { print $1 }' | xargs -n1 sudo ipset -q add $ipset_list