Ajout pm2-auth-failure
This commit is contained in:
parent
c9817402a4
commit
62eb9338bb
|
@ -661,6 +661,33 @@ maxretry = 10
|
||||||
findtime = 300
|
findtime = 300
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
### pm2 / nodejs
|
||||||
|
|
||||||
|
/etc/fail2ban/filter.d/pm2-auth-failure.conf :
|
||||||
|
|
||||||
|
~~~
|
||||||
|
[Definition]
|
||||||
|
failregex = .*Auth failure, WRONG_HASH for IP <HOST> .*
|
||||||
|
[Init]
|
||||||
|
datepattern = ^%%Y-%%m-%%d %%H:%%M
|
||||||
|
~~~
|
||||||
|
|
||||||
|
Définition de la jail :
|
||||||
|
|
||||||
|
~~~
|
||||||
|
[pm2-auth-failure]
|
||||||
|
enabled = true
|
||||||
|
port = http,https
|
||||||
|
filter = pm2-auth-failure
|
||||||
|
logpath = /home/APPPATH/.pm2/logs/api-error.log tail
|
||||||
|
maxretry = 30
|
||||||
|
findtime = 3600
|
||||||
|
# A supprimmer une fois periode de test terminé
|
||||||
|
banaction = none
|
||||||
|
action = %(action_mailwhoisonly)s
|
||||||
|
|
||||||
|
~~~
|
||||||
|
|
||||||
## Munin
|
## Munin
|
||||||
|
|
||||||
Pour activer les plugins Munin pour Fail2Ban :
|
Pour activer les plugins Munin pour Fail2Ban :
|
||||||
|
|
Loading…
Reference in a new issue