{"id":3,"date":"2015-07-27T16:03:39","date_gmt":"2015-07-27T16:03:39","guid":{"rendered":"http:\/\/alain.fi\/?p=3"},"modified":"2019-07-30T04:00:52","modified_gmt":"2019-07-30T04:00:52","slug":"iptables-block-ip-quick","status":"publish","type":"post","link":"https:\/\/alain.fi\/?p=3","title":{"rendered":"IPTABLES, block IP quick"},"content":{"rendered":"<p>Very basic IPTables reference<\/p>\n<p>How to block an IP address in Linux from ssh:<\/p>\n<p>DROP anything coming from the IP address 1.2.3.4:<\/p>\n<p>append will put this new rule at the end of your ruleset:<br \/>\niptables -A INPUT -s 1.2.3.4 -j DROP<\/p>\n<p>with insert you can tell which position you want your rule to be:<br \/>\niptables -I INPUT 3 -s 1.2.3.4 -j DROP<\/p>\n<p>When you insert the rule will not replace the existing one.<\/p>\n<p>list rules:<br \/>\niptables -L<\/p>\n<p>list specific INPUT rules:<br \/>\niptables -L INPUT<\/p>\n<p>find where the rule is in the list, #1 at the top, and delete it:<br \/>\niptables -D INPUT 3<br \/>\n(removes rule #3 from \u201cINPUT\u201d)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Very basic IPTables reference How to block an IP address in Linux from ssh: DROP anything coming from the IP address 1.2.3.4: append will put this new rule at the end of your ruleset: iptables -A INPUT -s 1.2.3.4 -j &hellip; <a href=\"https:\/\/alain.fi\/?p=3\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/alain.fi\/index.php?rest_route=\/wp\/v2\/posts\/3","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alain.fi\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alain.fi\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alain.fi\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alain.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3"}],"version-history":[{"count":1,"href":"https:\/\/alain.fi\/index.php?rest_route=\/wp\/v2\/posts\/3\/revisions"}],"predecessor-version":[{"id":127,"href":"https:\/\/alain.fi\/index.php?rest_route=\/wp\/v2\/posts\/3\/revisions\/127"}],"wp:attachment":[{"href":"https:\/\/alain.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alain.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alain.fi\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}