Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Dernière révision Les deux révisions suivantes | ||
linux:fail2ban [16-11-2017 10:19] edmc73 [Configuration] |
linux:fail2ban [24-09-2020 11:35] edmc73 |
||
---|---|---|---|
Ligne 138: | Ligne 138: | ||
</ | </ | ||
- | Pour débanir | + | Pour bannir |
- | iptables -D fail2ban-ssh -s 91.121.40.63/ | + | fail2ban-client set [nom du jail] banip [IP à bannir] |
+ | ou (ancienne version) | ||
+ | iptables -I fail2ban-ssh 1 -s 212.196.204.209 -j REJECT --reject-with icmp-port-unreachable | ||
+ | ou (nouvelle version) | ||
+ | iptables -I f2b-sshd 1 -s 212.196.204.209 -j REJECT --reject-with icmp-port-unreachable | ||
+ | |||
+ | Pour dé-bannir | ||
+ | fail2ban-client set [nom du jail] unbanip [IP concerné] | ||
+ | ou (ancienne version) | ||
+ | iptables -D fail2ban-ssh -s 91.121.40.63/ | ||
+ | ou (nouvelle version) | ||
+ | iptables -D f2b-sshd -s 91.121.40.63/ | ||
+ | |