{"id":31,"date":"2006-10-17T10:24:55","date_gmt":"2006-10-17T10:24:55","guid":{"rendered":"http:\/\/ramblingsofasysadmin.com\/blog\/?p=31"},"modified":"2006-10-17T10:24:55","modified_gmt":"2006-10-17T10:24:55","slug":"paranoid-iptables-block-that-ip-range-for-good","status":"publish","type":"post","link":"https:\/\/ramblingsofasysadmin.com\/?p=31","title":{"rendered":"paranoid iptables: block that IP range for good."},"content":{"rendered":"<p>as long as your iptables is saved regularly, this command is pretty useful for those IPs that just seem to linger and never go away.  i have this problem with IPs in korea.<br \/>\nas such, i&#8217;ve implemented the following &#8220;paranoid&#8221; iptables rule which i consider pretty helpful to keep them out for good:<br \/>\n<font face=\"courier\"># iptables -t nat -I PREROUTING 1 -s 222.122.0.0\/16 -j DROP<\/font><br \/>\nsimply put, this bans the entire 222.122.x.x subnet on the NAT table and prevents any packets from coming in.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>as long as your iptables is saved regularly, this command is pretty useful for those IPs that just seem to linger and never go away. i have this problem with IPs in korea. as such, i&#8217;ve implemented the following &#8220;paranoid&#8221; iptables rule which i consider pretty helpful to keep them out for good: # iptables -t nat -I PREROUTING 1 -s 222.122.0.0\/16 -j DROP simply put, this bans the entire 222.122.x.x subnet on the NAT <span class=\"ellipsis\">&hellip;<\/span> <span class=\"more-link-wrap\"><a href=\"https:\/\/ramblingsofasysadmin.com\/?p=31\" class=\"more-link\"><span>Read More &rarr;<\/span><\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-31","post","type-post","status-publish","format-standard","hentry","category-security"],"_links":{"self":[{"href":"https:\/\/ramblingsofasysadmin.com\/index.php?rest_route=\/wp\/v2\/posts\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ramblingsofasysadmin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ramblingsofasysadmin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ramblingsofasysadmin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ramblingsofasysadmin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=31"}],"version-history":[{"count":0,"href":"https:\/\/ramblingsofasysadmin.com\/index.php?rest_route=\/wp\/v2\/posts\/31\/revisions"}],"wp:attachment":[{"href":"https:\/\/ramblingsofasysadmin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ramblingsofasysadmin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ramblingsofasysadmin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}