MyWackoSite: fail 2 ban

https://wiki.ebal.gr     Version: 1 (12/01/2020 07:08)

fail 2 ban



Hits : 4,249

Last Edit: 01.12.2020 07:04
Last Edit: 15.05.2016 09:02

fail2ban



Installation

CentOS 6.x


BASH
$ sudo cat /etc/redhat-release 
CentOS release 6.7 (Final)

$ sudo  yum -y install fail2ban

CentOS 7.x



Version



default filters

CentOS 6.x



CentOS 7.x




dbpurgeage parameter in fail2ban.conf, which tells how many days of data to keep in the database.

configuration backup



postfix-sasl


Enable filter


Test your settings


fail2ban-regex




fail2ban-client


fail2ban-client


enable service





show status





dovecot




jail.conf




/etc/fail2ban/filter.d/dovecot.conf

from:



to:

add ldap: