CloudFlare - OLS + DirectAdmin on Centos 7 [solved]

Hi Guys,

Any help would be appreciated.

As per title I'm using: OLS w/ DirectAdmin on Centos 7.

Currently at the top of every settings page in the web panel is the following message:

"Include file detected in configuration file. Entering Read-only mode."

None of the settings can be changed.

This appears to make it impossible to use CloudFlare - as per - there are settings that need to be changed in order for the server to be able to see real visitor IP addresses and prevent issues related to DDoS blocking.

> When using CloudFlare CDN in front of your LiteSpeed Web Server, you may see a proxy IP instead of the real IP addresses of visitors.
> To restore real visitor IPs, navigate to LiteSpeed WebAdmin Console > Configuration > General Settings and set Use Client IP in Header to Trusted IP Only, and add CloudFlare IPs/Subnets to the trusted list, as shown below.

So this leaves the potential option of editing the config files directly, but this does not seem seem necessarily sensible or possible from what I can see (happy to be advised otherwise).

Does anyone have an experience of getting CloudFlare to work with OLS/DA?

Is my only option to use CloudFlare without proxying - ie DNS only?

Thanks in advance.


Please check this KB to see why read-only.

You can do manually change through configuration at this stage:

You can add
 useIpInProxyHeader        2

and add
accessControl  {
  allow                   ALL,,,,,,,,,,,,,,,

Is my only option to use CloudFlare without proxying - ie DNS only?
CloudFlare/or any other CDN itself is reversy proxy.