Skip to content

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

Update fail2ban rule

aapanel.come0056b5bca3e
diff --git a/conf/core/fail2ban_init/filter.d/core-limit-filter.conf b/conf/core/fail2ban_init/filter.d/core-limit-filter.conf
index 5dec84ea..4f572f4a 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 [^ ]+ \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.conf
index 427f6f50..62b450c4 100644
--- a/conf/core/fail2ban_init/filter.d/roundcube-limit-filter.conf
+++ b/conf/core/fail2ban_init/filter.d/roundcube-limit-filter.conf
@@ -1,4 +1,4 @@
[Definition]
# Only match roundcube logs
-failregex = ^.*?\{[^\}]+\} \d+ "(GET|POST|HEAD|PUT|DELETE|PATCH|OPTIONS|CONNECT|TRACE) http [^ ]+ /roundcube(?:/\S*)? HTTP.*" [^,]+, <HOST>, ".*?", ".*?"$
+failregex = ^.*? \d+ "(GET|POST|HEAD|PUT|DELETE|PATCH|OPTIONS|CONNECT|TRACE) http [^ ]+ /roundcube(?:/\S*)? HTTP.*" [^,]+, <HOST>, ".*?", ".*?"$
ignoreregex =
\ No newline at end of file