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: 192.1.2.3
#
#       If you disable this, it will appear as
#
#               X-Forwarded-For: unknown
#
#Default:
# forwarded_for on
forwarded_for off

Reload squid.conf to make the change take effect

service squid reload

0 Comments

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…