This commit is contained in:
gunchleoc 2024-05-21 12:02:54 +00:00 committed by GitHub
commit 33ceb6092a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -51,6 +51,11 @@ Finally, restart fail2ban:
systemctl restart fail2ban
```
If the service should fail with the error "Failed during configuration: Have not found any log file for sshd jail",
switch logging to systemd by adding the line `backend=systemd` to the `[sshd]` section.
You might also have to install the `python3-systemd` package.
## Install a firewall and only allow SSH, HTTP and HTTPS ports
First, install iptables-persistent. During installation, it will ask you if you want to keep the current rulesdecline.