Author Topic: CSF and CloudFlare Integration  (Read 248 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
CSF and CloudFlare Integration
« on: December 30, 2024, 12:16:18 PM »
Hello there

So I went through the configuration of CloudFlare following the guidelines here:
https://download.configserver.com/csf/readme.txt

I'm using the "ANY" method since I have many domains under my CloudFlare account.

I've already configured and running mod_remoteip with all CloudFlare IPs on my Apache server.

Questions:
1) How can I actually verify that the CloudFlare Integration is working as intended?

2) Could I add a second API + credentials under the csf.cloudflare file since I have access and manage multiple accounts?

Thank you very much

Offline
*****
Re: CSF and CloudFlare Integration
« Reply #1 on: December 30, 2024, 07:23:30 PM »
CSF/LFD are already built into CWP's UI.

Doing a manually install on top of it might break things, as their are CWP customizations.

1. You will need to post this questions on the CSF forums, as it is not a feature (yet) of CWP.
2. See 1.

Offline
*
Re: CSF and CloudFlare Integration
« Reply #2 on: December 31, 2024, 04:33:17 AM »
Thank you very much.

I'm not sure that I've explained correctly.

CSF is already installed and running on top of the default CWP installation.

I have an additional module on my Admin panel where I can manage the UI options.

There's only one /CSF/ folder with all the installation files inside and I'm working on that.

There's only one CSF.conf file obviously.

Can we proceed to my original question?

Thank you very much.

Offline
*****
Re: CSF and CloudFlare Integration
« Reply #3 on: December 31, 2024, 05:04:49 PM »
'On Top' sounds like you re-installed CSF/LFD from source.
The link you posted also suggests that.

"CloudFlare Integration" is not support by CWP at this time. I wish it was, but it's not currently.

These forums aren't for Cloudflare.
You will need to use their forums for that support.

And if you built CSF from source to add additional modules not included in CWP, you will need to use the support CSF forums for that module.

Offline
*
Re: CSF and CloudFlare Integration
« Reply #4 on: January 01, 2025, 05:47:01 AM »
Thank you for your help.

It seems that it is working since I can use the "CloudFlare" menu towards the bottom of the CSF panel and take specific actions.

My question is only - how to verify it from system logs? Is there a log or a process that I can check to see that the CSF + CloudFlare integration is actually running?

Only that.

Thank you again.

Offline
*****
Re: CSF and CloudFlare Integration
« Reply #5 on: January 01, 2025, 07:15:37 AM »
The CSF/LFD log file is at
Code: [Select]
/var/log/lfd.log

Offline
*
Re: CSF and CloudFlare Integration
« Reply #6 on: January 03, 2025, 04:05:52 AM »
Thank you very much.

It seems that it is loading under the module list.

However, is there a way to check if CloudFlare is actively blocking events from CSF? (I'm not sure I'm explaining correctly)

Thank you again.

Offline
*****
Re: CSF and CloudFlare Integration
« Reply #7 on: January 04, 2025, 11:41:41 AM »
You would nee dto login to your Cloudflare account, and look at the history of the firewall there.

Offline
*
Re: CSF and CloudFlare Integration
« Reply #8 on: Today at 04:00:00 AM »
Thank you very much.

Under the CloudFlare Analytics I can indeed see API Requests - so I'm guessing that it's working.

However do you have any idea about what data point, should I filter by to identify CSF to CloudFlare events?

I don't see anything relevant or any reference to CSF or my Server IP or hostname.

Thank you again.