RE: Fail2ban for Sentora
10-18-2015, 06:11 AM
(This post was last modified: 10-20-2015, 03:16 AM by bbspike.)
Hello all,
If you ever used my script installer for fail2ban please update your /etc/fail2ban/jail.local with the following:
There where some flaws and are fixed now.
Don't forget:
If you ever used my script installer for fail2ban please update your /etc/fail2ban/jail.local with the following:
Code:
[DEFAULT]
bantime = 3600
maxretry = 4
destemail =
ignoreip = 127.0.0.0/8
action = iptables
[ssh]
enabled = true
action = iptables[name=SSH, port="22"]
port = ssh
filter = sentora-ssh
logpath = /var/log/secure
maxretry = 6
bantime = 360000
# the sentora-apache filter covers apache auth and overflow
[apache]
enabled = true
action = iptables-multiport[name=Postfix, port="80,443"]
port = http,https
filter = sentora-apache
logpath = /var/sentora/logs/domains/*/*error.log
maxretry = 6
uses also de secure log for proftpd.
[proftpd]
enabled = true
action = iptables[name=FTP, port="21"]
port = ftp,ftp-data,ftps,ftps-data
filter = sentora-proftpd
logpath = /var/log/secure
maxretry = 5
# the sentora-postfix filter covers postfix and sasl
[postfix]
enabled = true
action = iptables-multiport[name=Postfix, port="25,465"]
port = smtp,ssmtp
filter = sentora-postfix
logpath = /var/log/maillog
maxretry = 10
# to be fixed yet
#[control-panel]
= true
= http,https
= sentora-control
= /var/log/httpd/error_log
= 4
= 864000
= 3600
[dovecot]
enabled = true
action = iptables-multiport[name=Dovecot, port="143,993,110,995"]
port = imap,imaps,pop3,pop3s
filter = sentora-dovecot
logpath = /var/log/dovecot-info.log
maxretry = 10
There where some flaws and are fixed now.
Don't forget:
Code:
service fail2ban restart