LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 961|回复: 5

关于SQUID 的使用问题!急!

[复制链接]
发表于 2008-3-22 22:38:00 | 显示全部楼层 |阅读模式
配置如下:
////////////////////////////
http_port 3128
cache_mem 32 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 4096 KB
minimum_object_size 0 KB
#auth_param basic children 5
#auth_param basic realm Squid proxy-caching web server
#auth_param basic credentialsttl 2 hours
#auth_param basic casesensitive off
#refresh_pattern ^ftp:          1440    20%     10080
#refresh_pattern ^gopher:       1440    0%      1440
#refresh_pattern .              0       20%     4320
dns_nameservers 202.99.96.68
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 Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443 563     # https, snews
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow all
coredump_dir /var/spool/squid
//////////////////////
这样默认应是所有IP都可以使用此代理吧,但是此服务器IP为192.168.0.1 ,我的网段为 192.168.200.1 ,但不能使用这个代理,为什么,我加入acl net200 192.168.200.0/255.255.255.0  http_access allow manager localhost net200 还是不能使用此代理,原回何在?提示错误:the requested url could not be retrieved squid
发表于 2008-3-22 23:36:15 | 显示全部楼层
怀疑你装squid那台电脑不能上网……
回复 支持 反对

使用道具 举报

发表于 2008-3-22 23:46:44 | 显示全部楼层
是不是这样的错误..


  1. ERROR
  2. The requested URL could not be retrieved

  3. --------------------------------------------------------------------------------

  4. While trying to retrieve the URL: http://www.google.com/

  5. The following error was encountered:

  6. Connection to Failed
  7. The system returned:

  8.     (101) Network is unreachableThe remote host or network may be down. Please try the request again.

  9. Your cache administrator is root.



  10. --------------------------------------------------------------------------------

  11. Generated Sat, 22 Mar 2008 17:45:39 GMT by host1.maitr.com (squid/2.6.STABLE6)
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-27 14:20:52 | 显示全部楼层
ERROR
The requested URL could not be retrieved

--------------------------------------------------------------------------------

While trying to retrieve the URL: http://www.google.cn/

The following error was encountered:

Access Denied.
Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.

Your cache administrator is root.



--------------------------------------------------------------------------------

Generated Thu, 27 Mar 2008 06:05:09 GMT by hrjt.tjbus.com (squid/2.5.STABLE14)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-27 14:21:53 | 显示全部楼层
真不知道这是怎么回事!大家帮我看看吧!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-27 15:41:06 | 显示全部楼层
搞定了,加入ACL控制成功!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表