File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,13 @@ maxretry = 5
5454findtime = 86400
5555bantime = 864000
5656
57+ [phpmyadmin]
58+ enabled = true
59+ filter = phpmyadmin-syslog
60+ action = hestia[name=WEB]
61+ logpath = /var/log/auth.log
62+ maxretry = 5
63+
5764#Uncomment and add your IPs and or domains to the Whitelist
5865#[DEFAULT]
5966#ignoreip = 111.111.111.111 222.222.222.222 subdomain.example.tld example.tld 333.333.333.333
Original file line number Diff line number Diff line change @@ -29,6 +29,19 @@ if [ "$IMAP_SYSTEM" = "dovecot" ]; then
2929 fi
3030fi
3131
32+ if [ -f /etc/fail2ban/jail.local ]; then
33+ # Add phpmyadmin rule
34+ if ! -qw " ^[phpmyadmin]$" /etc/fail2ban/jail.local 2> /dev/null; then
35+ echo "
36+ [phpmyadmin]
37+ enabled = true
38+ filter = phpmyadmin-syslog
39+ action = hestia[name=WEB]
40+ logpath = /var/log/auth.log
41+ maxretry = 5" >> /etc/fail2ban/jail.local
42+ fi
43+ fi
44+
3245if [ " $MAIL_SYSTEM " = " exim4" ]; then
3346 echo " [ * ] Disable SMTPUTF8 for Exim for now"
3447 if grep -qw " ^smtputf8_advertise_hosts =" /etc/exim4/exim4.conf.template 2> /dev/null; then
@@ -174,4 +187,4 @@ if [ "$WEB_SYSTEM" = "nginx" ] || [ "$PROXY_SYSTEM" = "nginx" ]; then
174187fi
175188
176189unset commit nameserver nginx_conf_commit nginx_conf_compare nginx_conf_local os_release tls12_ciphers tls13_ciphers resolver
177- # Finish configuring the "Enhanced and Optimized TLS" feature
190+ # Finish configuring the "Enhanced and Optimized TLS" feature
You can’t perform that action at this time.
0 commit comments