Squid proxy server has a directive called forwarded_for. If set, Squid will include your system’s IP address or a name of the HTTP requests it forwards. By default it looks like
this:
X-Forwarded-For: 191.1.2.5
If you disable this (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
Open squid.conf file:
# vi squid.conf
Or (for squid version 3)
# vi /etc/squid3/squid.conf
Set forwarded_for to off:
forwarded_for off
OR set it to delete:
forwarded_for delete
Save and close the file.
Reload squid server
You need to restart the squid server, enter:
# /etc/init.d/squid restart
OR
# squid -k reconfigure
For squid version 3, run:
# squid3 -k reconfigure
Here are my options:
Say hello to request_header_access
By default, all headers are allowed (no anonymizing is performed for privacy). You can anonymize outgoing HTTP headers (i.e. headers sent by Squid to the following HTTP hop such as a cache peer or an origin server) to create the standard or paranoid experience. The following option are only tested on squid server version 3.x:
Squid standard anonymizer privacy experience
Set the following options in squid3.conf:
Save and close the file. Do not forget to restart the squid3 as described above.
Squid standard privacy experience
Set the following options in squid3.conf:
Save and close the file. Do not forget to restart the squid3 as described above.