PiHole in front of squid proxy, client ip

Hi,

After looking on the forum I can not find an answer to my problem.

I installed Pihole in front of a squid proxy (installed on the same machine 192.168.57.2)
In my Squid config, I set the dns server to the pihole address (127.0.0.1, I modified the config dnsmasq to listen on the localhost).
On the client side, the dns server is 192.168.57.2, proxy = 192.168.57.2:3128

Everything works fine except that logically, in the query logs, I see only the ip "localhost" in the client column.

Will there be a way PiHole side to recover the XForwardedFor sent by Squid and know the original client?

Thanking you in advance for your help.

Regards

DNS queries do not have a concept of X-Forwarded-For or any similar method of passing on the "originating" address for the query. The only way for Pi-hole to know who made the request is for the client itself to send the query to Pi-hole.

I understand. Thank you very much for your answer.
Regards

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.