Closed houmie closed 1 year ago
Your server is still reachable by using its direct IP address. Nothing prevents clients from bypassing Cloudflare and hitting your server directly. So you should only mark IP addresses controlled by Cloudflare as trusted, so that the parsed client IP is only ever the one Cloudflare saw at their end.
As francis said, it's mainly used to pass reliable X-Forwarded-For
header to your xray server so forged X-Forwarded-For
is mostly filtered. If you don't care about from where clients are connecting to your server, you can safely ignore this.
Awesome. Thank you both for explaining this to me.
Have a great day.
Hello,
Apologies, I have been researching for many hours, but haven't been able to find more information about this.
I understand under Caddy I can use this section above to fetch a list of trusted proxies. But why do I need
caddy-cloudflare-ip
when I have already enabled CloudFlare's proxy?I'm planning to use Caddy with Xray to create the following VPN protocols that utilise Cloudflare CDN.
Many Thanks