Skip to content

Commit 26884d9

Browse files
author
Edward
committed
heading tweaks to my edit
1 parent 1f7cdc8 commit 26884d9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/security/using-fail2ban-for-security.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Fail2ban reads `.conf` configuration files first, then `.local` files override a
142142
- `socket`: The location of the socket file.
143143
- `pidfile`: The location of the PID file.
144144

145-
### Configure jail.local
145+
## 3) Configure jail.local Settings
146146

147147
1. The `jail.conf` file will enable Fail2ban for SSH by default for Debian and Ubuntu, but not CentOS. All other protocols and configurations (HTTP, FTP, etc.) are commented out. If you want to change this, create a `jail.local` for editing:
148148

@@ -171,7 +171,7 @@ Fail2ban reads `.conf` configuration files first, then `.local` files override a
171171
enabled = true
172172
~~~
173173

174-
#### Whitelist IP
174+
### Whitelist IP
175175

176176
To ignore specific IPs, add them to the `ignoreip` line. By default, this command will not ban the localhost. If you work from a single IP address often, it may be beneficial to add it to the ignore list:
177177

@@ -190,7 +190,7 @@ If you wish to whitelist IPs only for certain jails, this can be done with the `
190190

191191
fail2ban-client set JAIL addignoreip 123.45.67.89
192192

193-
#### Ban Time and Retry Amount
193+
### Ban Time and Retry Amount
194194

195195
Set `bantime`, `findtime`, and `maxretry` to define the circumstances and the length of time of a ban:
196196

@@ -212,7 +212,7 @@ Set `bantime`, `findtime`, and `maxretry` to define the circumstances and the le
212212

213213
- `maxretry`: How many attempts can be made to access the server from a single IP before a ban is imposed. The default is set to 3.
214214

215-
#### Email Alerts
215+
### Email Alerts
216216

217217
To receive email when fail2ban is triggered, adjust the email settings:
218218

@@ -360,9 +360,9 @@ With the failregex created, it then needs to be added to a filter.
360360

361361
## Using the Fail2ban Client
362362

363-
Fail2ban provides a command `fail2ban-client` that can be used to run Fail2ban from the command line. The input should be as follows:
363+
Fail2ban provides a command `fail2ban-client` that can be used to run Fail2ban from the command line:
364364

365-
`fail2ban-client COMMAND`
365+
fail2ban-client COMMAND
366366

367367
- `start`: Starts the Fail2ban server and jails.
368368
- `reload`: Reloads Fail2ban's configuration files.

0 commit comments

Comments
 (0)