我刚刚通过input在我的Ubuntu 11.04系统上安装了Squid
sudo apt-get install squid
然后我编辑/etc/squid/squid.conf并添加
acl squid_network src 10.0.2.0/24 http_access allow squid_network http_access allow all
后
acl purge method PURGE acl CONNECT method CONNECT
然后我进入Firefox,select编辑:首选项:networking:设置
并做了如下修改。
Manual proxy configuration HTTP Proxy 10.0.2.2 Port 3128 Use the proxy server for all protocols No Proxy for localhost:127.0.0.1
然后,我去了docker,进入
sudo service squid restart
导致了
squid start/running, process 3309
现在,当我去FireFox并点击回家http://start.ubuntu.com/11.04/Google/?sourceid=hp
我明白了
The connection has timed out The server at start.ubuntu.com is taking too long to respond. The site could be temporarily unavailable or too busy. Try again in a few moments. If you are unable to load any pages, check your computer's network connection. If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
我没有这个问题,如果我只是使用系统代理设置。
任何援助与此将不胜感激,
彼得。
我能看到的显而易见的问题是:
IP表阻塞连接,testing这个最简单的方法是暂时禁用任何IPTable规则,看看sudo iptables -X会发生什么情况。
在标签http_port下的squid config中检查代理运行在哪个端口上,并确保在Firefox中使用相同的端口
感谢那些回答我的问题的人。
我的问题是HTTP代理10.0.2.2。 我显然是应该使用主机IP地址,在我的情况下,192.168.1.6。 我将10.0.2.2更改为192.168.1.6,并解决了这个问题。