{"id":1132,"date":"2013-08-15T11:16:42","date_gmt":"2013-08-15T16:16:42","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=1132"},"modified":"2013-08-15T11:16:42","modified_gmt":"2013-08-15T16:16:42","slug":"block-ip-linux-blackhole","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2013\/08\/block-ip-linux-blackhole\/","title":{"rendered":"Block IP Linux Blackhole"},"content":{"rendered":"<p>I used to always write up iptables to block certain IP addresses, or use hosts.allow and hosts.deny entries, but <a href=\"http:\/\/bencane.com\/\" target=\"_blank\">Benjamin Cane<\/a> showed me the light.<\/p>\n<p>Blackhole that IP with a null route!<\/p>\n<p><strong>Add the route<\/strong><br \/>\n<code>ip route add blackhole IPADDRESSOFOFFENDER<\/code><\/p>\n<p><strong>Show the routes<\/strong><br \/>\n<code>ip route show<\/code><\/p>\n<p><strong>Remove the route<\/strong><br \/>\n<code>ip route del IPADDRESSOFOFFENDER<\/code><br \/>\n<code>ip route show<\/code><\/p>\n<p><strong>Verify the null route<\/strong><br \/>\nssh: connect to host IP port 22: No route to host.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I used to always write up iptables to block certain IP addresses, or use hosts.allow and hosts.deny entries, but Benjamin Cane showed me the light. Blackhole that IP with a null route! Add the route ip route add blackhole IPADDRESSOFOFFENDER Show the routes ip route show Remove the route ip route del IPADDRESSOFOFFENDER ip route &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2013\/08\/block-ip-linux-blackhole\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Block IP Linux Blackhole<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1132","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=1132"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1132\/revisions"}],"predecessor-version":[{"id":1133,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1132\/revisions\/1133"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=1132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=1132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=1132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}