mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Updating fail2ban conf
This commit is contained in:
parent
1839fa44d0
commit
b2648584ab
3 changed files with 647 additions and 344 deletions
|
@ -9,9 +9,11 @@ do_pre_regen() {
|
|||
|
||||
fail2ban_dir="${pending_dir}/etc/fail2ban"
|
||||
mkdir -p "${fail2ban_dir}/filter.d"
|
||||
mkdir -p "${fail2ban_dir}/jail.d"
|
||||
|
||||
cp yunohost.conf "${fail2ban_dir}/filter.d/yunohost.conf"
|
||||
cp jail.conf "${fail2ban_dir}/jail.conf"
|
||||
cp yunohost-jails.conf "${fail2ban_dir}/jail.d/"
|
||||
}
|
||||
|
||||
do_post_regen() {
|
||||
|
|
File diff suppressed because it is too large
Load diff
32
data/templates/fail2ban/yunohost-jails.conf
Normal file
32
data/templates/fail2ban/yunohost-jails.conf
Normal file
|
@ -0,0 +1,32 @@
|
|||
[sshd]
|
||||
enabled = true
|
||||
|
||||
[sshd-ddos]
|
||||
enabled = true
|
||||
|
||||
[nginx-http-auth]
|
||||
enabled = true
|
||||
|
||||
[postfix]
|
||||
enabled = true
|
||||
|
||||
[dovecot]
|
||||
enabled = true
|
||||
|
||||
[postfix-sasl]
|
||||
enable = true
|
||||
|
||||
[recidive]
|
||||
enable = true
|
||||
|
||||
[pam-generic]
|
||||
enabled = true
|
||||
|
||||
[yunohost]
|
||||
enabled = true
|
||||
port = http,https
|
||||
protocol = tcp
|
||||
filter = yunohost
|
||||
logpath = /var/log/nginx/*error.log
|
||||
/var/log/nginx/*access.log
|
||||
maxretry = 6
|
Loading…
Add table
Reference in a new issue