From 9f07821f9d37f4e23cb468b51f21b77f232b932c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?La=20Dr=C3=B4me=20Laboratoire?= <45164229+ladromelaboratoire@users.noreply.github.com> Date: Tue, 24 Mar 2020 16:24:09 +0100 Subject: [PATCH] Adding TOC --- Fail2Ban-Setup.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/Fail2Ban-Setup.md b/Fail2Ban-Setup.md index 387d681..a9447f3 100644 --- a/Fail2Ban-Setup.md +++ b/Fail2Ban-Setup.md @@ -1,5 +1,20 @@ Setup Fail2ban will prevent attackers to brute force your vault logins. This is particularly important if your instance is publicaly available. +## Table of Content +- [Pre-requisite](#pre-requisite) +- [Installation](#installation) + * [Debian / Ubuntu / Raspian](#debian--ubuntu--raspian) + * [Fedora / Centos](#fedora--centos) + * [Synology DSM](#synology-dsm) +- [Setup for web vault](#setup-for-web-vault) + * [Filter](#filter) + * [Jail](#jail) +- [Setup for admin page](#setup-for-admin-page) + * [Filter](#filter-1) + * [Jail](#jail-1) +- [Testing Fail2Ban](#testing-fail2ban) +- [SELinux Problems](#selinux-problems) + ## Pre-requisite - Commands below are using `vi`. The basics can be found [there](https://pc.net/resources/commands/vi). However, you can use whatever text editor you want. @@ -10,6 +25,7 @@ Setup Fail2ban will prevent attackers to brute force your vault logins. This is ```` ## Installation + ### Debian / Ubuntu / Raspian ``` sudo apt-get install fail2ban -y @@ -110,9 +126,9 @@ Create and fill the following file ignoreregex = ```` -If you get the following error message `in fail2ban.log` (CentOS 7, Fail2Ban v0.9.7) +If you get the following error message in `fail2ban.log` (CentOS 7, Fail2Ban v0.9.7) `fail2ban.filter [5291]: ERROR No 'host' group in '^.*Username or password is incorrect\. Try again\. IP: \. Username:.*$'` -Please Use `` instead of `` in ``bitwarden.local` +Please Use `` instead of `` in `bitwarden.local` ### Jail Create and fill the following file