mise en forme fail2ban avec sous section
This commit is contained in:
parent
66429cf8c0
commit
959bb0339e
|
@ -396,21 +396,34 @@ TMP="/tmp"
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
<section>
|
||||||
<h2>fail2ban</h2>
|
<h2>fail2ban</h2>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<pre>
|
||||||
|
<code>
|
||||||
# apt install fail2ban
|
# apt install fail2ban
|
||||||
|
</code>
|
||||||
|
<code>
|
||||||
# fail2ban-client status
|
# fail2ban-client status
|
||||||
|
</code>
|
||||||
|
<code>
|
||||||
# fail2ban-client status ssh
|
# fail2ban-client status ssh
|
||||||
|
</code>
|
||||||
|
<code>
|
||||||
# vim /etc/fail2ban/filter.d/demo :
|
# vim /etc/fail2ban/filter.d/demo :
|
||||||
|
</code>
|
||||||
[Definition]
|
[Definition]
|
||||||
failregex = warning: \[<HOST>\]: authentication failed:
|
failregex = warning: \[<HOST>\]: authentication failed:
|
||||||
ignoreregex =
|
ignoreregex =
|
||||||
|
</pre>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<h2>fail2ban (suite)</h2>
|
||||||
|
<pre>
|
||||||
|
<code>
|
||||||
# vim /etc/fail2ban/jail.local
|
# vim /etc/fail2ban/jail.local
|
||||||
|
</code>
|
||||||
[demo-rule]
|
[demo-rule]
|
||||||
|
|
||||||
enabled = true
|
enabled = true
|
||||||
|
@ -420,6 +433,8 @@ logpath = /var/log/demo.log
|
||||||
maxretry = 3
|
maxretry = 3
|
||||||
findtime = 1800
|
findtime = 1800
|
||||||
bantime = 3600
|
bantime = 3600
|
||||||
|
</pre>
|
||||||
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue