Need help with Cloudflare real ips
So i've been trying a lot of things, but i don't think they are working at all.
8 Replies
wanna add more details ?? what's not working
real ips
so nothing
X-Real-IP shows Cloudflare ips not the actual client one
which is a security issue
and you saying its currently showing your vm ip ?
no
Cloudflare
Cf-Connecting-Ip is not the X-Real-IP, instead, is a cloudflare ip instead
I could be wrong but if your actual ip is not exposed the what's the problem
that the real ip has to be exposed to the web server?
client
not host
I was looking at this the other day for one of my apps.
You'll need to add Cloudflare IPs as trusted in: Traefik File System > traefik.yml
Ideally you'll need a cron to update these. You can grab them from here: https://www.cloudflare.com/ips-v4/#
Their range: https://www.cloudflare.com/en-gb/ips/
Then in your app, you just grab
cf-connecting-ip
We could probably implement it for Dokploy Requests too with a sane default.Thank you, I’ll look into this later