<div dir="ltr"><div dir="ltr">Hello Amos,</div><div dir="ltr"><br></div><div>Thank you so much for your reply.</div><div><br></div><div>So my use case is, in my application I have a switch which when turned ON, reads the client IP address from the header I configured in the application (i.e. X-Forwarded-For in Squid) and based on it some rules are triggered.</div><div><br></div><div>If the switch is turned off, it uses proxy IP and based on it some other set of rules are triggered.</div><div><br></div><div>I want to establish this scenario using Squid proxy. But not sure whether Squid is sending the header.<br></div><div><br></div><div>Thanks,</div><div>Monika</div><div><br></div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 21, 2020 at 5:30 PM <<a href="mailto:squid-users-request@lists.squid-cache.org">squid-users-request@lists.squid-cache.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send squid-users mailing list submissions to<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:squid-users-request@lists.squid-cache.org" target="_blank">squid-users-request@lists.squid-cache.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:squid-users-owner@lists.squid-cache.org" target="_blank">squid-users-owner@lists.squid-cache.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of squid-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Fwd: HTTP X-FORWARDED HEADER (Monika Avalur)<br>
2. Re: Fwd: HTTP X-FORWARDED HEADER (Amos Jeffries)<br>
3. Re: Fwd: HTTP X-FORWARDED HEADER (Amos Jeffries)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sun, 21 Jun 2020 15:57:21 +0530<br>
From: Monika Avalur <<a href="mailto:monika.avalur@gmail.com" target="_blank">monika.avalur@gmail.com</a>><br>
To: <a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
Subject: [squid-users] Fwd: HTTP X-FORWARDED HEADER<br>
Message-ID:<br>
<CA+vZrw=<a href="mailto:9K5G%2BfLRwqW4S9YxPA-TMapgA0UVfxZUmm99EBQP6KA@mail.gmail.com" target="_blank">9K5G+fLRwqW4S9YxPA-TMapgA0UVfxZUmm99EBQP6KA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hello,<br>
<br>
I am using squid proxy to test some application in my company.<br>
<br>
I have a use cases where I need to use the X-Forwarded-For header from<br>
squid proxy<br>
<br>
I tried by editing the squid configuration file and including<br>
<br>
acl localhost src 127.0.0.1<br>
<br>
forwarded_for on<br>
follow_x_forwarded_for allow localhost<br>
<br>
But still I am unable to see the HTTP header in chrome.<br>
<br>
While I looked up the documentation, it said requires<br>
--enable-follow-x-forwarded-for.<br>
<br>
Can some one tell me how can I enable it?<br>
<br>
It's sort of urgent.<br>
<br>
Thanks & Best Regards,<br>
Monika<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.squid-cache.org/pipermail/squid-users/attachments/20200621/eb7fa2ac/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.squid-cache.org/pipermail/squid-users/attachments/20200621/eb7fa2ac/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sun, 21 Jun 2020 22:40:26 +1200<br>
From: Amos Jeffries <<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a>><br>
To: <a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
Subject: Re: [squid-users] Fwd: HTTP X-FORWARDED HEADER<br>
Message-ID: <<a href="mailto:e04860cc-a3d4-6508-6e73-24505072c63a@treenet.co.nz" target="_blank">e04860cc-a3d4-6508-6e73-24505072c63a@treenet.co.nz</a>><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
On 21/06/20 10:27 pm, Monika Avalur wrote:<br>
> Hello,<br>
> <br>
> I am using squid proxy to test some application in my company.<br>
> <br>
> I have a use cases where I need to use the X-Forwarded-For header from<br>
> squid proxy <br>
> <br>
> I tried by editing the squid configuration file and including<br>
> <br>
> acl localhost src 127.0.0.1<br>
> <br>
> forwarded_for on <br>
<br>
Enables the header to be sent to servers. Only relevant on intercepted<br>
traffic.<br>
<br>
<br>
> follow_x_forwarded_for allow localhost<br>
> <br>
<br>
Processes headers *received* from client.<br>
<br>
<br>
> But still I am unable to see the HTTP header in chrome.<br>
<br>
This is a header sent to *servers*. Browser will never see it.<br>
<br>
> <br>
> While I looked up the documentation, it said requires<br>
> --enable-follow-x-forwarded-for.<br>
> <br>
> Can some one tell me how can I enable it?> It's sort of urgent.<br>
> <br>
<br>
What use exactly are you needing to use this header for?<br>
<br>
<br>
Amos<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Sun, 21 Jun 2020 23:08:43 +1200<br>
From: Amos Jeffries <<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a>><br>
To: <a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
Subject: Re: [squid-users] Fwd: HTTP X-FORWARDED HEADER<br>
Message-ID: <<a href="mailto:ec580a56-2fee-bb32-c457-5be0b314fd65@treenet.co.nz" target="_blank">ec580a56-2fee-bb32-c457-5be0b314fd65@treenet.co.nz</a>><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
On 21/06/20 10:40 pm, Amos Jeffries wrote:<br>
> On 21/06/20 10:27 pm, Monika Avalur wrote:<br>
>> Hello,<br>
>><br>
>> I am using squid proxy to test some application in my company.<br>
>><br>
>> I have a use cases where I need to use the X-Forwarded-For header from<br>
>> squid proxy <br>
>><br>
>> I tried by editing the squid configuration file and including<br>
>><br>
>> acl localhost src 127.0.0.1<br>
>><br>
>> forwarded_for on <br>
> <br>
> Enables the header to be sent to servers. Only relevant on intercepted<br>
> traffic.<br>
<br>
Sorry *indirect* traffic.<br>
<br>
<br>
Amos<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
<br>
<br>
------------------------------<br>
<br>
End of squid-users Digest, Vol 70, Issue 27<br>
*******************************************<br>
</blockquote></div></div>