{"id":23,"date":"2018-01-05T08:55:10","date_gmt":"2018-01-05T14:55:10","guid":{"rendered":"https:\/\/tech.my-netsol.com\/?p=23"},"modified":"2018-01-05T08:55:10","modified_gmt":"2018-01-05T14:55:10","slug":"clear-ip-tables-firewall","status":"publish","type":"post","link":"https:\/\/tech.my-netsol.com\/?p=23","title":{"rendered":"Clear IP Tables (Firewall)"},"content":{"rendered":"<p>First, set the default policies for each of the built-in chains to ACCEPT. The main reason to do this is to ensure that you won&#8217;t be locked out from your server via SSH:<\/p>\n<p>iptables -P INPUT ACCEPT<br \/>\niptables -P FORWARD ACCEPT<br \/>\niptables -P OUTPUT ACCEPT<\/p>\n<p>Then flush the nat and mangle tables, flush all chains (-F), and delete all non-default chains (-X):<\/p>\n<p>iptables -t nat -F<br \/>\niptables -t mangle -F<br \/>\niptables -F<br \/>\niptables -X<\/p>\n","protected":false},"excerpt":{"rendered":"<p>First, set the default policies for each of the built-in chains to ACCEPT. The main reason to do this is to ensure that you won&#8217;t be locked out from your server via SSH: iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT Then flush the nat and mangle tables, flush all chains &#8230; <a title=\"Clear IP Tables (Firewall)\" class=\"read-more\" href=\"https:\/\/tech.my-netsol.com\/?p=23\" aria-label=\"Read more about Clear IP Tables (Firewall)\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-23","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23"}],"version-history":[{"count":0,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/posts\/23\/revisions"}],"wp:attachment":[{"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}