- Modifié
plop,
Oui j'avais bien supprimer le dossier /etc/fail2ban après avoir désinstall la version des dépôts.
J'ai donc tester ta modif et voila le résultat:
┌─<root @ sd-126935 in /h/leonidas>
└─<>──» service fail2ban restart 0 < 18:22:00
Failed to restart fail2ban.service: Unit fail2ban.service not found.
En fait je pense que c'est cette partie du tuto qui a foutu la merde
Automatisation lancement
# cp files/debian-initd /etc/init.d/fail2ban
# chmod +x /etc/init.d/fail2ban
# systemctl enable fail2ban.service
fail2ban.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable fail2ban
# systemctl daemon-reload
# service fail2ban restart
# service fail2ban status
● fail2ban.service - LSB: Start/stop fail2ban
Loaded: loaded (/etc/init.d/fail2ban; generated; vendor preset: enabled)
Active: active (exited) since Mon 2017-11-27 09:07:24 EAT; 4s ago
Docs: man:systemd-sysv-generator(8)
Process: 11586 ExecStart=/etc/init.d/fail2ban start (code=exited, status=0/SUCCESS)
nov. 27 09:07:24 dev.domaine.com systemd[1]: Starting LSB: Start/stop fail2ban...
nov. 27 09:07:24 dev.domaine.com fail2ban[11586]: Starting authentication failure monitor: fail2ban.
nov. 27 09:07:24 dev.domaine.com systemd[1]: Started LSB: Start/stop fail2ban.