21

I've set up a proxy server on AWS in the US in order to allow me to browse the american internet from the UK, however I would like to hide this so that the reverse end cannot detect I am using squid. Is this possible, and if so, how?

chrism2671
  • 2,549
  • 9
  • 34
  • 45
  • 3
    BTW - the fact you're using squid shouldn't matter. Lots of offices will have traffic routes through a squid server where ever they are in the world. I can't think of a site which has ever blocked me due to using a proxy. Perhaps your guilty conscience is making you feel a little paranoid :-) – Coops Mar 01 '11 at 21:54
  • This is good to know! The main purpose is to get websites that are showing content based on geolocation to show me American content (rather than UK content, where I am based). So far though, with these settings, it appears to be working! – chrism2671 Mar 03 '11 at 13:25

5 Answers5

19

You can inhibit X-Forwarded-For with

header_access X-Forwarded-For deny all

in squid.conf

this is all I've required but further headers you may wish to deny are at http://www.christianschenk.org/blog/enhancing-your-privacy-using-squid-and-privoxy/

jamespo
  • 1,698
  • 12
  • 12
14

This is straight from my squid.conf:

#Privacy Things
via off
forwarded_for off
follow_x_forwarded_for deny all

Since version 3.0 you need to build squid from source for these limitations to work with some special flag for './configure'. This is how I build mine:

./configure --enable-http-violations --prefix=/usr --includedir=/usr/include \
  --datadir=/usr/share --bindir=/usr/sbin --libexecdir=/usr/lib/squid        \
  --localstatedir=/var --sysconfdir=/etc/squid --enable-auth="ntlm,basic"    \
  --enable-follow-x-forwarded-for

(CentOS 5.5)

BamaPookie
  • 240
  • 1
  • 9
Bart De Vos
  • 17,761
  • 6
  • 62
  • 81
3

this is my config, now my squid proxy not detected anymore.

#Anonymizing traffic
forwarded_for off
#request_header_access Allow allow all
#request_header_access All allow all

request_header_access X-Forwarded-For deny all
request_header_access Via  deny all
Fathur Rohim
  • 131
  • 2
2

Have you considered setting up a VPN to the AWS instance instead of setting up Squid? Then route traffic through the AWS instance, which would avoid squid and be undetectable. Just throwing it out there. That's exactly how a friend of mine set up a VPS in the UK to access the BBC.

Sean Reifschneider
  • 10,370
  • 3
  • 24
  • 28
1

Turn Squid3 headers off

via off
forwarded_for off

request_header_access From deny all
request_header_access Server deny all
request_header_access WWW-Authenticate deny all
request_header_access Link deny all
request_header_access Cache-Control deny all
request_header_access Proxy-Connection deny all
request_header_access X-Cache deny all
request_header_access X-Cache-Lookup deny all
request_header_access Via deny all
request_header_access X-Forwarded-For deny all
request_header_access Pragma deny all
request_header_access Keep-Alive deny all
b00r00x0
  • 111
  • 4