系统版本:Ubuntu 16.04.5 LTS
软件版本:fail2ban-0.9.3
硬件要求:无
1、安装Fail2ban
root@local:~# apt-get update
root@local:~# apt-get -y install fail2ban
2、查看服务运行状态
root@local:~# systemctl status fail2ban.service
● fail2ban.service - Fail2Ban Service
Loaded: loaded (/lib/systemd/system/fail2ban.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2020-10-13 02:29:28 PDT; 3min 12s ago
Docs: man:fail2ban(1)
Main PID: 21349 (fail2ban-server)
CGroup: /system.slice/fail2ban.service
└─21349 /usr/bin/python3 /usr/bin/fail2ban-server -s /var/run/fail2ban/fail2ban.sock -p /var/run/fail2ban/fail2ban.pid -x -b
Oct 13 02:29:28 ubuntu systemd[1]: Starting Fail2Ban Service...
Oct 13 02:29:28 ubuntu fail2ban-client[21343]: 2020-10-13 02:29:28,508 fail2ban.server [21347]: INFO Starting Fail2ban v0.9.3
Oct 13 02:29:28 ubuntu fail2ban-client[21343]: 2020-10-13 02:29:28,508 fail2ban.server [21347]: INFO Starting in daemon mode
Oct 13 02:29:28 ubuntu systemd[1]: Started Fail2Ban Service.
3、查看服务开机自启
root@local:~# systemctl is-enabled fail2ban
enabled
4、查看版本
root@ubuntu:~# fail2ban-server -V
Fail2Ban v0.9.3