[squid-users] How to hide client info?
Peng Yu
pengyu.ut at gmail.com
Sat Feb 10 15:49:02 UTC 2018
If I don't use the proxy, I will have the following.
The proxied result has '"Cache-Control": "max-age=259200"'. To disable
it, should I use ignore-cc. Could you show me how to configure squid
to not send '"Cache-Control": "max-age=259200"'? Thanks.
$ wget -qO- http://httpbin.org/get
{
"args": {},
"headers": {
"Accept": "*/*",
"Accept-Encoding": "identity",
"Connection": "close",
"Host": "httpbin.org",
"User-Agent": "Wget/1.16.3 (darwin13.4.0)"
},
"origin": "<local_ip>",
"url": "http://httpbin.org/get"
}
On Sat, Feb 10, 2018 at 9:23 AM, Yuri <yvoinov at gmail.com> wrote:
> Opening squid.conf.documented:
>
> # TAG: forwarded_for on|off|transparent|truncate|delete
> # If set to "on", Squid will append your client's IP address
> # in the HTTP requests it forwards. By default it looks like:
> #
> # X-Forwarded-For: 192.1.2.3
> #
> # If set to "off", it will appear as
> #
> # X-Forwarded-For: unknown
> #
> # If set to "transparent", Squid will not alter the
> # X-Forwarded-For header in any way.
> #
> # If set to "delete", Squid will delete the entire
> # X-Forwarded-For header.
> #
> # If set to "truncate", Squid will remove all existing
> # X-Forwarded-For entries, and place the client IP as the sole entry.
> #Default:
> # forwarded_for on
>
>
> 10.02.2018 21:04, Peng Yu пишет:
>> Hi,
>>
>> I use squid to set a proxy. But the following output shows my local ip
>> address besides the squid proxy ip. Is there a way to let httpbin.org
>> only be aware of the squid_proxy but not my local ip?
>>
>> $ http_proxy=squid_proxy:3128 wget -qO- http://httpbin.org/get
>> {
>> "args": {},
>> "headers": {
>> "Accept": "*/*",
>> "Accept-Encoding": "identity",
>> "Cache-Control": "max-age=259200",
>> "Connection": "close",
>> "Host": "httpbin.org",
>> "User-Agent": "Wget/1.16.3 (darwin13.4.0)"
>> },
>> "origin": "<local_ip>, <ip_of_squid_proxy>",
>> "url": "http://httpbin.org/get"
>> }
>>
>>
>
> --
> *****************************
> * C++20 : Bug to the future *
> *****************************
>
>
>
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>
--
Regards,
Peng
More information about the squid-users
mailing list