小编jbl*_*blz的帖子

错误在 /etc/fail2ban 下找不到“fail2ban”的可访问配置文件

所以我的 fail2ban 没有工作,为了让它工作,配置文件变得混乱。决定从头开始。

我以 sudo 的身份运行这些

apt-get remove fail2ban

apt-get purge fail2ban

rm -r /etc/fail2ban
Run Code Online (Sandbox Code Playgroud)

希望我能完全删除它,因为前两个命令保留了凌乱的配置文件。

所以现在当我 apt-get install fail2ban 它下载并安装包,但是当我尝试运行它时有这个

 * Starting authentication failure monitor fail2ban                                                                                                                                                                            ERROR  Found no accessible config files for 'fail2ban' under /etc/fail2ban
ERROR  No section: 'Definition'
ERROR  No section: 'Definition'
ERROR  Found no accessible config files for 'fail2ban' under /etc/fail2ban
ERROR  Found no accessible config files for 'jail' under /etc/fail2ban
ERROR  No section: 'Definition'
ERROR  No section: 'Definition'
Run Code Online (Sandbox Code Playgroud)

这些配置文件确实丢失了。为什么我重新安装 F2B 时没有重新创建它们?如何从头开始并将其重新安装为默认值?

我使用的是 Ubuntu 14.04.2 LTS

linux ubuntu fail2ban apt

7
推荐指数
2
解决办法
1万
查看次数

标签 统计

apt ×1

fail2ban ×1

linux ×1

ubuntu ×1