Admin-Ahead Community

Linux => General Linux => Topic started by: Aby on August 06, 2014, 02:47:36 pm

Title: Squid Proxy Hide System’s Real IP Address
Post by: Aby on August 06, 2014, 02:47:36 pm
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:
Code: [Select]
X-Forwarded-For: xxx.xxx.xxx.xxx (Your IP)If you disable this, it will appear as

Code: [Select]
X-Forwarded-For: unknown
Open squid.conf file:

Code: [Select]
# vi squid.conf
Set forwarded_for to off:
Code: [Select]
forwarded_for off
Save and close the file. Restart squid server:
Code: [Select]
# /etc/init.d/squid restart