6

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.

gunwin
  • 6,330
  • 3
  • 18
  • 22

2 Answers2

7

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).

Wesley
  • 32,320
  • 9
  • 80
  • 116
  • 7
    In addition, you have to check `'Via'` option (should be 'off'.) – Denis Apr 17 '12 at 20:47
  • This hides the IP address. Which is half the problem so thanks. But http://www.whatismyip.com/ is still able to detect that I'm using a proxy.. – gunwin Apr 18 '12 at 11:55
  • 2
    The `via` option did it (in comination with `forwarded_for`)! – gunwin Apr 18 '12 at 12:25
0

I use this site to verify the proxy is properly hidden: http://www.lagado.com/proxy-test

It's not enough to set forwarded_for off! It will still send X-Forwarded-For: unknown, so others will know you use some kind of proxy (although your IP is hidden).

Add those 2 lines to your squid.conf file:

forwarded_for delete
via off

Then restart squid with service squid3 restart command, and you're done!

More information:

stil
  • 119
  • 1
  • 4