BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr
Fix fail2ban rule configuration issues
aapanel.com60858b1ca5a0
diff --git a/conf/core/fail2ban_init/filter.d/core-limit-filter.conf b/conf/core/fail2ban_init/filter.d/core-limit-filter.confindex 05d1af86..f4b55206 100644--- a/conf/core/fail2ban_init/filter.d/core-limit-filter.conf+++ b/conf/core/fail2ban_init/filter.d/core-limit-filter.conf@@ -1,4 +1,4 @@[Definition]-failregex = ^.*? \d+ "(GET|POST|HEAD|PUT|DELETE|PATCH|OPTIONS|CONNECT|TRACE) http [^ ]+ \S+ HTTP.*" .*, <HOST>, ".*?", ".*?"$+failregex = ^.*? \d+ "(GET|POST|HEAD|PUT|DELETE|PATCH|OPTIONS|CONNECT|TRACE) (http|https) [^ ]+ \S+ HTTP.*" .*, <HOST>, ".*?", ".*?"$ignoreregex = .*/roundcube.*diff --git a/conf/core/fail2ban_init/filter.d/roundcube-limit-filter.conf b/conf/core/fail2ban_init/filter.d/roundcube-limit-filter.confindex 289481ec..1685f260 100644--- a/conf/core/fail2ban_init/filter.d/roundcube-limit-filter.conf+++ b/conf/core/fail2ban_init/filter.d/roundcube-limit-filter.conf@@ -1,5 +1,5 @@[Definition]# Only match roundcube logs-failregex = ^.*? \d+ "(GET|POST|HEAD|PUT|DELETE|PATCH|OPTIONS|CONNECT|TRACE) http [^ ]+ /roundcube(?:[/?][^ \"]*)? HTTP.*" .*, <HOST>, ".*?", ".*?"$+failregex = ^.*? \d+ "(GET|POST|HEAD|PUT|DELETE|PATCH|OPTIONS|CONNECT|TRACE) (http|https) [^ ]+ /roundcube(?:[/?][^ \"]*)? HTTP.*" .*, <HOST>, ".*?", ".*?"$# Exclude static resource interferenceignoreregex = ^.* /roundcube/(?:skins|plugins|assets|images)/\ No newline at end of file