This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| computing:fail2ban [2023/06/01 17:25] – oemb1905 | computing:fail2ban [2025/12/09 04:30] (current) – oemb1905 | ||
|---|---|---|---|
| Line 63: | Line 63: | ||
| fail2ban-client unban --all | fail2ban-client unban --all | ||
| - | Another method that does more than individual services: | + | Another method that does more than individual services, and instead zaps all records: |
| sudo systemctl stop fail2ban | sudo systemctl stop fail2ban | ||
| sudo truncate -s 0 / | sudo truncate -s 0 / | ||
| sudo rm / | sudo rm / | ||
| - | sudo service fail2ban | + | sudo systemctl |
| - | --- //[[jonathan@haacksnetworking.org|oemb1905]] | + | Systemd log issues. Change the sshd jail as follows |
| + | |||
| + | sudo nano / | ||
| + | backend = systemd | ||
| + | #backend = %(sshd_backend)s | ||
| + | |||
| + | Some recommend adding backend = systemd into jail.conf, but I've found that does nothing. The error over ipv6 not being set and using auto can be removed as follows: | ||
| + | |||
| + | sudo nano / | ||
| + | ' | ||
| + | |||
| + | To check a particular jail's statistics: | ||
| + | |||
| + | sudo fail2ban-client status filebrowser | ||
| + | |||
| + | --- //[[alerts@haacksnetworking.org|oemb1905]] | ||