所以我的 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