Fail2ban: Difference between revisions
m fixed deprecated syntax |
m added Category:Server Category:Networking |
||
(One intermediate revision by one other user not shown) | |||
Line 83: | Line 83: | ||
The defined filters and actions can then be used in a new jail (created as seen above): | The defined filters and actions can then be used in a new jail (created as seen above): | ||
< | <syntaxhighlight lang="nix"> | ||
services.fail2ban = { | services.fail2ban = { | ||
# --- snip --- | # --- snip --- | ||
jails = { | jails = { | ||
nginx-url-probe.settings = { | |||
enabled = true; | enabled = true; | ||
filter = "nginx-url-probe"; | filter = "nginx-url-probe"; | ||
Line 99: | Line 99: | ||
}; | }; | ||
}; | }; | ||
</ | </syntaxhighlight> | ||
For more details on how to develop Fail2ban filters please see [https://fail2ban.readthedocs.io/en/latest/filters.html the official documentation]. | For more details on how to develop Fail2ban filters please see [https://fail2ban.readthedocs.io/en/latest/filters.html the official documentation]. | ||
Line 109: | Line 109: | ||
[[Category:Applications]] | [[Category:Applications]] | ||
[[Category:Server]] | |||
[[Category:Networking]] |