I use ipset instead of iptables:
ipset -exist create fail2ban-IpPort hash:ip,port timeout 3600
ipset -exist create fail2ban-Ip hash:ip timeout 86400

and my action has a blank value for
actionunban =

You can pass any timeout value you want from the jail and just let the 
operating system
keep track of the time.

You can cycle or stop fail2ban and they are still banned.  However to manually 
unban, use
the ipset command to remove the entry.


Bill


On 3/11/2015 8:10 PM, Lee Clemens wrote:
> On 03/10/2015 09:14 AM, AJ Weber wrote:
>> I realize this has come-up a number of times.  Seems like a very common
>> request (common-enough that it probably should be implemented as a
>> feature?).
>>
>> Anyway, on restart/reload of fail2ban, I'd like to have it re-scan the
>> log files back "findtime" (at least) for each jail and re-add those ip's
>> to the jails.
>>
>> I'm using v0.8.14.  Is there any way to do this or is there a way to
>> "trick" fail2ban to do so (I tried "touching" one of the old log files,
>> but fail2ban still doesn't seem to re-read that file to ban ips).
> Best way may be to use the recidive jail added in v0.9 (iirc)
>> Thanks for any tips and tricks!
>>
>> -AJ
>>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Fail2ban-users mailing list
> Fail2ban-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fail2ban-users


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Fail2ban-users mailing list
Fail2ban-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fail2ban-users

Reply via email to