User Tools

Site Tools


ubuntu:fail2ban:override_the_default_configuration_settings

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ubuntu:fail2ban:override_the_default_configuration_settings [2025/05/30 21:18] – created peterubuntu:fail2ban:override_the_default_configuration_settings [2025/05/30 21:29] (current) peter
Line 1: Line 1:
 ====== Ubuntu - Fail2Ban - Override the default configuration settings ====== ====== Ubuntu - Fail2Ban - Override the default configuration settings ======
  
-Edit that **/etc/fail2ban/jail.d/defaults-debian.conf** file, and add configuration changes into the section of the service to override+Edit the **/etc/fail2ban/jail.d/defaults-debian.conf** file, and add configuration changes into the **[DEFAULT]** section to override.
- +
-  * As the only service currently being monitored is sshd, for now changes will be overridden for sshd.+
  
 <file bash /etc/fail2ban/jail.d/defaults-debian.conf> <file bash /etc/fail2ban/jail.d/defaults-debian.conf>
Line 13: Line 11:
 [sshd] [sshd]
 enabled = true enabled = true
- 
-# override the default values for the sshd service 
-bantime = 600 
-findtime = 3m 
-maxretry = 5 
-action = %(action_mw)s 
 </file> </file>
 +
 +<WRAP important>
 +**WARNING:**  Do not change entries in the **[sshd]** section, as that would override settings specifically for the sshd service.
 +
 +  * Of course, if there is a need to override settings for the sshd service as well, then go ahead with changes in the sshd section.
 +    * See [[Ubuntu:Fail2Ban:Override the default configuration settings for the sshd service|Override the default configuration settings for the sshd service]].
 +</WRAP>
  
 ---- ----
ubuntu/fail2ban/override_the_default_configuration_settings.1748639884.txt.gz · Last modified: 2025/05/30 21:18 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki