OS: CentOS 7

This is my first time installing and configuring fail2ban. The jail sshd (my 
initial and only other jail) functions correctly and sends out email 
notifications but recidive does not. I am trying to configure the jail so that 
if sshd bans an ip address 2 times within 1 day, that ip address is then banned 
for a week. I've tried to include as much relevant info as possible below.

-----------------------
jail.local

#Fail2Ban Jail Configuration

[DEFAULT]
bantime = 1800
findtime = 1800
backend = systemd
destemail = [email protected]<mailto:[email protected]>
sender = 
[email protected]<mailto:[email protected]>
action = %(action_mwl)s

[sshd]
enabled = true

[recidive]
enabled = true
logpath = /var/log/fail2ban.log
banaction = %(banaction_allports)s
bantime = 604800
findtime = 86400
maxretry = 2
----------------------------
Relevant lines from fail2ban.local

loglevel = INFO
logtarget = /var/log/fail2ban.log
dbpurgeage = 648000
----------------------------

Each jail also has a .local file in /etc/fail2ban/jail.d

If anyone could help me with this, it would be greatly appreciated.

Thanks,
Jessica
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Fail2ban-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fail2ban-users

Reply via email to