Thomas Oryon
Regular Pleskian
- Server operating system version
- RHEL 9
- Plesk version and microupdate number
- 18.0.81
Hi Support Team,
We are experiencing an issue with LiteSpeed Enterprise running on our Plesk server, where the web server access logs are recording the WAF's private IP address instead of the original visitor's public IP address.
Server Environment:
Our Plesk server is hosted behind a WAF. Currently, all incoming requests are recorded with the WAF's private IP address instead of the actual public IP addresses of visitors.
We would like LiteSpeed to correctly identify and record the original client IP addresses in the website access logs and Plesk Log Browser.
Troubleshooting Performed:
Despite these changes, LiteSpeed continues to record the WAF's private IP address instead of the original visitor's public IP address.
Request for Assistance:
Could you please advise on the following?
Thank you for your assistance.
We are experiencing an issue with LiteSpeed Enterprise running on our Plesk server, where the web server access logs are recording the WAF's private IP address instead of the original visitor's public IP address.
Server Environment:
- Control Panel: Plesk
- Web Server: LiteSpeed Enterprise 6.3.7
- WAF / Reverse Proxy IP: <WAF_PRIVATE_IP>
- Plesk Server IP: <PLESK_PRIVATE_IP>
- Test Domain: ad-ww1.srv.asia
Our Plesk server is hosted behind a WAF. Currently, all incoming requests are recorded with the WAF's private IP address instead of the actual public IP addresses of visitors.
We would like LiteSpeed to correctly identify and record the original client IP addresses in the website access logs and Plesk Log Browser.
Troubleshooting Performed:
- Verified that Apache's mod_remoteip module is installed and enabled.
- Confirmed that Apache has RemoteIPHeader X-Forwarded-For configured.
- Verified that LiteSpeed Enterprise is actively handling HTTP/HTTPS traffic.
- Confirmed the following configuration:
<useIpInProxyHeader>2</useIpInProxyHeader> - Added the WAF IP to LiteSpeed's trusted proxy configuration:
<allow>127.0.0.1T,<WAF_PRIVATE_IP>T,ALL</allow> - Restarted the LiteSpeed service and confirmed that the configuration syntax check completed without reporting errors.
Despite these changes, LiteSpeed continues to record the WAF's private IP address instead of the original visitor's public IP address.
Request for Assistance:
Could you please advise on the following?
- Are additional LiteSpeed Enterprise settings required to retrieve the original client IP from the X-Forwarded-For header?
- Is the trusted proxy configuration correct for LiteSpeed Enterprise 6.3.7 running with Plesk?
- Are any additional settings required to ensure the original client IP appears in both LiteSpeed access logs and the Plesk Log Browser?
- What is the recommended method to verify whether LiteSpeed is receiving and correctly processing the forwarded client IP headers?
NOTE : We are using Fortigate firewall.
Thank you for your assistance.