sh fail2ban centos 7
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh fail2ban centos 7相关的知识,希望对你有一定的参考价值。
# https://www.8host.com/blog/zashhita-ssh-s-pomoshhyu-fail2ban-centos-6/
[DEFAULT]
ignoreip = 127.0.0.1
bantime = 3600
findtime = 600
maxretry = 3
[ssh-iptables]
enabled = true
filter = sshd
action = iptables[name=SSH, port=ssh, protocol=tcp]
# sendmail-whois[name=SSH, dest=root, sender=fail2ban@example.com]
logpath = %(sshd_log)s
maxretry = 5
systemctl reload fail2ban
tail -f /var/log/fail2ban.log
iptables -L
service fail2ban status
systemctl enable fail2ban
## https://losst.ru/nastrojka-fail2ban-centos-7
## https://www.dmosk.ru/instruktions.php?object=fail2ban
#
#cat /etc/fail2ban/jail.conf
#[sshd]
#enabled = true
#port = ssh
#logpath = %(sshd_log)s
#backend = %(sshd_backend)s
以上是关于sh fail2ban centos 7的主要内容,如果未能解决你的问题,请参考以下文章
CentOS 7安装fail2ban+Firewalld防止SSH爆破
centos 7 常用装机必备工具
sh fail2ban报告ips
sh Nginx限制req模块和fail2ban
sh Fail2ban e Ipetables en debian
sh 一次显示所有fail2ban jails的状态