使Squid对第三方过滤器不可见

时间:2012-07-05 16:53:41

标签: linux proxy filter squid

我在CentOS 5.5上启动并运行我的Squid代理服务器,配置最少,没有身份验证可以绕过互联网过滤,它工作正常,但令人惊讶whatismyip.com检测到我的代理,这完全是一个坏主意!它还检测我的Squid的版本,并显示我的真实IP地址! :

Your IP Address Is: 91.99.X.X
Other IPs Detected: 209.54.X.X
Possible Proxy Detected: 1.1 server.3p3r.com:3128 (squid/2.6.STABLE21)

我哪里出错了?有什么办法可以让Squid对这些第三方过滤器和代理检测脚本不可见吗?

任何资源都会非常感谢,提前谢谢。

2 个答案:

答案 0 :(得分:1)

Squid将X-Forwarded-For标头添加到请求中。 如果你的Squid版本是3.1或更新版本,你可以将“forwarded_for”选项设置为“删除”。

答案 1 :(得分:1)

将其添加到etc / squid / squid.conf文件中:

via off

forwarded_for off

request_header_access Allow allow all 

request_header_access Authorization allow all 

request_header_access WWW-Authenticate allow all 

request_header_access Proxy-Authorization allow all 

request_header_access Proxy-Authenticate allow all 

request_header_access Cache-Control allow all 

request_header_access Content-Encoding allow all 

request_header_access Content-Length allow all 

request_header_access Content-Type allow all 

request_header_access Date allow all 

request_header_access Expires allow all 

request_header_access Host allow all 

request_header_access If-Modified-Since allow all 

request_header_access Last-Modified allow all 

request_header_access Location allow all 

request_header_access Pragma allow all 

request_header_access Accept allow all 

request_header_access Accept-Charset allow all 

request_header_access Accept-Encoding allow all 

request_header_access Accept-Language allow all 

request_header_access Content-Language allow all 

request_header_access Mime-Version allow all 

request_header_access Retry-After allow all 

request_header_access Title allow all 

request_header_access Connection allow all 

request_header_access Proxy-Connection allow all 

request_header_access User-Agent allow all 

request_header_access Cookie allow all 

request_header_access All deny all