> For the complete documentation index, see [llms.txt](https://tuto.pristis.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tuto.pristis.fr/installer-fail2ban-sur-ubuntu-ou-debian.md).

# Installer Fail2Ban sur Ubuntu ou Debian

Pour commencer, veuillez d'abord exécuter les commandes suivantes :

$ sudo apt install fail2ban

Toutes ls commandes ci-dessus sont adaptées pour Ubuntu 20.04, 16.04, Debian 8, 9 et 10.

Une fois ceci fait, vous pourrez fouiller dans le fichier de configuration ci-dessous :

$ sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local $ sudo vim /etc/fail2ban/jail.local

Et voilà, vous avez juste à entrer ce qui vous convient ou non, vous redémarrez Fail2Ban avec la commande suivante :

$ sudo systemctl restart fail2ban

**Tutoriel terminé ! En voir plus, c'est ci dessous ! ⬇️**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tuto.pristis.fr/installer-fail2ban-sur-ubuntu-ou-debian.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
