{"id":1558,"date":"2023-01-01T00:07:27","date_gmt":"2023-01-01T03:07:27","guid":{"rendered":"https:\/\/blog.abratel.com.br\/?p=1558"},"modified":"2023-01-02T22:51:11","modified_gmt":"2023-01-03T01:51:11","slug":"how-to-unban-a-ip-from-fail2ban-persistent-rule-list","status":"publish","type":"post","link":"https:\/\/blog.abratel.com.br\/?p=1558","title":{"rendered":"How to unban a IP from fail2ban persistent rule list"},"content":{"rendered":"<p>Check the IP if is in the list:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nipset list | grep 73.34.43.111\n<\/pre>\n<p>For unban a IP blocked by fail2ban, check the fail2ban log after restart for see if your ip is under the black list:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\ntail -f \/var\/log\/fail2ban\n<\/pre>\n<p>After restart you will see that your ip blocked keep on the blacklist and even if you remove it with the command <\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"> ipset del vitalban-vitalpbx-gui 73.34.43.111 <\/pre>\n<p>, after restart the ban will return<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nfail2ban-client set vitalpbx-gui 73.34.43.111\n<\/pre>\n<p>Note that the vitalban-vitalpbx-gui is a chain in iptables and vitalpbx-gui is a jail in fail2ban.<br \/>\nDepending of your application for create the correct command but the sintaxe is that one.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nfail2ban-client set &amp;lt;jail&amp;gt; unbanip &amp;lt;ip&amp;gt;\nExample: fail2ban-client set sshd unbanip &amp;lt;ip&amp;gt;\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Check the IP if is in the list: For unban a IP blocked by fail2ban, check the fail2ban log after restart for see if your ip is under the black list: After restart you will see that your ip blocked keep on the blacklist and&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1560,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,2],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1558"}],"collection":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1558"}],"version-history":[{"count":4,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1558\/revisions"}],"predecessor-version":[{"id":1564,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1558\/revisions\/1564"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/media\/1560"}],"wp:attachment":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}