Varnish and Cloudflare

Tobias Karlsson tokar93 at gmail.com
Fri Nov 21 17:42:20 CET 2014


Hi

I get varnish ip. What can i do about that?

MVH
Tobias

2014-11-21 17:27 GMT+01:00 Gianni Carabelli <gc at ants.eu>:

>
>
> 2014-11-21 17:19 GMT+01:00 Tobias Karlsson <tokar93 at gmail.com>:
>
>> Hi
>>
>> When i have Cloudflare activated all visitors that is forwarding to my
>> server behind the varnish get the Varnish server ip instead of the own.
>> What should i do to fix that? When i turn off Cloudflare i dont have this
>> problem.
>>
>> This is my VLC file:
>> https://gist.github.com/tokar86a/7936afeb12b58ea77692
>>
>> MVH
>> Tobias
>>
>> _______________________________________________
>> varnish-misc mailing list
>> varnish-misc at varnish-cache.org
>> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>>
>
>
> You have the varnish ip or cloudflare ip?
>
>
> Using cloudflare + varnish + apache +rpaf, I had similar problem.
> On webserver I had:
>
> X-Forwarded-For: CLIENT_REAL_IP, CLOUDFLARE_REVERSE_PROXY_IP
>
> and rpaf use the second one.
>
> JohnnyRun
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20141121/c8f37d90/attachment.html>


More information about the varnish-misc mailing list