CSF Messenger with reCAPTCHA doesn't work with DirectAdmin. Any fix ideas?

Murat

Verified User
Joined
Jan 3, 2017
Messages
40
Hello,
CSF Messenger with reCAPTCHA doesn't work with DA server. I tried Unblock CSF module with WHMCS, and it didn't work too.

Is it just me or everyone have same issue? It seems it's impossible to unblock IP's with recaptha or script. Because it cannot access to DA server.

EDIT:
After trying everything, I found out it was the perl issue.
You need to install some perl modules to make it work. Just run this command in ssh:
yum install perl-libwww-perl net-tools perl-LWP-Protocol-https -y

and it will be fixed after you restart csf+lfd.

Problem solved.
 
Last edited:
Hello,

According to official docs: This service, currently only available in cPanel servers, utilises the existing Apache service to provide the message as well as RECAPTCHA unblocking. It is enabled through the MESSENGERV2 option. The server must be running Apache v2.4 and using cPanel's EasyApache v4.

https://download.configserver.com/csf/readme.txt
 
Hello,

According to official docs: This service, currently only available in cPanel servers, utilises the existing Apache service to provide the message as well as RECAPTCHA unblocking. It is enabled through the MESSENGERV2 option. The server must be running Apache v2.4 and using cPanel's EasyApache v4.

https://download.configserver.com/csf/readme.txt

Yes, but it's messenger v2.
We can able to use messenger v1 with directadmin servers.

cPanel only service is the messenger v2 version of it.
 
OK, I see. And what exactly does not work then?

Unblock button is not working. I tried 2 different modules.

1) CSF integrated Messenger V1 with recaptha option. When you click unblock after recaptha, nothing happens.
2) CSF Unblock module for WHMCS. It doesn't unblock IP. Debug shows module can only access login page and stops at there. That module claims that it used to work with DA.
 
And what makes you think it's not working? What error do you get?

It doesn't unblock IP that is in blocked in CSF. It fails.
When clients get blocked by CSF for anything, they were able to login our WHMCS and unblock their own IP's with just one click. Or alternatively, they see recaptcha page with CSF Messenger V1, and unblock themselves by clicking unblock button.

But it does not unblock anymore after switching to DA from cPanel. IP remains blocked. That's the error. :)
 
I see. If the IP has been blocked by CSF/LFD then it should be possible to unblock it with calls to CSF/LFD including CSF Messenger. If an IP has been blocked by DirectAdmin then calls to CSF/LFD might not help to unblock such an IP.

So, make sure an IP has been blocked by CSF/LFD, not by directadmin, then try to unblock it.
 
I see. If the IP has been blocked by CSF/LFD then it should be possible to unblock it with calls to CSF/LFD including CSF Messenger. If an IP has been blocked by DirectAdmin then calls to CSF/LFD might not help to unblock such an IP.

So, make sure an IP has been blocked by CSF/LFD, not by directadmin, then try to unblock it.

Yes, I'm sure. I also tried to add it manually to CSF. And it shows in CSF deny list. It's not blocked by directadmin.
 
It works for me pls check settings carefully


After recaptcha I got

Passed human test. Please wait a few seconds and your IP address should be unblocked.

I waited a few seconds and it worked

I use csf installed with zEitEr script for BLM integration
https://help.poralix.com/articles/how-to-block-ips-with-csf-directadmin-bfm


@chonk - So what could be wrong (unblock permanent blocks is unchecked by default ) could you check that
 
It works for me pls check settings carefully


After recaptcha I got

Passed human test. Please wait a few seconds and your IP address should be unblocked.

I waited a few seconds and it worked

I use csf installed with zEitEr script for BLM integration
https://help.poralix.com/articles/how-to-block-ips-with-csf-directadmin-bfm


@chonk - So what could be wrong (unblock permanent blocks is unchecked by default ) could you check that

I just installed that script you mentioned. It didn't work.
What do you mean exactly by "unblock permanent blocks"?
Can you also share with me which repatcha version you using?
 
I just installed that script you mentioned. It didn't work.
What do you mean exactly by "unblock permanent blocks"?
Can you also share with me which repatcha version you using?

recaptcha v2

at the messanger in CSF there is option on top to remove temporary MESSENGER_TEMP block and to remove permanent blocks MESSENGER_PERM

if you add your test IP to permanent block and do not enabled permanent removal it may not work

I do not have other ideas
 
Good news for those who have same problem with me. I have fixed the problem.

You need to install some perl modules to make it work. Just run this command in ssh:

yum install perl-libwww-perl net-tools perl-LWP-Protocol-https -y

and it will be fixed after you restart csf+lfd.
 
Yes, but it's messenger v2.
We can able to use messenger v1 with directadmin servers.

I was also able to make it work on DirectAdmin with CentOS 7. However I am not able to make Messenger work on CentOS 8.

Do you know how I can make CSF use messenger v1 instead of v2? Maybe that will help. But I find no settings for it.

Edit: I give up! It is possible to have it work on CentOS 7 and CentOS 8 now, but there is several remamining bugs that needs to be fixed before this can be used on production servers. I have posted all information here: https://forum.configserver.com/viewtopic.php?f=4&t=11654
 
Last edited:
What about Messenger V3?
I was also able to make it work on DirectAdmin with CentOS 7. However I am not able to make Messenger work on CentOS 8.

Do you know how I can make CSF use messenger v1 instead of v2? Maybe that will help. But I find no settings for it.

Edit: I give up! It is possible to have it work on CentOS 7 and CentOS 8 now, but there is several remamining bugs that needs to be fixed before this can be used on production servers. I have posted all information here: https://forum.configserver.com/viewtopic.php?f=4&t=11654

Nobody is mentioning about messenger V3 here. I think it's a new feature especially for litespeed but it also mention for server using apache. Maybe this one is compatible with DA.
 
What about Messenger V3?

That was exactly my thought too. I'm on CentOS 8 and Apache 2.4.46. I edited CSF config (/etc/csf/csf.conf) as follows:

Code:
MESSENGER = "1"
MESSENGER_HTTPS_IN = "443,2222"
MESSENGERV3 = "1"
MESSENGERV3WEBSERVER = "apache"
MESSENGERV3PHPHANDLER = ""

(I wasn't sure what I was supposed to put in the last one. I did try entering the path to '/etc/httpd/conf/extra/httpd-php-handlers.conf' but that didn't work, so I left it empty, which means 'the MESSENGER service will try to configure this'.)

I created csf user as explained in the CSF readme:
/home/csf/ (Owner csf:csf, Permissions 711)
/home/csf/public_html/ (Owner csf:nobody, Permissions 711)

The result: It works perfectly when I block my IP and try to visit the hostname. I get the expected message: 'The firewall on this server is blocking your connection.' But it fails to work for any other domain on the server—I just get the standard 'can't find the server' type browser error.

Any thoughts on why it wouldn't be working for virtual hosts?
 
I don't even have this on. So we notify people they are blocked now? :)
 
I don't even have this on. So we notify people they are blocked now? :)

Yes, why not? Typical scenario: client complains that their website is down. Upon investigation, it turns out they entered incorrect login credentials one too many times and got themselves blocked. If CSF Messenger is working, client is informed about the true cause. Client anxiety and support time is minimised.
 
Back
Top