Openlitespeed – Restore original IPs using Cloudflare

This is essential if you use Cloudflare proxy, otherwise software that blocks IPs will not work properly. Follow the steps bellow. 

    1 – Login to your OpenLitespeed web panel:


   1.1 – Default login username is admin. If you are using cyberpanel, your password is located inside the file bellow.


           If you don’t have such file or you are not using cyberpanel and don’t know your password, run the following command to reset it (you can also change your username if you wish):


    2 – At the OLS web admin panel, go to Server Configuration.

         At General -> General Settings, click the Edit button and change Use Client IP in Header to Trusted IP Only

    3 – Go to Server Configuration -> Security.

         Scroll down to Access Control, click the Edit button and at Allowed List replace “ALL” with the text bellow:

					ALL,,,,,,,,,,,,,,,, 2400:cb00::/32T, 2606:4700::/32T, 2803:f800::/32T, 2405:b500::/32T, 2405:8100::/32T, 2a06:98c0::/29T, 2c0f:f248::/32T

        This contains all the Cloudflare IP ranges with an T appended. You can manually verify does ranges at Cloudflare website:


    4 – Restart your OpenLitespeed for changes to take effect, by clicking the Graceful Restart button at the top of the page.

Quick Links


© Copyright 2022 Tierri Lopes. All right reserved.