Mehr Sicherheit durch fail2ban: Unterschied zwischen den Versionen
K Textersetzung - „<source“ durch „<syntaxhighlight“ |
K Textersetzung - „</source>“ durch „</syntaxhighlight>“ |
||
| Zeile 346: | Zeile 346: | ||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
fail2ban-regex /var/log/apache2/error.log /etc/fail2ban/filter.d/apache-auth.conf | fail2ban-regex /var/log/apache2/error.log /etc/fail2ban/filter.d/apache-auth.conf | ||
</ | </syntaxhighlight> | ||
== IP Entsperren == | == IP Entsperren == | ||
| Zeile 352: | Zeile 352: | ||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
iptables --delete RULENAME POSITION | iptables --delete RULENAME POSITION | ||
</ | </syntaxhighlight> | ||
Ein kurzes Beispiel: | Ein kurzes Beispiel: | ||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
iptables --list | iptables --list | ||
</ | </syntaxhighlight> | ||
<pre> | <pre> | ||
.... | .... | ||
| Zeile 368: | Zeile 368: | ||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
iptables --delete fail2ban-apache-nohome 1 | iptables --delete fail2ban-apache-nohome 1 | ||
</ | </syntaxhighlight> | ||
==Quellen== | ==Quellen== | ||