1

Topic: how do I unban ip address from fail2ban?

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
====
I need to know how to unban an IP address from fail2ban on roundcube/dovecot/phpmyadmin

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: how do I unban ip address from fail2ban?

Hi,
you need to:

1) issue command:

 iptables -L --line-numbers

2) find the relevant line and write down the number in "num" column and chain name,

3) delete the IP from firewall:

iptables -D fail2ban-dovecot 2

Meaning: delete second rule from chain fail2ban-dovecot

Another option is to just restart the fail2ban daemon - but it'll delete all blocked IPs.

Note:
- there is no clean way, how to remove IP from fail2ban in version 0.8.*
- the IP is not whitelisted = it'll be readded if the netiquette beach goes on

3

Re: how do I unban ip address from fail2ban?

Ok but how do you do this for roundcube and phpmyadmin because I seen my ip address in the ban for roundcube and phpmyadmin.

4

Re: how do I unban ip address from fail2ban?

It's analogous to my example:

iptable -D fail2ban-roundcube LINENUMBER

Simply search for the blocked IP in the list and scroll back and see in which chain is the IP listed. Then create the iptable -D following the example above.

5

Re: how do I unban ip address from fail2ban?

Thanks again Camel1cz