File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments