This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| computing:fail2ban [2026/03/22 20:44] – oemb1905 | computing:fail2ban [2026/08/15 09:56] (current) – oemb1905 | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| ------------------------------------------- | ------------------------------------------- | ||
| - | This tutorial is designed to help you install fail2ban and get a basic set of configurations in place. | + | This tutorial is designed to help you install fail2ban and get a basic set of configurations in place. |
| + | |||
| + | //My defaults give a very small 1 hour punishment for first time offense of 3 violations of any jail. Repeat offenders, however, get immediate life-bans. So, the default is very tolerant and the extreme is essentially for life punishment. Using this framework, you override individual services with '' | ||
| + | |||
| + | You will need to change this recipe to fit your needs. At the same time, there are certain aspects in this tutorial, that are just " | ||
| sudo cp / | sudo cp / | ||
| Line 223: | Line 227: | ||
| systemctl restart fail2ban.service | systemctl restart fail2ban.service | ||
| </ | </ | ||
| + | |||
| + | To nuke fail2ban and start over while preserving your configs: | ||
| + | |||
| + | fail2ban-client unban --all | ||
| + | systemctl stop fail2ban | ||
| + | rm -f / | ||
| + | truncate -s 0 / | ||
| + | systemctl start fail2ban | ||
| --- // | --- // | ||