Archive for 'Security' Category

Okean Sino-Korea and DShield Top 20 Blocklist for Rocky Arno’s IPtables blockhosts file

By technese - Last updated: Saturday, November 26, 2011

#!/bin/sh # script created from technese.com # Download Okean Sino-Korea Block IP list rm -f /tmp/cnkr_htaccess.txt rm -f /tmp/top10-2.txt wget http://www.okean.com/antispam/cnkr_htaccess.txt -P /tmp file=/tmp/cnkr_htaccess.txt file2=/tmp/top10-2.txt tempfile=/etc/arno-iptables-firewall/blocked-hosts # Remove first and last lines, and “deny from ” text echo ‘#Okean Sino-Korea Block IP list:’ `date`” > $tempfile sed -e ‘1d’ -e ‘s/deny from //’ -e ‘$d’ […]