Zum Inhalt springen

Fail2ban/SSH

Aus Foxwiki

Fail2ban/SSH - Beschreibung

Beschreibung

Installation

< /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 ==
=== Dateien ===
{| class="wikitable options big"
|-
! Datei !! Beschreibung
|-
| || 
|-
| || 
|}

<noinclude>

== Anhang ==
=== Siehe auch ===
<div style="column-count:2">
<categorytree hideroot=on mode="pages">{{BASEPAGENAME}}</categorytree>
</div>
----
{{Special:PrefixIndex/{{BASEPAGENAME}}/}}

=== Dokumentation ===
<!--
; Man-Page 
# [https://manpages.debian.org/stable/procps/pgrep.1.de.html prep(1)]

; Info-Pages 
-->

=== Links ===
==== Projekt ====
==== Weblinks ====

<!--
{{DEFAULTSORT:new}}
{{DISPLAYTITLE:new}}
-->

[[Kategorie:new]]

</noinclude>

= TMP =
== Konfiguration ==
; sshd.conf in /etc/fail2ban/jail.d/
<syntaxhighlight lang="ini" copy line>
[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