how to remove an IP from fail2ban code example
Example: how to remove an IP from fail2ban
How to unban an IP in Fail2ban?
1) Check if IP address is blocked. Fail2ban uses iptables to block the
traffic.
iptables -n -L | grep <IP Address>
2) Check the Fail2ban log. Fail2ban log on the server is at /var/log/fail2ban.
cat /var/log/fail2ban.log | grep <IP Address>
3) Get Jail name of blocked IP address. Next step is to confirm the jail
name for this IP address is in.
fail2ban-client status
4) Unban the IP address.
In Fail2ban version(before v0.8.8):
fail2ban-client get yourjailname actionunban youripaddress
Example:
fail2ban-client get ssh actionunban 1.1.1.1
In Fail2ban version v0.8.8 or later:
fail2ban-client set yourjailname unbanip youripaddress
Example:
fail2ban-client set ssh unbanip 1.1.1.1