On Thu, Mar 15, 2018 at 09:29:18AM +0100, Ramses wrote:
Hi everybody,I have an old version of fail2ban and I'd like know if I have somehow to unban a IP Address that fail2ban has banned.
Just to answer this question exactly: others have told you HOW to unban an IP. but you asked IF you have to. There, the answer is generally "no".
Fail2ban will ban an IP by calling the "actionban" command of your chosen firewall (chosen, that is, by setting the "banaction" option). Fail2ban will then wait "bantime" seconds and then call "actionunban" for that same action.
The "actionban" and "actionunban" options are specific to the type of firewall you're controlling. Typically, they add and remove blocking rules, but they can, essentially, do anything. Sending a notification is a good example of another kind of action.
As to why you should ask fail2ban to unban the IP rather than removing the rule manually, when you ask fail2ban to do it, it will call ALL the "actionunban" commands that you've configured (for that jail). So perhaps you want a notification when IPs are released from their jails, or perhaps, as someone had recently on this list, you're controlling a remote system with fail2ban. It's good practice to ask fail2ban to do the unbanning.
Regards, Ramses ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Fail2ban-users mailing list Fail2ban-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fail2ban-users
-- For more information, please reread.
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Fail2ban-users mailing list Fail2ban-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fail2ban-users