So I'm using Fail2ban and the way it bans and unbans IP addresses is by using the ufw deny from xx.xx.xx.xx to any
and allow
. However, because new rules need to stay on the top of the list (above the allow any any), I can't seem to reallow access without manually doing a ufw status numbered
and deleting the original rule.
Is there any way that I can do something like ufw allow from x.x.x.x to any
and automatically remove any existing "deny" rules? Otherwise, I'm not sure how fail2ban can ever remove an IP ban with ufw once it has already been placed.