mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
Update fail2ban.md
This commit is contained in:
parent
7d4649c297
commit
fcaa5b9e11
1 changed files with 3 additions and 3 deletions
|
@ -1,10 +1,10 @@
|
||||||
# Fail2ban
|
# Fail2ban
|
||||||
|
|
||||||
For a number of reasons, an IP adresse may be wrongly blacklisted. If you wish to access your server through this specifi IP you will need to unblock it.
|
For a number of reasons, an IP adresse may be wrongly blacklisted. If you wish to access your server through this specify IP you will need to unblock it.
|
||||||
|
|
||||||
## IP unblock
|
## IP unblock
|
||||||
|
|
||||||
First, list all iptables rules with : `iptables -L --line-numbers` :
|
First, list all iptables rules with: `iptables -L --line-numbers` :
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
root@beudi:~# iptables -L --line-numbers
|
root@beudi:~# iptables -L --line-numbers
|
||||||
|
@ -51,7 +51,7 @@ To unblock:
|
||||||
iptables -D rule_name entry_number
|
iptables -D rule_name entry_number
|
||||||
```
|
```
|
||||||
|
|
||||||
For example :
|
For intance:
|
||||||
```bash
|
```bash
|
||||||
iptables -D fail2ban-yunohost 1
|
iptables -D fail2ban-yunohost 1
|
||||||
```
|
```
|
Loading…
Add table
Reference in a new issue