1、在主机1上安装squid
root@linux_ever:~# apt-get install squid
2、修改squid的配置文件squid.conf
root@linux_ever:~# vim /etc/squid3/squid.conf
定位到下面的位置,将http_access deny deny 改为 http_access allow all
# And finally deny all other access to this proxy
http_access deny all #这里把deny改成allow就可以让任意用户通过你的机器作为代理了</span>
或者将上面的http_access deny deny替换为下面的两行(本次使用的这种配置)
acl localnet src 192.168.0.0/24
http_access allow localnet</span>
这两行的意思是允许192.168.0.0网络上的所有机器通过该代理服务器来访问Web服务器。192.168.