Fail2ban blocked an IP-address which I would like to undo. I have When I run
sudo fail2ban-client set sshd unbanip xxx.xxx.xxx.xxx (where the xx-part is the IP-address) I get a response:
NOK: ('xxx.xxx.xxx.xxx is not banned',)
xxx.xxx.xxx.xxx is not banned
-A ufw-user-input -s xxx.xxx.xxx.xxx/32 -j REJECT --reject-with icmp-port-unreacable.
Now though, when I try
sudo iptables -D INPUT -s xxx.xxx.xxx.xxx I get the response:
iptables: Bad rule (does a matching rule exist in that chain?).
I tried adding the
/32 part to the ipaddress, i tried
ufw-user-input instead of
INPUT, but each and every time I get the same error.
Now my question is: what can I do to get rid of the rule? And also, what could be the reason that fail2ban is telling me the address is not banned?