Skip to content

Commit 48f307a

Browse files
authored
Merge pull request #122 from gitplayer4/en/v2
Update fail2ban.md
2 parents fdc6dfd + 851fce5 commit 48f307a

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

docs/user_manual/toolbox/fail2ban.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,83 @@
11
## 1 Installation
22

33
=== "RedHat / CentOS"
4+
45
!!! note ""
6+
57
**1. Install EPEL repository**
68

79
```bash
810
yum install -y epel-release
911
```
1012

13+
!!! note ""
14+
1115
**2. Install Fail2ban**
1216
1317
```bash
1418
yum install -y fail2ban
1519
```
1620

21+
!!! note ""
22+
1723
**3. Start Fail2ban service**
1824
1925
```bash
2026
systemctl start fail2ban
2127
```
2228
29+
!!! note ""
30+
2331
**4. Enable on boot**
2432

2533
```bash
2634
systemctl enable fail2ban
2735
```
2836
37+
!!! note ""
38+
2939
**5. Check Fail2ban status**
3040

3141
```bash
3242
systemctl status fail2ban
3343
```
3444

3545
=== "Ubuntu / Debian"
46+
3647
!!! note ""
48+
3749
**1. Install Fail2ban**
3850

3951
```bash
4052
sudo apt-get install fail2ban
4153
```
4254

55+
!!! note ""
56+
4357
**2. For Debian 12 and above, install rsyslog manually**
4458

4559
```bash
4660
sudo apt-get install rsyslog
4761
```
4862

63+
!!! note ""
64+
4965
**3. Start Fail2ban service**
5066
5167
```bash
5268
sudo systemctl start fail2ban
5369
```
5470
71+
!!! note ""
72+
5573
**4. Enable on boot**
5674

5775
```bash
5876
sudo systemctl enable fail2ban
5977
```
6078
79+
!!! note ""
80+
6181
**5. Check Fail2ban status**
6282

6383
```bash

0 commit comments

Comments
 (0)