Please add your server ip to this option: https://docs.litespeedtech.com/lscache/lscwp/general/#server-ip
Also talk with hosting company to allow correct IP detection.
See this step:
Problem Scenario:
{
"remote_ip": "176.xxx.xxx.157",
"x_forwarded_for": "79.xxx.xxx.183, 176.xxx.xxx.157",
"proxy_remote_addr": "176.xxx.xxx.157"
}
If remote_ip doesn’t match your actual IP, your server isn’t properly forwarding client IPs. This typically occurs when using:
- CloudFlare
- CDN services
- Reverse proxies
Solution: Contact your hosting provider to properly configure the client IP detection:
- For LSWS/OLS: Enable “Use client IP in header” in webadmin console
- For Apache: Install and configure
mod_remoteIP
- Other web servers: Implement corresponding client IP detection solution
Thread Starter
kelsjc
(@kelsjc)
I’m the server administrator. I use Apache and added and configured the module remoteIP as requested. I tried to enable quic but still get the error.
Here is the log: https://pastebin.ubuntu.com/p/NK8wM7HfNV/
-
This reply was modified 1 year ago by
kelsjc.
-
This reply was modified 1 year ago by
kelsjc.
Thread Starter
kelsjc
(@kelsjc)
It has been solved. Just to register here, the support helped me and I had to adjust remoteip.conf file with Cloudflare IPs (which I use).
Plugin Support
qtwrk
(@qtwrk)
for the record, the user is using Apache + CloudFlare , in which needs to enable mod_remoteIP with following conf:
RemoteIPHeader CF-Connecting-IP
RemoteIPTrustedProxy 173.245.48.0/20
RemoteIPTrustedProxy 103.21.244.0/22
RemoteIPTrustedProxy 103.22.200.0/22
RemoteIPTrustedProxy 103.31.4.0/22
RemoteIPTrustedProxy 141.101.64.0/18
RemoteIPTrustedProxy 108.162.192.0/18
RemoteIPTrustedProxy 190.93.240.0/20
RemoteIPTrustedProxy 188.114.96.0/20
RemoteIPTrustedProxy 197.234.240.0/22
RemoteIPTrustedProxy 198.41.128.0/17
RemoteIPTrustedProxy 162.158.0.0/15
RemoteIPTrustedProxy 104.16.0.0/13
RemoteIPTrustedProxy 104.24.0.0/14
RemoteIPTrustedProxy 172.64.0.0/13
RemoteIPTrustedProxy 131.0.72.0/22
RemoteIPTrustedProxy 2400:cb00::/32
RemoteIPTrustedProxy 2606:4700::/32
RemoteIPTrustedProxy 2803:f800::/32
RemoteIPTrustedProxy 2405:b500::/32
RemoteIPTrustedProxy 2405:8100::/32
RemoteIPTrustedProxy 2a06:98c0::/29
RemoteIPTrustedProxy 2c0f:f248::/32
the CF IP lists is fetched at 08, May, 2025 , may need to adjust in time : https://www.cloudflare.com/ips/
Good! Nice job 🙂
I will mark it as resolved.
If future help needed, feel free to contact us