Stop Squid Proxy Reporting the Internal Client’s IP Address

Written by James McDonald

September 30, 2009

Tip from here

edit squid.conf

vi /etc/squid/squid.conf

Find the following section of squid.conf and add forwarded_for off

#  TAG: forwarded_for   on|off
#       If set, Squid will include your system's IP address or name
#       in the HTTP requests it forwards.  By default it looks like
#       this:
#               X-Forwarded-For:
#       If you disable this, it will appear as
#               X-Forwarded-For: unknown
# forwarded_for on
forwarded_for off

Reload squid.conf to make the change take effect

service squid reload


Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Meraki Open Source Licenses

Until today I assumed that Meraki was built in-house with only closed source software. But having a look at the...


If you have Veeam backup failing with the Updating BCD failed with Cannot update SafeBoot flag and SentinelOne is...