Skip to content

Commit

Permalink
Preapre new fail2ban
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Dec 23, 2020
1 parent c3179ca commit 71a4410
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
11 changes: 11 additions & 0 deletions etc/fail2ban/filter.d/apache-dolibarr-rulesregisterinstance.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Fail2Ban configuration file
#
# Regexp to catch known spambots and software alike. Please verify
# that it is your intent to block IPs which were driven by
# above mentioned bots.


[Definition]

failregex = Instance creation blocked for <HOST>
ignoreregex =
15 changes: 14 additions & 1 deletion etc/fail2ban/jail.local
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ maxretry = 10

[web-dol-passforgotten]

; rule against call to passwordforgottenpage (see file etc/fail2ban/filter.d/apache-dolibarr-rulespasswordforgotten)
; rule against call to myaccount/passwordforgottenpage.php (see file etc/fail2ban/filter.d/apache-dolibarr-rulespasswordforgotten)
; disable this rule by setting enable to false on deployment servers
enabled = true
port = http,https
Expand All @@ -222,3 +222,16 @@ bantime = 4320000 ; 50 days
findtime = 86400 ; 1 day
maxretry = 10

[web-dol-registerinstance]

; rule against call to myaccount/register_instance.php (see file etc/fail2ban/filter.d/apache-dolibarr-rulesregisterinstance)
; disable this rule by setting enable to false on deployment servers
;enabled = true
;port = http,https
;filter = apache-dolibarr-rulesregisterinstance
;logpath = /home/admin/wwwroot/dolibarr_documents/dolibarr_DOLSESSID_sellyoursaas.log
;action = %(action_mw)s
;bantime = 4320000 ; 50 days
;findtime = 86400 ; 1 day
;maxretry = 10

0 comments on commit 71a4410

Please sign in to comment.