I cant unban an IP from the server. I removed the address from fail2ban and deleted the entry from iptables, but I still can't login.
My Jail list name is sshd
(checked with fail2ban-client status
)
I did fail2ban-client set sshd unbanip <IP>
Then iptables -L -n --line-numbers
had in Chain f2b-sshd
a line to REJECT my IP.
I used iptables -D f2b-sshd <line_number>
to delete my address from the iptables.
I still can't connect. The log /var/log/fail2ban.log contains
2019-04-12 13:37:40,963 fail2ban.filter [22791]: INFO [sshd] Found <IP> - 2019-04-12 13:37:40
Did I miss something? Why fail2ban says it found my IP after I unbanned?
Best Answer
You have to remove the ban using fail2ban, otherwise it will just re-add it. In your case it should be
fail2ban-client set f2b-sshd unbanip [banned IP address]