nextcloud: Sichere Instanze mit fail2ban ab
This commit is contained in:
parent
2480af061b
commit
68eb272cc2
5 changed files with 37 additions and 0 deletions
12
templates/fail2ban/jail.conf.j2
Normal file
12
templates/fail2ban/jail.conf.j2
Normal file
|
@ -0,0 +1,12 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
[nextcloud-{{ instance.user }}]
|
||||
backend = auto
|
||||
enabled = true
|
||||
port = 80,443
|
||||
protocol = tcp
|
||||
filter = nextcloud
|
||||
maxretry = 3
|
||||
bantime = 86400
|
||||
findtime = 43200
|
||||
logpath = {{ nextcloud_root }}/{{ instance.name }}/data/nextcloud.log
|
Loading…
Add table
Add a link
Reference in a new issue