This will give you a base to work from:
http://zach.seifts.us/posts/2013/07/14/how-make-fail2ban-bans-persistent
I used this as a guide for my own deploy, but found it immensely helpful
On Wed, Jan 21, 2015 at 6:35 PM, P J <[email protected]> wrote:
> Hi,
>
> Thank you to everyone who supports fail2ban, we run it on some of our
> cPanel servers and it has made a huge difference in combating all sorts of
> annoying exploits and DoS's.
>
> We have some jails running against:
>
> /home/*/access-logs/*
>
> This works great, but when a new account is added, which adds a new log
> file fail2ban doesn't automatically pick this up.
>
> I would like to run something every day that has fail2ban re check all the
> files in /home/*/access-logs/*, but I don't want to lose the existing
> iptables bans.
>
> Should I run /etc/rc.d/init.d/fail2ban restart? Will that wipe out the
> current bans though? Is there a better way to do this?
>
> Any help is appreciated.
>
> Thanks in advance!
>
> -PJF
>
>
> ------------------------------------------------------------------------------
> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
> GigeNET is offering a free month of service with a new server in Ashburn.
> Choose from 2 high performing configs, both with 100TB of bandwidth.
> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
> http://p.sf.net/sfu/gigenet
> _______________________________________________
> Fail2ban-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fail2ban-users
>
>
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Fail2ban-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fail2ban-users