Compare commits
No commits in common. "ac271564b2d6e8c19e11ba93877f4583bb77f46c" and "536f01e68fbed96cf4f526b41e8bace5c7d133b1" have entirely different histories.
ac271564b2
...
536f01e68f
2 changed files with 1 additions and 68 deletions
|
@ -1,67 +0,0 @@
|
|||
---
|
||||
title: "Fail2ban"
|
||||
weight: 1
|
||||
# bookFlatSection: false
|
||||
# bookToc: true
|
||||
# bookHidden: false
|
||||
# bookCollapseSection: false
|
||||
# bookComments: false
|
||||
# bookSearchExclude: false
|
||||
---
|
||||
|
||||
# Fail2ban
|
||||
|
||||
## Installation
|
||||
Installer le paquet `fail2ban`.
|
||||
|
||||
## Configuration
|
||||
```ini
|
||||
[DEFAULT]
|
||||
bantime = 1h
|
||||
bantime.increment = true
|
||||
|
||||
ignoreip = 127.0.0.1/8 ::1
|
||||
|
||||
banaction = ufw[comment="fail2ban"]
|
||||
banaction_allports = ufw[type=allports,comment="fail2ban"]
|
||||
|
||||
destemail = ...
|
||||
sender = ...
|
||||
|
||||
action = %(action_mwl)s
|
||||
```
|
||||
|
||||
### Services
|
||||
```ini
|
||||
[sshd]
|
||||
enabled = true
|
||||
mode = aggressive
|
||||
|
||||
[postfix]
|
||||
enabled = true
|
||||
mode = aggressive
|
||||
|
||||
[dovecot]
|
||||
enabled = true
|
||||
mode = aggressive
|
||||
|
||||
[bitwarden]
|
||||
enabled = true
|
||||
logpath = /var/log/vaultwarden.log
|
||||
|
||||
[nginx-http-auth]
|
||||
enabled = true
|
||||
|
||||
[nginx-botsearch]
|
||||
enabled = true
|
||||
|
||||
[sieve]
|
||||
enabled = true
|
||||
|
||||
[nextcloud]
|
||||
enabled = true
|
||||
logpath = /var/log/nextcloud/nextcloud.log
|
||||
```
|
||||
|
||||
## Démarrage
|
||||
Activer le service `fail2ban.service`.
|
|
@ -89,7 +89,7 @@ DEFAULT_BRANCH = main
|
|||
ENABLED = true
|
||||
SUBJECT_PREFIX = [Gitea]
|
||||
HOST = edgarpierre.fr:465
|
||||
FROM = ...
|
||||
FROM = gitea@edgarpierre.fr
|
||||
USER = gitea
|
||||
PASSWD = ***
|
||||
SEND_AS_PLAIN_TEXT = true
|
||||
|
|
Loading…
Reference in a new issue