diff --git a/en_US/howto/fail2ban.sql.md b/en_US/howto/fail2ban.sql.md index 2ecc9312..32540183 100644 --- a/en_US/howto/fail2ban.sql.md +++ b/en_US/howto/fail2ban.sql.md @@ -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). diff --git a/html/fail2ban.sql.html b/html/fail2ban.sql.html index d5a4e477..9a4c5e31 100644 --- a/html/fail2ban.sql.html +++ b/html/fail2ban.sql.html @@ -213,7 +213,7 @@ action = iptables-multiport[name=dovecot, port="80,443,25,587,465,110,

That's it. It's recommend to enable this new action banned_db for all jails.

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).
 * * * * * /bin/bash /usr/local/bin/fail2ban_banned_db unban_db