Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Dolibarr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NoCloud
docker
Dolibarr
Commits
99a395b6
Commit
99a395b6
authored
3 months ago
by
Elian Loraux
Browse files
Options
Downloads
Patches
Plain Diff
add filter and jail fail2ban
parent
b41eea68
Branches
Branches containing commit
No related tags found
1 merge request
!3
Fail2ban
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
fail2ban/dolibarr_filter.conf
+20
-0
20 additions, 0 deletions
fail2ban/dolibarr_filter.conf
fail2ban/dolibarr_jail.conf
+9
-0
9 additions, 0 deletions
fail2ban/dolibarr_jail.conf
with
29 additions
and
0 deletions
fail2ban/dolibarr_filter.conf
0 → 100644
+
20
−
0
View file @
99a395b6
# Fail2Ban configuration file
#
# Regexp to detect try to check a couple login/password so we can add mitigation
# on IP making too much tries.
[
Definition
]
# To test, you can inject this example into log
# echo `date +'%Y-%m-%d %H:%M:%S'`" INFO 1.2.3.4 functions_dolibarr::check_user_password_abcd Authentication KO" >> /mypath/documents/dolibarr.log
#
# then
# fail2ban-client status web-dolibarr-rulesbruteforce
#
# To test rule file on a existing log file
# fail2ban-regex /mypath/documents/dolibarr.log /etc/fail2ban/filter.d/web-dolibarr-rulesbruteforce.conf --print-all-matched
#failregex = ^ [A-Z\s]+ <HOST>\s+functions_.*::check_user_.* Authentication KO
failregex
= ^.*
NOTICE
\
s
+<
HOST
>\
s
+\
d
+\
s
+\
d
+\
s
+
functions_
[^\
s
]+::
check_user_
[^\
s
]+
Authentication
KO
ignoreregex
=
This diff is collapsed.
Click to expand it.
fail2ban/dolibarr_jail.conf
0 → 100644
+
9
−
0
View file @
99a395b6
[
dolibarr
]
enabled
=
true
filter
=
dolibarr
logpath
=
LOG_PATH
chain
=
DOCKER
-
USER
port
=
http
,
https
findtime
=
130
m
banaction
=
docker
-
page
maxretry
=
5
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment