Hello All,
Here is what I have achieved so far.
Setup Cloudlfare SSL for Apache2, dynprtal, viciphone and asterisk web socket (Fully Working)
Configured page rules and everything else in cloudflare to make it work
The issue is with the Dynportal. When I whitelist my IP. It should ideally take client machine IP, but instead its grabbing one of the proxy IP of client's nearest Cloudflare node.
I changed $remoteip=$_SERVER['REMOTE_ADDR'] to $remoteip=$_SERVER['HTTP_X_FORWARDED_FOR'] , It works but there are two issues with that.
1. Its a security risk
2. It does not whitelist (dynamic) the IP
Please advise..