Updated Proper fail2ban configuration (markdown)

master
Sergey G. Brester 2019-10-13 20:24:46 +02:00
parent dcbdf01e35
commit fb76fd768f
1 changed files with 1 additions and 1 deletions

@ -36,7 +36,7 @@ But value of parameter `logpath` in `section2` will be changed to `/my-path/to/l
**[A]** You should create a `jail.local` file and at least enable there corresponding jails (all jails are disabled by default) resp. overwrite there all the settings you've different from normally stock installation, or even create your own jails (and/or) filters, that are not available in default configuration of the fail2ban distribution.
For example if you'll, that fail2ban should ban authorization failures occurred in sshd and nginx, but the `error.log` of your your nginx-instance is configured as `/var/log/my-nginx/error.log` you should set also parameter `logpath` additionally to `enabled` in section `[nginx]`.
For example if your intention is to monitor authorization failures occurred in sshd and nginx, but the `error.log` of your your nginx-instance is configured as `/var/log/my-nginx/error.log` you should set also parameter `logpath` additionally to `enabled` in section `[nginx]`.
So your `jail.local` looks like:
```ini