Mention the cron job should be added with command 'crontab -e -u root'.

This commit is contained in:
Zhang Huangbin 2020-05-08 15:17:37 +08:00
parent 15f693aa97
commit 5ae1ee9818
2 changed files with 2 additions and 2 deletions

View File

@ -196,7 +196,7 @@ Now restart `fail2ban` service to load modified config files.
## Add required cron job to query SQL database and unban IP addresses
Now add a cron job for `root` user:
Now add a cron job for `root` user with command `crontab -e -u root`:
```
# Fail2ban: Unban IP addresses pending for removal (stored in SQL db).

View File

@ -213,7 +213,7 @@ action = iptables-multiport[name=dovecot, port="80,443,25,587,465,110,
<p>That's it. It's recommend to enable this new action <code>banned_db</code> for all jails.</p>
<p>Now restart <code>fail2ban</code> service to load modified config files.</p>
<h2 id="add-required-cron-job-to-query-sql-database-and-unban-ip-addresses">Add required cron job to query SQL database and unban IP addresses</h2>
<p>Now add a cron job for <code>root</code> user:</p>
<p>Now add a cron job for <code>root</code> user with command <code>crontab -e -u root</code>:</p>
<pre><code># Fail2ban: Unban IP addresses pending for removal (stored in SQL db).
* * * * * /bin/bash /usr/local/bin/fail2ban_banned_db unban_db
</code></pre>