<div>apt-get updateapt-get install squidvi /etc/squid3/squid.conf将http_access deny deny 改为 http_access allow all将http_port 3128修改为自己的端口http_port 6666</div>
service squid3 restart
这时是透明代理,会有via字段和X-Forwarded-For字段显示IP,需要匿名的话就需要修改配置
查看版本
squid3 -v
vi /etc/squid3/squid.conf
不同版本号以及对应代码
Squid 2.x
header_access Via deny all
header_access X-Forwarded-For deny all
Squid 3.0
reply_header_access Via deny all
reply_header_access X-Forwarded-For deny all
Squid 3.1以及以上版本
via off
forwarded_for delete
service squid3 restart