Code: Select all
mcedit /etc/fail2ban/jail.local
But you need to remember that if an ip is banned in phpmyadmin or roundcube, it will be banned on port 80, 443. Any resources on the server will not be available (and user sites). Except vesta port.
Code: Select all
[phpmyadmin]
enabled = true
filter = phpmyadmin-syslog
#action = vesta[name=WEB]
port = http,https
logpath = %(syslog_authpriv)s
backend = %(syslog_backend)s
maxretry = 5
[roundcube]
enabled = true
filter = roundcube-auth
#action = vesta[name=WEB]
port = http,https
logpath = /var/log/roundcube/errors.log
# Use following line in your jail.local if roundcube logs to journal.
#backend = %(syslog_backend)s
maxretry = 10
Code: Select all
service fail2ban restart