Commit b61f5c

2026-01-20 11:17:53 theophile: How to whitelist an IP adress
server/fail2ban.md ..
@@ 217,17 217,33 @@
## Troubleshooting
+ ### Unban
+
Pour vérifier si une adresse a été ban, on a plusieurs possibilité:
```bash
less /var/log/fail2ban.log | grep YOUR_IP
```
- ### Unban
+
```bash
sudo fail2ban-client set THE_JAIL_NAME unbanip YOUR_IP
```
+ ## Whitelist (to avoid ban in the first place)
+
+ Edit the `/etc/fail2ban/jail.local` `ignore_ip` field. Append at the end of the line your routers IP adress.
+ Then restart the fail2ban service:
+
+ ```bash
+ sudo systemctl restart fail2ban
+ ```
+ and check that it runs correctly:
+
+ ```bash
+ systemctl status fail2ban
+ ```
+
## Sources
- https://wiki.archlinux.org/title/Fail2ban
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9