Add a comment line for cron job.

This commit is contained in:
Zhang Huangbin 2020-04-20 11:38:48 +08:00
parent 5c8351a72c
commit 1f1cc766dd
2 changed files with 3 additions and 1 deletions

View File

@ -199,6 +199,7 @@ Now restart `fail2ban` service to load modified config files.
Now add a cron job for `root` user:
```
# Fail2ban: Unban IP addresses pending for removal (stored in SQL db).
* * * * * /bin/bash /usr/local/bin/fail2ban_banned_db unban_db
```

View File

@ -214,7 +214,8 @@ action = iptables-multiport[name=dovecot, port="80,443,25,587,465,110,
<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>
<pre><code>* * * * * /bin/bash /usr/local/bin/fail2ban_banned_db unban_db
<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>
<p>It runs every minute and queries SQL database to get banned IP addresses which