Squid Proxy Hide System’s Real IP Address
Scenario:
My squid proxy server is displaying system's real IP address. I've a corporate password protected squid proxy server located at xxx.xxx.xxx.xxx . My clients works from home or offices via A/DSL / cable connections. Squid should hide all system's IP address, but it is forwarding and displaying the system's IP address. How do I configure squid to hide client's real IP address?
Solution:
X-Forwarded-For: xxx.xxx.xxx.xxx (Your IP)
If you disable this, it will appear as
X-Forwarded-For: unknown
Open squid.conf file:
# vi squid.conf
Set forwarded_for to off:
forwarded_for off
Save and close the file. Restart squid server:
# /etc/init.d/squid restart