Fail2ban: Difference between revisions

m fixed deprecated syntax
Klinger (talk | contribs)
 
(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>
<syntaxhighlight lang="nix">
   services.fail2ban = {
   services.fail2ban = {
     # --- snip ---
     # --- snip ---
     jails = {
     jails = {
       ngnix-url-probe.settings = {  
       nginx-url-probe.settings = {  
         enabled = true;
         enabled = true;
         filter = "nginx-url-probe";
         filter = "nginx-url-probe";
Line 99: Line 99:
     };
     };
   };
   };
</syntaxHighlight>
</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]]