Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have setup squid proxy on an ubuntu server with DB authentication. However, whilst connected to the proxy, if I visit http://www.whatismyip.com/ it still shows my ACTUAL ip address. How can I configure Squid to hide my IP and to hide the fact it's using squid.

share|improve this question
Why do you want/need to hide it? –  Zoredache Apr 17 '12 at 20:16
In order to be able to access IP restricted services without reealing the fact I'm using a proxy, like this: kickassproxy.com –  gunwin Sep 11 '12 at 23:50

2 Answers 2

up vote 5 down vote accepted

By default, Squid has Forwarded-For turned on. For more info on what X-Forwarded-For is, have a gander at the Wikipedia article.

In your situation, you'll want to edit your Squid configuration file to include this line: forwarded_for off and then restart /etc/init.d/squid restart (assuming a RPM-based distro).

share|improve this answer
In addition, you have to check 'Via' option (should be 'off'.) –  Denis Apr 17 '12 at 20:47
@Denis, Excellent, thank you. –  Wesley Apr 17 '12 at 20:54
This hides the IP address. Which is half the problem so thanks. But whatismyip.com is still able to detect that I'm using a proxy.. –  gunwin Apr 18 '12 at 11:55
The via option did it (in comination with forwarded_for)! –  gunwin Apr 18 '12 at 12:25

I have a question on this, where do I enter the forward_for off when I went and did this where I saw forward_for i added it underneath, saved and then restarted the service but its giving me an error for the forward_for.

Nevermind, I was able to figure it out. The one thing I would add, instead of off, you need to use transparent. Off does not work, at least on Ubuntu.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.