informatique:logiciels:fail2ban
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| informatique:logiciels:fail2ban [2021/12/13 13:57] – [fail2ban-client] Ajouter un ban pteu | informatique:logiciels:fail2ban [2022/11/16 08:13] (current) – [Ajouter un ban manuellement] unban pteu | ||
|---|---|---|---|
| Line 94: | Line 94: | ||
| Pour ajouter une adresse IP à une prison (rappel : on liste les jails avec '' | Pour ajouter une adresse IP à une prison (rappel : on liste les jails avec '' | ||
| <code bash> | <code bash> | ||
| - | fail2ban-client -vvv set < | + | fail2ban-client -vvv set < |
| - | #par exemple | + | # par exemple |
| fail2ban-client -vvv set apache-overflows banip 45.155.205.233 | fail2ban-client -vvv set apache-overflows banip 45.155.205.233 | ||
| + | </ | ||
| + | |||
| + | Pour débloquer une IP qui a été ban (dans cet exemple, dans le jail sshd) : | ||
| + | <code bash> | ||
| + | fail2ban-client set < | ||
| + | # par exemple | ||
| + | fail2ban-client set sshd unbanip 10.0.0.1 | ||
| </ | </ | ||
| =====fail2ban-regex===== | =====fail2ban-regex===== | ||
informatique/logiciels/fail2ban.1639403827.txt.gz · Last modified: 2021/12/13 13:57 by pteu