Contenu fail2ban

This commit is contained in:
Gregory Colpart 2017-06-20 00:13:29 +02:00
parent 905d5fe36c
commit 06dc53b9d9
1 changed files with 24 additions and 1 deletions

View File

@ -358,9 +358,32 @@ Exceptions dans ignore.d.server/
<section>
<h2>fail2ban</h2>
https://wiki.evolix.org/HowtoFail2Ban
# apt install fail2ban
# fail2ban-client status
# fail2ban-client status ssh
# vim /etc/fail2ban/filter.d/demo :
[Definition]
failregex = warning: \[<HOST>\]: authentication failed:
ignoreregex =
# vim /etc/fail2ban/jail.local
[demo-rule]
enabled = true
port = http,https
filter = demo
logpath = /var/log/demo.log
maxretry = 3
findtime = 1800
bantime = 3600
</section>
<section>
<section>
<h2>Introduction à Git</h2>