Fail2ban: Unterschied zwischen den Versionen

Aus xinux.net
Zur Navigation springen Zur Suche springen
Zeile 3: Zeile 3:
 
=Config=
 
=Config=
 
*sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
 
*sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
=Example ssh*
+
=Example ssh=
 
<pre>
 
<pre>
 
[sshd]
 
[sshd]

Version vom 13. November 2018, 20:38 Uhr

Install

  • sudo apt install fail2ban

Config

  • sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local

Example ssh

[sshd]
enabled    = true
port    = ssh
filter    = sshd
logpath    = /var/log/auth.log
maxretry = 4

Links