由 zchar 在 05-25-2004 00:27 发表:
关于squid的问题,大家帮帮忙~~
在开启网页的时候出现如下错误:
ERROR
The requested URL could not be retrieved
--------------------------------------------------------------------------------
While trying to retrieve the URL: http://www.google.com/
The following error was encountered:
Connection Failed
The system returned:
(110) Connection timed outThe remote host or network may be down. Please try the request again
希望大虾指点~~~
由 zchar 在 05-25-2004 00:32 发表:
我的/etc/squid.conf/配置如下
http_port 3128 8080
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin ?
no_cache deny QUERY
cache_mem 32 MB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/squid/var/cache 100 16 256
client_netmask 255.255.255.255
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl nu src 202.115.22.147
acl badurl url_regex -i sex
http_access deny badurl
http_access allow nu
http_access deny all
http_access deny all
http_reply_access allow all
icp_access allow all
cache_mgr [email protected]
visible_hostname xxxx
coredump_dir /var/squid/var/cache
由 zchar 在 05-25-2004 00:40 发表:
我的/etc/squid.conf/配置如下
http_port 3128 8080
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin ?
no_cache deny QUERY
cache_mem 32 MB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/squid/var/cache 100 16 256
client_netmask 255.255.255.255
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl nu src 202.115.22.147
acl badurl url_regex -i sex
http_access deny badurl
http_access allow nu
http_access deny all
http_access deny all
http_reply_access allow all
icp_access allow all
cache_mgr [email protected]
visible_hostname xxxx
coredump_dir /var/squid/var/cache
由 coolend 在 05-25-2004 16:05 发表:
1. 你的squid以源码形式安装的?RPM包安装的话,其配置文件一般为/etc/squid/squid.conf
2. 使用默认的配置文件,在浏览器代理服务器设置里输入127.0.0.1,端口3128没有任何问题.
3. 把你上面的配置文件拷贝过来做我的配置文件,重启squid后出现的是Access Denied的错误信息,在http_access deny all前加入2行:
acl my_lan_network src 192.168.0.0/24
http_access allow my_lan_network
重启squid,测试:(假设我的IP地址为192.168.0.18)
在浏览器代理服务器设置里输入192.168.0.18,端口3128, 访问网页正常
但是用127.0.0.1却不行,真是莫名其妙.
4. 估计可能大概maybe possible likely是由于防火墙的原因吧
QQ: 82433808
M$N: [email protected]
[ success ] && no excuse
由 zchar 在 05-25-2004 17:24 发表:
现在的问题更奇怪了
首先谢谢楼上的朋友!
后来我加上父级代理
cache_peer xxx.xxx.xxx.xxx parent 80 3130 proxy-only
就可以用了,本来我的代理服务器也不能上外网的,我只是在shell里面设置了proxy。
但是,更加奇怪的