Fail2ban/SSH: Unterschied zwischen den Versionen

Aus Foxwiki
Wechseln zu:Navigation, Suche
K Textersetzung - „ options"“ durch „ col1bold col1nowrap"“
 
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 3: Zeile 3:
== Beschreibung ==
== Beschreibung ==


== Installation ==
<syntaxhighlight lang="bash" highlight="1" line copy>
</syntaxhighlight>
== Aufruf ==
<syntaxhighlight lang="bash" highlight="1" line copy>
</syntaxhighlight>
=== Optionen ===
{| class="wikitable sortable options gnu big"
|-
! Unix !! GNU !! Parameter !! Beschreibung
|-
| || || ||
|-
|}
=== Parameter ===
=== Umgebungsvariablen ===
=== Exit-Status ===
{| class="wikitable options col1center big"
|-
! Wert !! Beschreibung
|-
| 0 || Erfolg
|-
| >0  || Fehler
|}
== Anwendung ==
<syntaxhighlight lang="bash" highlight="1" line copy>
</syntaxhighlight>
<!-- output -->
<syntaxhighlight lang="bash" highlight="" line>
</syntaxhighlight>
=== Problembehebung ===


== Konfiguration ==
== Konfiguration ==
Zeile 61: Zeile 23:
sudo systemctl restart fail2ban
sudo systemctl restart fail2ban
</syntaxhighlight>
</syntaxhighlight>
=== Dateien ===
=== Dateien ===
{| class="wikitable options big"
{| class="table table-striped table-hover col1bold col1nowrap"
|-
|-
! Datei !! Beschreibung
! Datei !! Beschreibung

Aktuelle Version vom 22. September 2026, 21:10 Uhr

Fail2ban/SSH - Beschreibung

Beschreibung

Konfiguration

sshd.conf in /etc/fail2ban/jail.d/
[sshd]
enabled = true
backend = systemd
port = ssh
filter = sshd
logpath = %(sshd_log)s
maxretry = 5
findtime = 3m
bantime = 1h
action = iptables-multiport[name=sshd, port="ssh", chain="INPUT"]
Dienst neu starten
sudo systemctl restart fail2ban

Dateien

Datei Beschreibung


Anhang

Siehe auch



Dokumentation

Projekt