{"id":65,"date":"2011-11-26T01:15:31","date_gmt":"2011-11-26T01:15:31","guid":{"rendered":"http:\/\/technese.com\/?p=65"},"modified":"2012-05-20T02:03:39","modified_gmt":"2012-05-20T02:03:39","slug":"okean-sino-korea-and-dshield-top-20-blocklist-for-rocky-arnos-iptables-blockhosts-file","status":"publish","type":"post","link":"https:\/\/technese.com\/index.php\/2011\/11\/26\/okean-sino-korea-and-dshield-top-20-blocklist-for-rocky-arnos-iptables-blockhosts-file\/","title":{"rendered":"Okean Sino-Korea and DShield Top 20 Blocklist for Rocky Arno\u00e2\u20ac\u2122s IPtables blockhosts file"},"content":{"rendered":"<pre><code>#!\/bin\/sh\r\n# script created from technese.com\r\n# Download Okean Sino-Korea Block IP list\r\nrm -f \/tmp\/cnkr_htaccess.txt\r\nrm -f \/tmp\/top10-2.txt\r\nwget http:\/\/www.okean.com\/antispam\/cnkr_htaccess.txt -P \/tmp\r\nfile=\/tmp\/cnkr_htaccess.txt\r\nfile2=\/tmp\/top10-2.txt\r\ntempfile=\/etc\/arno-iptables-firewall\/blocked-hosts\r\n# Remove first and last lines, and \"deny from \" text\r\necho '#Okean Sino-Korea Block IP list:' `date`'' &gt; $tempfile\r\nsed -e '1d' -e 's\/deny from \/\/' -e '$d' &lt; $file &gt;&gt; $tempfile\r\n# Append DShield Top 20 IPs\r\necho '#DShield Top 20 IP Block :' `date`'' &gt;&gt; $tempfile\r\nwget http:\/\/feeds.dshield.org\/top10-2.txt -P \/tmp\r\n# print first column and add \/24 to DShield IPs\r\nawk '{ print $1 }' &lt; $file2 | sed 's\/$\/\\\/24\/' &gt;&gt; $tempfile<\/code><\/pre>\n<p>Download and rename with .sh file type:<\/p>\n<p><a href=\"http:\/\/technese.com\/wp-content\/uploads\/2011\/11\/blockIPlist.txt\">blockIPlist.txt<\/a><\/p>\n<p>Reference:<\/p>\n<p><a href=\"http:\/\/www.okean.com\/\" target=\"_blank\">http:\/\/www.okean.com<\/a><br \/>\n<a href=\"http:\/\/www.dshield.org\/\" target=\"_blank\">http:\/\/dshield.org<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>#!\/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 &#8220;deny from &#8221; text echo &#8216;#Okean Sino-Korea Block IP list:&#8217; `date`&#8221; &gt; $tempfile sed -e &#8216;1d&#8217; -e &#8216;s\/deny from \/\/&#8217; -e &#8216;$d&#8217; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,6,5],"tags":[],"class_list":["post-65","post","type-post","status-publish","format-standard","hentry","category-general","category-network","category-security"],"_links":{"self":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts\/65","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/comments?post=65"}],"version-history":[{"count":11,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts\/65\/revisions"}],"predecessor-version":[{"id":145,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts\/65\/revisions\/145"}],"wp:attachment":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/media?parent=65"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/categories?post=65"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/tags?post=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}