unblock_bfm_ips error in directadmin/errortaskq.log

AndreV

Verified User
Joined
Jul 14, 2015
Messages
9
Getting the message below every minute in my log
something with the bruteforcemonitor i guess but what?

Code:
2020:08:09-12:55:01: Tally::unblock_bfm_ips error: A valid IP was not provided<br>
A valid IP was not provided<br>
A valid IP was not provided<br>
A valid IP was not provided<br>
A valid IP was not provided<br>
A valid IP was not provided<br>
A valid IP was not provided<br>

2020:08:09-12:56:01: Tally::unblock_bfm_ips error: A valid IP was not provided<br>
A valid IP was not provided<br>
A valid IP was not provided<br>
A valid IP was not provided<br>
A valid IP was not provided<br>
A valid IP was not provided<br>
 
I had the same problem. It is on a CentOS 6 server not using custombuild 2.0, and not using CSF+LFD
Using the block scripts, I added some ip adresses manually.
I also placed those in /root/exempt_ips.txt (the block_ip.sh script does this for you).

Here are a few lines from exempt_ips.txt:
345.233.160.0/24
453.102.0.0/24
342.249.64.0/24
872.14.192.0/24
299.125.0.0/24
912.85.128.0/24
645.239.32.0/24
324.140.132.15
642.72.192.62
652.72.192.87
(sorry, I edited the first digit to be > 255)

The 'errors' came for the ip addresses:
912.85.128.0/24
645.239.32.0/24
And such. I even have ranges /23, /22 and more. Single IPS did not give an error.

Since this is an old CentOS 6 box, and seen the fact I will replace it any day with a newer OS, I will fix this 'in place'.

If the administrator options has
"Remove an IP from the BF blacklist after": 86400 minutes you can add a monthly script. Please find out where you add this to your cron. You could add it to the root cron, and run it daily.
Or, you could change the amount of 'Remove an IP from the BF blacklist after', but I will leave that -as is-.
This is the script to solve the matter:
Code:
#!/bin/sh
cd  /root/
sed -i 's/dateblocked=.*$/dateblocked='`/bin/date +%s`'/' blocked_ips.txt

If you put this in a script /root/bfm_update.sh then you can add to the crontab
50 1 * * * sh /root/bfm_update.sh > /dev/null 2>&1

This will keep those IP addresses in there forever.
(do check if date is located there: /bin/date)

NOTE: if you never added IPS manually, you may have a different problem.
Any how, perhaps you are now pointed in the right direction to look for a solution.
For me this solution works, my errors are gone now.
 
I had the same problem. It is on a CentOS 6 server not using custombuild 2.0, and not using CSF+LFD
Using the block scripts, I added some ip adresses manually.
I also placed those in /root/exempt_ips.txt (the block_ip.sh script does this for you).

Here are a few lines from exempt_ips.txt:
345.233.160.0/24
453.102.0.0/24
342.249.64.0/24
872.14.192.0/24
299.125.0.0/24
912.85.128.0/24
645.239.32.0/24
324.140.132.15
642.72.192.62
652.72.192.87
(sorry, I edited the first digit to be > 255)

The 'errors' came for the ip addresses:
912.85.128.0/24
645.239.32.0/24
And such. I even have ranges /23, /22 and more. Single IPS did not give an error.

Since this is an old CentOS 6 box, and seen the fact I will replace it any day with a newer OS, I will fix this 'in place'.

If the administrator options has
"Remove an IP from the BF blacklist after": 86400 minutes you can add a monthly script. Please find out where you add this to your cron. You could add it to the root cron, and run it daily.
Or, you could change the amount of 'Remove an IP from the BF blacklist after', but I will leave that -as is-.
This is the script to solve the matter:
Code:
#!/bin/sh
cd  /root/
sed -i 's/dateblocked=.*$/dateblocked='`/bin/date +%s`'/' blocked_ips.txt

If you put this in a script /root/bfm_update.sh then you can add to the crontab
50 1 * * * sh /root/bfm_update.sh > /dev/null 2>&1

This will keep those IP addresses in there forever.
(do check if date is located there: /bin/date)

NOTE: if you never added IPS manually, you may have a different problem.
Any how, perhaps you are now pointed in the right direction to look for a solution.
For me this solution works, my errors are gone now.

I can't find any of those files in any folder,
/root is empty and can't find block_ip.sh anywhere.

removed the 86400 minutes from "Remove an IP from (BF) the blacklist after" in admin settings
to not have it shown up anymore.
 
Back
Top