Re: Using and trusting remote client IP address via upstream proxy

Matus UHLAR - fantomas <[email protected]>
Newsgroups gmane.comp.web.squid.general
Message-ID <[email protected]>
On 08.01.25 16:33, Orion Poplawski wrote:
>We use e2guardian and squid in a combined method were requests can either go
>to e2guardian first and get forwarded to squid, or go directly to squid.
>
>I would like to be able to have squid allow connections for certain remote
>client IPs without requiring authentication.  However, the connections that
>come in through e2guardian appear to squid as coming from localhost.  Is there
>a way that e2guardian could pass the IP address of the client on to squid?

if e2guardian provides x-forwarded-for header, squid can use it:

http://www.squid-cache.org/Doc/config/follow_x_forwarded_for/

note that you should this header should be only trusted when you trust the 
client, localhost should be fine 

-- 
Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Enter any 12-digit prime number to continue.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.