In order to show the real IP of clients when using Cloudflare DNS, Cloudlare's IPs have to be set as trusted by OLS:

1. In Bunnyshell go to Virtual Machines -> select vm that you wish to edit -> OPS

2. Click on Edit on the OpenLiteSpeed line

3. Go to Advanced Settings and in the Script editor find the accessControl block (you can use Ctrl + F to find it faster)

4. Normally it would say allow ALL, but we will replace this with the following

allow ALL, 173.245.48.0/20T, 103.21.244.0/22T, 103.22.200.0/22T, 103.31.4.0/22T, 141.101.64.0/18T, 108.162.192.0/18T, 190.93.240.0/20T, 188.114.96.0/20T, 197.234.240.0/22T, 198.41.128.0/17T, 162.158.0.0/15T, 104.16.0.0/12T, 172.64.0.0/13T, 131.0.72.0/22T

5. Click on Update Package on the bottom of the page

6. Make sure you tick "Mark for deployment" for OpenLiteSpeed and then Deploy Changes

Did this answer your question?