lk/networking/fail2ban.md
2022-01-16 19:29:49 +01:00

25 lines
334 B
Markdown

---
title: "fail2ban"
tags: [ "Documentation", "networking" ]
---
# SSH Daemon Jail
> sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.d/ssh.local
```
[sshd]
enabled = true
ignoreip = 127.0.0.1/8 ::1,192.168.0.0/16 ::1
```
> sudo systemctl restart fail2ban
> sudo fail2ban-client status
> sudo fail2ban-client status sshd