Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente | Dernière révision Les deux révisions suivantes | ||
linux:fail2ban [23-09-2020 10:29] edmc73 |
linux:fail2ban [24-09-2020 11:35] edmc73 |
||
---|---|---|---|
Ligne 140: | Ligne 140: | ||
Pour bannir | Pour bannir | ||
fail2ban-client set [nom du jail] banip [IP à bannir] | 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 | Pour dé-bannir | ||
fail2ban-client set [nom du jail] unbanip [IP concerné] | fail2ban-client set [nom du jail] unbanip [IP concerné] | ||
- | ou | + | ou (ancienne version) |
- | iptables -D fail2ban-ssh -s 91.121.40.63/ | + | iptables -D fail2ban-ssh -s 91.121.40.63/ |
+ | ou (nouvelle version) | ||
+ | iptables -D f2b-sshd -s 91.121.40.63/ | ||
+ | |