{"id":26,"date":"2019-04-16T17:20:13","date_gmt":"2019-04-16T17:20:13","guid":{"rendered":"https:\/\/serverhub.com\/kb\/?p=26"},"modified":"2019-04-16T17:20:13","modified_gmt":"2019-04-16T17:20:13","slug":"how-to-unban-an-ip-address-using-iptables-on-a-linux-server","status":"publish","type":"post","link":"https:\/\/serverhub.com\/kb\/how-to-unban-an-ip-address-using-iptables-on-a-linux-server\/","title":{"rendered":"How to Unban an IP Address Using IPTables on a Linux Server"},"content":{"rendered":"\n<p>In this <g class=\"gr_ gr_10 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-ins replaceWithoutSep\" id=\"10\" data-gr-id=\"10\">Tutorial<\/g> we will explain how you can simply unban any IP address on your Linux Server.<br><br>Pro Tip: We recommend you make sure the IP Address in question is <g class=\"gr_ gr_12 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation replaceWithoutSep\" id=\"12\" data-gr-id=\"12\">IN FACT<\/g> the one that you want to unban. Sometimes IPTables will ban IP addresses that are in fact malicious, however in some cases especially with failed logins that are indeed benign. <br><br>Step 1:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Login to the server as root user<\/p>\n\n\n\n<p>Step 2: Use the commands given below<\/p>\n\n\n\n<p>iptables -D INPUT -p all -s IP.ADDRESS.HERE -j DROP<br>iptables -D OUTPUT -p all -s IP.ADDRESS.HERE -j DROP<\/p>\n\n\n\n<p>After executing the above commands, you should be able to remove the IP address<\/p>\n\n\n\n<p>you wish from the list of banned IP addresses.<\/p>\n\n\n\n<p>Step 3&#8243; Save and restart the IP tables service by using the commands given below<\/p>\n\n\n\n<p>service iptables save<br>service iptables restart<\/p>\n\n\n\n<p>You should now have successfully unbanned your IP address. <\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this Tutorial we will explain how you can simply unban any IP address on your Linux Server. Pro Tip: We recommend you make sure the IP Address in question is IN FACT the one that you want to unban. Sometimes IPTables will ban IP addresses that are in fact malicious, however in some cases &#8230; <a title=\"How to Unban an IP Address Using IPTables on a Linux Server\" class=\"read-more\" href=\"https:\/\/serverhub.com\/kb\/how-to-unban-an-ip-address-using-iptables-on-a-linux-server\/\" aria-label=\"More on How to Unban an IP Address Using IPTables on a Linux Server\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"om_disable_all_campaigns":false,"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[7],"tags":[9,8,10],"class_list":["post-26","post","type-post","status-publish","format-standard","hentry","category-linux-administration","tag-iptables","tag-linux","tag-linux-administration"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/posts\/26","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/comments?post=26"}],"version-history":[{"count":0,"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/posts\/26\/revisions"}],"wp:attachment":[{"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/media?parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/categories?post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/tags?post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}