Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NoCloud-Auto-Installer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NoCloud
NoCloud-Auto-Installer
Commits
05dfc6aa
Commit
05dfc6aa
authored
Dec 14, 2023
by
Elian Loraux
Browse files
Options
Downloads
Patches
Plain Diff
Fail2ban for dolibarr
parent
75183448
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!3
add rules of dolibarr
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
etc/fail2ban/jail.conf
+0
-5
0 additions, 5 deletions
etc/fail2ban/jail.conf
installBase.sh
+2
-2
2 additions, 2 deletions
installBase.sh
upgradeDolibarr.sh
+16
-0
16 additions, 0 deletions
upgradeDolibarr.sh
with
18 additions
and
7 deletions
etc/fail2ban/jail.conf
+
0
−
5
View file @
05dfc6aa
...
...
@@ -441,11 +441,6 @@ port = http,https
#
#
[
dolibarr
]
port
=
http
,
https
logpath
= /
usr
/
share
/
dolibarr
/
documents
/
dolibarr
.
log
enabled
=
true
[
drupal
-
auth
]
port
=
http
,
https
...
...
This diff is collapsed.
Click to expand it.
installBase.sh
+
2
−
2
View file @
05dfc6aa
...
...
@@ -112,7 +112,7 @@ cat id_rsa.pub >> /root/.ssh/authorized_keys
chmod
600 /root/.ssh/authorized_keys
#Fail 2 ban
cp
./etc/fail2ban/
*
/etc/fail2ban
cp
./etc/fail2ban/
jail.conf
/etc/fail2ban
systemctl restart fail2ban
#Ssh
...
...
This diff is collapsed.
Click to expand it.
upgradeDolibarr.sh
+
16
−
0
View file @
05dfc6aa
...
...
@@ -137,3 +137,19 @@ read -p "Hit enter when you are done with the manual upgrade step"
echo
"En cas d'erreur de type The maximum column sze is 767 bytes, please adapt the following query:"
echo
"ALTER TABLE llx_my_table ROW_FORMAT=DYNAMIC ;"
echo
"After running it, restart the manual upgrade"
#Fail 2 ban
if
[
-n
"
`
dpkg
-l
|
grep
fail2ban
`
"
]
then
echo
"Updating fail2ban config for dolibarr"
#Fail 2 ban
if
[
-z
"
`
grep
dolibarr /etc/fail2ban/jail.conf
`
"
]
then
echo
-e
"[dolibarr]
\n
port = http,https
\n
logpath = /usr/share/dolibarr/documents/dolibarr.log
\n
enabled = true"
fi
if
[
-e
/etc/fail2ban/filter.d/dolibarr.conf
]
then
cp
./etc/fail2ban/filter.d/dolibarr.conf /etc/fail2ban/filter.d
fi
fail2ban-client reload
fi
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